From f7e66093903971261d5d710bfdc507fce3bf0f36 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 3 Jun 2024 09:33:48 +0200 Subject: [PATCH] radv: assert that GDS/GDS OA buffers can't be created on GFX12 No GDS on GFX12 and this will be annoying for some queries that currently rely on atomic GDS. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_queue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_queue.c b/src/amd/vulkan/radv_queue.c index 5adb32c52b9..02b73622def 100644 --- a/src/amd/vulkan/radv_queue.c +++ b/src/amd/vulkan/radv_queue.c @@ -1461,7 +1461,7 @@ radv_update_preamble_cs(struct radv_queue_state *queue, struct radv_device *devi } if (!queue->ring_info.gds && needs->gds) { - assert(pdev->info.gfx_level >= GFX10); + assert(pdev->info.gfx_level >= GFX10 && pdev->info.gfx_level < GFX12); /* 4 streamout GDS counters. * We need 256B (64 dw) of GDS, otherwise streamout hangs. @@ -1480,7 +1480,7 @@ radv_update_preamble_cs(struct radv_queue_state *queue, struct radv_device *devi } if (!queue->ring_info.gds_oa && needs->gds_oa) { - assert(pdev->info.gfx_level >= GFX10); + assert(pdev->info.gfx_level >= GFX10 && pdev->info.gfx_level < GFX12); result = radv_bo_create(device, NULL, 1, 1, RADEON_DOMAIN_OA, ring_bo_flags, RADV_BO_PRIORITY_SCRATCH, 0, true, &gds_oa_bo);