From dc816ce4ac1a79449fbc69310dd6638c2fb2d8c5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 24 Apr 2026 16:10:00 +0200 Subject: [PATCH] radv: remove an useless check when emitting the index buffer index_type is uint32_t, so this checks is always FALSE. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_cmd_buffer.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index e421580178a..31e1e2634a9 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -5863,11 +5863,6 @@ radv_emit_index_buffer(struct radv_cmd_buffer *cmd_buffer) uint32_t max_index_count = state->max_index_count; uint64_t index_va = state->index_va; - /* With indirect generated commands the index buffer bind may be part of the - * indirect command buffer, in which case the app may not have bound any yet. */ - if (state->index_type < 0) - return; - /* Handle indirect draw calls with NULL index buffer if the GPU doesn't support them. */ if (!max_index_count && pdev->info.has_zero_index_buffer_bug) { radv_handle_zero_index_buffer_bug(cmd_buffer, &index_va, &max_index_count);