radv: use IB for the GFX preamble on GFX6

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>
This commit is contained in:
Samuel Pitoiset 2023-06-15 10:47:32 +02:00 committed by Marge Bot
parent e20a0f32f2
commit a5cdc4840d
3 changed files with 4 additions and 5 deletions

View 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);

View 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);

View 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)