mirror of https://gitlab.freedesktop.org/mesa/mesa
e6b752ff62
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> |
||
---|---|---|
.. | ||
powervr | ||
pvrsrvkm | ||
pvr_winsys.c | ||
pvr_winsys.h | ||
pvr_winsys_helper.c | ||
pvr_winsys_helper.h |