anv: fixup descriptor copies
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 7 Dec 2022 21:33:41 +0000 (23:33 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 13 Dec 2022 09:13:05 +0000 (09:13 +0000)
commita0991c7c794da39bf1a4b5fb5484b77afde200cc
tree891a7e52c4047af6ec9da491f60a3b338a33ecbe
parent79cb465526eef5c6ae6ef69cadaa4398b36cc864
anv: fixup descriptor copies

I did not properly understood that we cannot access the views written
to the descriptor sets because they might have been destroyed after
the write operation and the copy operation is allowed to copy what is
invalid data. The shader just can't access it.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 03e1e19246 ("anv: Refactor descriptor copy")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20222>
src/intel/vulkan/anv_cmd_buffer.c
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_private.h