radeonsi: strengthen the VGT_FLUSH condition in begin_new_gfx_cs

Cc: mesa-stable

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12812>
This commit is contained in:
Marek Olšák
2021-08-18 11:12:30 -04:00
committed by Marge Bot
parent 8d7846cfed
commit a2a7610e1f
+2 -2
View File
@@ -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) {