lavapipe: 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:57 +0000 (09:32 +1000)
commit226c7ae2a86dfeb0f29ea736b77b4427c02f0482
treede38d5df5a9a459a05ecdb5f3dec9b15366db445
parent7b1568b7a32a754251773a62d8143b873418a943
lavapipe: 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/gallium/frontends/lavapipe/lvp_cmd_buffer.c