Mesa (main): crocus/gfx6: always be dirtying gs attachments for xfb

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 24 07:09:35 UTC 2021


Module: Mesa
Branch: main
Commit: 78c979dc9311e7bb3d4180db4a9b366c532921e2
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=78c979dc9311e7bb3d4180db4a9b366c532921e2

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Jun 24 16:43:16 2021 +1000

crocus/gfx6: always be dirtying gs attachments for xfb

This fixes hangs seen with xfb and the deqp test

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11567>

---

 src/gallium/drivers/crocus/crocus_state.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/crocus/crocus_state.c b/src/gallium/drivers/crocus/crocus_state.c
index b39b5232d12..f9ad130e98a 100644
--- a/src/gallium/drivers/crocus/crocus_state.c
+++ b/src/gallium/drivers/crocus/crocus_state.c
@@ -4174,7 +4174,7 @@ crocus_set_stream_output_targets(struct pipe_context *ctx,
       }
       pipe_so_target_reference(&old_tgt[i], NULL);
    }
-
+   ice->state.stage_dirty |= CROCUS_STAGE_DIRTY_BINDINGS_GS;
 #else
    for (int i = 0; i < PIPE_MAX_SO_BUFFERS; i++) {
       if (num_targets) {
@@ -4210,7 +4210,6 @@ crocus_set_stream_output_targets(struct pipe_context *ctx,
    ice->state.dirty |= CROCUS_DIRTY_GEN7_SO_BUFFERS;
 #elif GFX_VER == 6
    ice->state.dirty |= CROCUS_DIRTY_GEN6_SVBI;
-   ice->state.stage_dirty |= CROCUS_STAGE_DIRTY_BINDINGS_GS;
 #endif
 }
 



More information about the mesa-commit mailing list