From 980a70573f466b7a6e7a8fef79c504ab735b926a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 10 May 2021 07:44:42 -0400 Subject: [PATCH] radeonsi: re-enable fast launch with indexed tri strips because it doesn't hang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don't know which change fixed this, but I can't reproduce the hang anymore. Acked-by: Timur Kristóf Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state_draw.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp index 0d91d8520e1..ad003902127 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.cpp +++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp @@ -2077,12 +2077,10 @@ static void si_draw_vbo(struct pipe_context *ctx, if (!index_size) { ngg_culling |= SI_NGG_CULL_GS_FAST_LAUNCH_TRI_STRIP; } else if (!primitive_restart) { -#if 0 /* It's disabled because this hangs: AMD_DEBUG=nggc torcs */ ngg_culling |= SI_NGG_CULL_GS_FAST_LAUNCH_TRI_STRIP | SI_NGG_CULL_GS_FAST_LAUNCH_INDEX_SIZE_PACKED(MIN2(index_size, 3)); /* The index buffer will be emulated. */ index_size = 0; -#endif } } }