Mesa (master): radeonsi: rearrange condition for streamout workaround on gfx7 and gfx8

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 18 01:33:15 UTC 2021


Module: Mesa
Branch: master
Commit: 4088b6f2936ffccdb2e2b3d8479c964366e51f77
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4088b6f2936ffccdb2e2b3d8479c964366e51f77

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Sat Jan  9 07:00:25 2021 -0500

radeonsi: rearrange condition for streamout workaround on gfx7 and gfx8

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

---

 src/gallium/drivers/radeonsi/si_state_draw.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp
index 20f9435719c..f79e1aa28c1 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -2115,8 +2115,8 @@ static void si_draw_vbo(struct pipe_context *ctx,
 
    /* Workaround for a VGT hang when streamout is enabled.
     * It must be done after drawing. */
-   if ((GFX_VERSION == GFX7 || GFX_VERSION == GFX8) &&
-       (sctx->family == CHIP_HAWAII || sctx->family == CHIP_TONGA || sctx->family == CHIP_FIJI) &&
+   if (((GFX_VERSION == GFX7 && sctx->family == CHIP_HAWAII) ||
+        (GFX_VERSION == GFX8 && (sctx->family == CHIP_TONGA || sctx->family == CHIP_FIJI))) &&
        si_get_strmout_en(sctx)) {
       sctx->flags |= SI_CONTEXT_VGT_STREAMOUT_SYNC;
    }



More information about the mesa-commit mailing list