From b82a09fe13adf7b32504f9fc57fb383a76ee2089 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 31 May 2022 15:15:04 -0400 Subject: [PATCH] zink: break out dynamic state1 pipeline info to struct Reviewed-by: Dave Airlie Part-of: --- src/gallium/drivers/zink/zink_pipeline.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/gallium/drivers/zink/zink_pipeline.h b/src/gallium/drivers/zink/zink_pipeline.h index 9e0d9d7618c..8bb323d0568 100644 --- a/src/gallium/drivers/zink/zink_pipeline.h +++ b/src/gallium/drivers/zink/zink_pipeline.h @@ -39,6 +39,12 @@ struct zink_render_pass; struct zink_screen; struct zink_vertex_elements_state; +struct zink_pipeline_dynamic_state1 { + uint8_t front_face; //VkFrontFace:1 + uint16_t num_viewports; + struct zink_depth_stencil_alpha_hw_state *depth_stencil_alpha_state; +}; + struct zink_gfx_pipeline_state { uint32_t rast_state : ZINK_RAST_HW_STATE_SIZE; //zink_rasterizer_hw_state uint32_t vertices_per_patch:5; @@ -54,11 +60,7 @@ struct zink_gfx_pipeline_state { uint32_t hash; bool dirty; - struct { - uint8_t front_face; //VkFrontFace:1 - uint16_t num_viewports; - struct zink_depth_stencil_alpha_hw_state *depth_stencil_alpha_state; //non-dynamic state - } dyn_state1; + struct zink_pipeline_dynamic_state1 dyn_state1; struct { bool primitive_restart;