From ee4d797d8b074c27de0e055d2e22b82f642f2359 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Fri, 20 Mar 2020 17:45:17 -0400 Subject: [PATCH] radeonsi/gfx10: don't use NGG culling if compute-based culling is used Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_state_draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 96fa59145ae..dc6de604d21 100644 --- a/src/gallium/drivers/radeonsi/si_state_draw.c +++ b/src/gallium/drivers/radeonsi/si_state_draw.c @@ -2040,6 +2040,7 @@ static void si_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info *i /* Update NGG culling settings. */ if (sctx->ngg && + !dispatch_prim_discard_cs && rast_prim == PIPE_PRIM_TRIANGLES && (sctx->screen->always_use_ngg_culling || /* At least 1024 non-indexed vertices (8 subgroups) are needed -- 2.30.2