anv: mark images compressed for untracked layout/access
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 12 May 2023 13:20:57 +0000 (16:20 +0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 17 May 2023 22:01:31 +0000 (22:01 +0000)
commit1a89b1a3012d98586fa6e9fbd85516e2f67f6817
tree275f35ceac5a59d39e8c60e5faa108d9f21e5508
parente7ec41014165544362e1ae80f6fa99bab7621e79
anv: mark images compressed for untracked layout/access

Most of the compressed writes are tracked by the driver, for
instances :
   - blorp writes
   - render target writes

But we don't have any tracking for storage images (which have gained
compression support on DG2+). So inspect the layout transition and
when we see a layout/access that can do writes outside of our driver
tracking, update the image state tracking.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8946
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22988>
src/intel/vulkan/anv_image.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c