From ad537edc7c6826be1e69c1a7b8ec6c5754116e96 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Mon, 2 May 2022 15:03:47 -0700 Subject: [PATCH] anv: Fix INTEL_DEBUG=bat on XeHP MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Part-of: --- src/intel/vulkan/anv_device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 90ca92c12cb..41f7486feeb 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3125,6 +3125,11 @@ VkResult anv_CreateDevice( &physical_device->info, stderr, decode_flags, NULL, decode_get_bo, NULL, device); + + device->decoder_ctx.dynamic_base = DYNAMIC_STATE_POOL_MIN_ADDRESS; + device->decoder_ctx.surface_base = SURFACE_STATE_POOL_MIN_ADDRESS; + device->decoder_ctx.instruction_base = + INSTRUCTION_STATE_POOL_MIN_ADDRESS; } device->physical = physical_device;