radeonsi: re-enable fast launch with indexed tri strips because it doesn't hang

I don't know which change fixed this, but I can't reproduce the hang anymore.

Acked-by: Timur Kristóf <timur.kristof@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10813>
This commit is contained in:
Marek Olšák 2021-05-10 07:44:42 -04:00 committed by Marge Bot
parent a0fcd37731
commit 980a70573f

View file

@ -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
}
}
}