radv: reset object base on recycled command buffers
authorDave Airlie <airlied@redhat.com>
Fri, 19 Feb 2021 02:15:05 +0000 (12:15 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 21 Feb 2021 23:32:45 +0000 (09:32 +1000)
commitbd98fc39aed0951c0e1dff10599a32fab1d1c87a
tree7454e4d4bb8c46fa05ec7d32a48f502d65c80dbd
parent5a340c0929a49dc716d19a72a3ff202f6745befe
radv: reset object base on recycled command buffers

The loader_set_dispatch overwrites the magic with the dispatch
pointer, however when cmd buffers get recycled, and the loader
is in debug mode, it asserts that the magic isn't set anymore.

When recycling command buffers, reset the base object.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9145>
src/amd/vulkan/radv_cmd_buffer.c