From 2b78cb2e0039f09d9820a1a9166a49f168c9959d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 8 Aug 2020 16:39:09 -0400 Subject: [PATCH] radeonsi: disable NGG culling on gfx10.3 because of hangs Fixes: a23802bcb9a - ac,radeonsi: start adding support for gfx10.3 Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_pipe.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index c323f33dd8f..2bd96eaef1c 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -1152,6 +1152,11 @@ static struct pipe_screen *radeonsi_screen_create_impl(struct radeon_winsys *ws, driQueryOptionb(config->options, "radeonsi_commutative_blend_add") || driQueryOptionb(config->options, "allow_draw_out_of_order"); + /* TODO: Find out why NGG culling hangs on gfx10.3 */ + if (sscreen->info.chip_class == GFX10_3 && + !(sscreen->debug_flags & (DBG(ALWAYS_NGG_CULLING_ALL) | DBG(ALWAYS_NGG_CULLING_TESS)))) + sscreen->debug_flags |= DBG(NO_NGG_CULLING); + sscreen->use_ngg = sscreen->info.chip_class >= GFX10 && sscreen->info.family != CHIP_NAVI14 && !(sscreen->debug_flags & DBG(NO_NGG)); sscreen->use_ngg_culling = sscreen->use_ngg && !(sscreen->debug_flags & DBG(NO_NGG_CULLING)); -- 2.30.2