Mesa (main): zink: store context flags
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jun 30 15:06:01 UTC 2022
Module: Mesa
Branch: main
Commit: 8af9caa506e8f12b803399fb5704928792753694
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8af9caa506e8f12b803399fb5704928792753694
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Thu Jun 30 10:11:59 2022 -0400
zink: store context flags
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17315>
---
src/gallium/drivers/zink/zink_context.c | 1 +
src/gallium/drivers/zink/zink_context.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/src/gallium/drivers/zink/zink_context.c b/src/gallium/drivers/zink/zink_context.c
index 347bea9f158..b6eca1aeb72 100644
--- a/src/gallium/drivers/zink/zink_context.c
+++ b/src/gallium/drivers/zink/zink_context.c
@@ -4241,6 +4241,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
if (!ctx)
goto fail;
+ ctx->flags = flags;
ctx->pipeline_changed[0] = ctx->pipeline_changed[1] = true;
ctx->gfx_pipeline_state.dirty = true;
ctx->gfx_pipeline_state.dyn_state2.vertices_per_patch = 1;
diff --git a/src/gallium/drivers/zink/zink_context.h b/src/gallium/drivers/zink/zink_context.h
index 539d6cdc657..b86f442835b 100644
--- a/src/gallium/drivers/zink/zink_context.h
+++ b/src/gallium/drivers/zink/zink_context.h
@@ -203,6 +203,8 @@ struct zink_context {
struct slab_child_pool transfer_pool_unsync;
struct blitter_context *blitter;
+ unsigned flags;
+
pipe_draw_vbo_func draw_vbo[2]; //batch changed
pipe_draw_vertex_state_func draw_state[2]; //batch changed
pipe_launch_grid_func launch_grid[2]; //batch changed
More information about the mesa-commit
mailing list