radv: use IB for the GFX preamble on GFX6
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 15 Jun 2023 08:47:32 +0000 (10:47 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 19 Jun 2023 06:48:21 +0000 (06:48 +0000)
GFX6 supports IBs without any issues.

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
src/amd/vulkan/radv_private.h
src/amd/vulkan/si_cmd_buffer.c

index 0f19178..a2b34dc 100644 (file)
@@ -1000,9 +1000,8 @@ radv_CreateDevice(VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo *pCr
          goto fail;
    }
 
-   if (device->physical_device->rad_info.gfx_level >= GFX7 &&
-       !(device->instance->debug_flags & RADV_DEBUG_NO_IBS))
-      cik_create_gfx_config(device);
+   if (!(device->instance->debug_flags & RADV_DEBUG_NO_IBS))
+      radv_create_gfx_config(device);
 
    struct vk_pipeline_cache_create_info info = {0};
    device->mem_cache = vk_pipeline_cache_create(&device->vk, &info, NULL);
index 7dfcbbc..b7f779d 100644 (file)
@@ -1898,7 +1898,7 @@ void radv_emit_streamout_enable(struct radv_cmd_buffer *cmd_buffer);
 void si_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs);
 void si_emit_compute(struct radv_device *device, struct radeon_cmdbuf *cs);
 
-void cik_create_gfx_config(struct radv_device *device);
+void radv_create_gfx_config(struct radv_device *device);
 
 void si_write_scissors(struct radeon_cmdbuf *cs, int count, const VkRect2D *scissors, const VkViewport *viewports);
 
index fa6cc45..c7b1e00 100644 (file)
@@ -618,7 +618,7 @@ si_emit_graphics(struct radv_device *device, struct radeon_cmdbuf *cs)
 }
 
 void
-cik_create_gfx_config(struct radv_device *device)
+radv_create_gfx_config(struct radv_device *device)
 {
    struct radeon_cmdbuf *cs = device->ws->cs_create(device->ws, AMD_IP_GFX, false);
    if (!cs)