radeonsi: do VGT_FLUSH when switching NGG -> legacy on Sienna Cichlid
authorMarek Olšák <marek.olsak@amd.com>
Mon, 9 Nov 2020 22:54:44 +0000 (17:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 18 Nov 2020 06:19:58 +0000 (06:19 +0000)
Other chips don't need this.

Fixes: 9538b9a68ed - radeonsi: add support for Sienna Cichlid

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7542>

src/gallium/drivers/radeonsi/si_state_shaders.c

index 60441df..a83ef01 100644 (file)
@@ -3032,7 +3032,7 @@ bool si_update_ngg(struct si_context *sctx)
        * VGT_FLUSH is also emitted at the beginning of IBs when legacy GS ring
        * pointers are set.
        */
-      if (sctx->chip_class == GFX10 && !new_ngg)
+      if ((sctx->chip_class == GFX10 || sctx->family == CHIP_SIENNA_CICHLID) && !new_ngg)
          sctx->flags |= SI_CONTEXT_VGT_FLUSH;
 
       sctx->ngg = new_ngg;