Skip to content

anv: Fix INTEL_DEBUG=bat on XeHP

Kenneth Graunke requested to merge kwg/mesa:anv-fix-decode into main

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: 8831cb38 ("anv: Stop updating STATE_BASE_ADDRESS on XeHP")

Merge request reports