Mesa (main): zink: init ctx->gfx_prim_mode to nonzero value to trigger pipeline changes

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Aug 27 02:50:21 UTC 2021


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Fri Jun 25 09:32:44 2021 -0400

zink: init ctx->gfx_prim_mode to nonzero value to trigger pipeline changes

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12572>

---

 src/gallium/drivers/zink/zink_context.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index c976a31bf19..4b7b98fa5db 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -3420,6 +3420,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
    ctx->gfx_pipeline_state.dirty = true;
    ctx->compute_pipeline_state.dirty = true;
    ctx->fb_changed = ctx->rp_changed = true;
+   ctx->gfx_prim_mode = PIPE_PRIM_MAX;
 
    zink_init_draw_functions(ctx, screen);
    zink_init_grid_functions(ctx);



More information about the mesa-commit mailing list