turnip: reset push descriptor set on command buffer reset
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Wed, 2 Jun 2021 13:07:13 +0000 (16:07 +0300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Jun 2021 16:01:40 +0000 (16:01 +0000)
commit74aa09b22c6fe527f46925ae6f2faaf28b74c04d
tree563fc1449936772b61bdd218fca3f6cb27b344f2
parent89bac36f0913a8544728b0fe6cfc8be65f8f929c
turnip: reset push descriptor set on command buffer reset

Otherwise it will store a pointer to already unmapped memory which
could lead to a crash in tu_CmdPushDescriptorSetWithTemplateKHR since
it tries to copy data from the old memory.

Fixes a crash with Zink's new lazy descriptor manager instroduced
in bfdd1d8d

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11137>
src/freedreno/vulkan/tu_cmd_buffer.c