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

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12572>
This commit is contained in:
Mike Blumenkrantz
2021-06-25 09:32:44 -04:00
committed by Marge Bot
parent b06ef86020
commit 95a9ea54f3
+1
View File
@@ -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);