From: Marek Olšák Date: Tue, 12 Nov 2019 22:10:05 +0000 (-0500) Subject: radeonsi/gfx10: simplify the tess_turns_off_ngg condition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aced18aa61232193fb90b9e08d90a1e54721a8bf;p=mesa.git radeonsi/gfx10: simplify the tess_turns_off_ngg condition Reviewed-by: Pierre-Eric Pelloux-Prayer --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index d70b9a92669..a81636801cc 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -2793,9 +2793,7 @@ static void *si_create_shader_selector(struct pipe_context *ctx, /* EN_MAX_VERT_OUT_PER_GS_INSTANCE does not work with tesselation. */ sel->tess_turns_off_ngg = - (sscreen->info.family == CHIP_NAVI10 || - sscreen->info.family == CHIP_NAVI12 || - sscreen->info.family == CHIP_NAVI14) && + sscreen->info.chip_class == GFX10 && sel->gs_num_invocations * sel->gs_max_out_vertices > 256; break;