From a2a7610e1fd27e789cab13ce54ee3233791c26f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 18 Aug 2021 11:12:30 -0400 Subject: [PATCH] radeonsi: strengthen the VGT_FLUSH condition in begin_new_gfx_cs Cc: mesa-stable Acked-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_gfx_cs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_gfx_cs.c b/src/gallium/drivers/radeonsi/si_gfx_cs.c index 02421e3970f..3bd8417b6bb 100644 --- a/src/gallium/drivers/radeonsi/si_gfx_cs.c +++ b/src/gallium/drivers/radeonsi/si_gfx_cs.c @@ -355,8 +355,8 @@ void si_begin_new_gfx_cs(struct si_context *ctx, bool first_cs) SI_CONTEXT_INV_L2 | SI_CONTEXT_START_PIPELINE_STATS; ctx->pipeline_stats_enabled = -1; - /* We don't know if the last draw call used GS fast launch, so assume it didn't. */ - if (ctx->chip_class == GFX10 && ctx->ngg_culling & SI_NGG_CULL_GS_FAST_LAUNCH_ALL) + /* We don't know if the last draw used NGG. */ + if (ctx->screen->info.has_vgt_flush_ngg_legacy_bug) ctx->flags |= SI_CONTEXT_VGT_FLUSH; if (ctx->border_color_buffer) {