panfrost: Set valid_buffer_range for GPU writes
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 9 Jun 2021 17:42:26 +0000 (13:42 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:11 +0000 (18:06 +0000)
commit851587f2813a839224947136eb74e95303d78813
tree512e4d591f46c919a0ed3ad827df0771a1e7a6c3
parenta9a8d74d1f6a7590f7f3434c123a07b08b4c9b79
panfrost: Set valid_buffer_range for GPU writes

Transform feedback, SSBO writes, and image writes in particular can
affect this and have bad interactions. Fixes
KHR-GLES31.core.shader_atomic_counters.basic-usage-vs

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>
src/gallium/drivers/panfrost/pan_cmdstream.c
src/gallium/drivers/panfrost/pan_compute.c