mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-05 08:14:57 +08:00
zink: store context flags
Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17315>
This commit is contained in:
parent
c86563c29e
commit
8af9caa506
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user