radv: do not use IB for the GFX preamble with RADV_DEBUG=noibs
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Jun 2023 08:46:16 +0000 (10:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 19 Jun 2023 06:48:21 +0000 (06:48 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23670>

src/amd/vulkan/radv_device.c

index 05b9cb0..0f19178 100644 (file)
@@ -1000,7 +1000,8 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
          goto fail;
    }
 
-   if (device->physical_device->rad_info.gfx_level >= GFX7)
+   if (device->physical_device->rad_info.gfx_level >= GFX7 &&
+       !(device->instance->debug_flags & RADV_DEBUG_NO_IBS))
       cik_create_gfx_config(device);
 
    struct vk_pipeline_cache_create_info info = {0};