anv: Fix INTEL_DEBUG=bat on XeHP
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 2 May 2022 22:03:47 +0000 (15:03 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 May 2022 18:10:25 +0000 (11:10 -0700)
commitad537edc7c6826be1e69c1a7b8ec6c5754116e96
treedd8adbf542f8a6a815cd51e1cb7ba365715116fb
parentbc5c68fc08fb40026fff9775c221860885c2aacc
anv: Fix INTEL_DEBUG=bat on XeHP

We no longer emit STATE_BASE_ADDRESS in every batch on XeHP, so the
decoder might not know what the various base addresses are if it's only
looking at a single batch.  Fortunately, they also never change, so we
can just emit them once here.

On earlier platforms, initializing them here should be harmless.  We'll
emit STATE_BASE_ADDRESS if we change them, which will update these.

Thanks to Iván Briano for catching this.

Fixes: 8831cb38aa9 ("anv: Stop updating STATE_BASE_ADDRESS on XeHP")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16287>
src/intel/vulkan/anv_device.c