tu: 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:49 +0000 (09:32 +1000)
commit7b1568b7a32a754251773a62d8143b873418a943
treed9b023add0c932570f3e599a886e74ef0fba5623
parentbd98fc39aed0951c0e1dff10599a32fab1d1c87a
tu: 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 object base.

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/freedreno/vulkan/tu_cmd_buffer.c