mesa/src/panfrost
Eric R. Smith e3d123b7a6 panfrost: fix a GPU/CPU synchronization problem
Remove a premature optimization. When PIPE_MAP_DISCARD_WHOLE_RESOURCE
is set we were setting create_new_bo, and then if that was set we skipped
a set of tests which if passed would cause a panfrost_flush_writer.

In fact we need that flush in some cases (e.g. when any batch is
reading the resource). Moreover, we should sometimes copy the resource
(set the copy_resource flag) and that again was being skipped if
create_new_bo was initially true due to PIPE_MAP_DISCARD_WHOLE_RESOURCE
being set.

Cc: mesa-stable
Signed-off-by: Eric R. Smith <eric.smith@collabora.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28406>
2024-04-15 10:52:52 +00:00
..
ci panfrost: fix a GPU/CPU synchronization problem 2024-04-15 10:52:52 +00:00
compiler pan/bi: Update the push constant count when emitting load_push_constant 2024-03-26 11:10:44 +01:00
drm-shim panfrost: group up stubbed params in drm-shim 2024-03-19 10:22:34 +00:00
ds panfrost: Make pan_perf panfrost_device agnostic 2024-01-23 16:32:09 +00:00
include panfrost: prepare pan_image_view for multiplanar formats 2023-08-07 19:35:12 +00:00
lib panfrost/meson: remove redundant gallium include from meson files 2024-03-14 17:23:55 +00:00
midgard panfrost: Move the image attribute offset adjustment to a NIR pass 2024-03-26 09:24:25 +01:00
perf panfrost/meson: remove redundant gallium include from meson files 2024-03-14 17:23:55 +00:00
shared panfrost/meson: remove redundant gallium include from meson files 2024-03-14 17:23:55 +00:00
tools panfrost/meson: remove redundant gallium include from meson files 2024-03-14 17:23:55 +00:00
util panfrost: Move the image attribute offset adjustment to a NIR pass 2024-03-26 09:24:25 +01:00
vulkan panvk: use integers instead of strings 2024-04-03 08:08:00 +00:00
.clang-format clang-format: Disable formatting by default 2023-08-13 16:48:49 +02:00
meson.build panfrost/meson: remove redundant gallium include from meson files 2024-03-14 17:23:55 +00:00