mesa/src/imagination/vulkan/winsys
Matt Coster e6b752ff62 pvr: Add pvr_bo_cpu_map_unchanged() helper to load saved vbits on map
When HAVE_VALGRIND is set, vbits of the CPU mapping are stored when
pvr_bo_cpu_unmap() is called. They can be reloaded by calling
pvr_bo_cpu_map_unchanged() instead of pvr_bo_cpu_map(). The vbits are
not loaded by default on every map, since they could easily have been
changed by the device between the unmap/map calls. Only use
pvr_bo_cpu_map_unchanged() when you can safely assume that nothing has
changed in the underlying memory.

When HAVE_VALGRIND is not set, pvr_bo_cpu_map_unchanged() just inlines
to pvr_bo_cpu_map().

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18948>
2022-11-25 16:42:55 +00:00
..
powervr
pvrsrvkm pvr: Implement new firmware stream interface 2022-11-11 11:34:17 +00:00
pvr_winsys.c
pvr_winsys.h pvr: Add pvr_bo_cpu_map_unchanged() helper to load saved vbits on map 2022-11-25 16:42:55 +00:00
pvr_winsys_helper.c pvr: remove redundant TODO 2022-09-01 09:33:29 +00:00
pvr_winsys_helper.h