anv: Make a batch decoder for each queue family
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 30 Jan 2023 22:46:26 +0000 (14:46 -0800)
committerMarge Bot <emma+marge@anholt.net>
Mon, 6 Feb 2023 23:21:55 +0000 (23:21 +0000)
commit79caf8a44b682f731c0fd3b941f38cc1869efe2d
treef01391bc538f287549ff62b0cee4b38ea487c565
parent1a1fa2393ec532920cefba9597774eaf49e08aa1
anv: Make a batch decoder for each queue family

The decoder context needs to know what engine it's associated with.
Nowadays, we have render, compute, blitter, even video engines being
used from the same driver.  Rather than trying to have a single decoder
and thwacking the engine field back and forth between calls, we make
one per queue family, and stash a pointer in anv_queue for easy access.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21149>
src/intel/vulkan/anv_batch_chain.c
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/anv_queue.c