zink: break out dynamic state1 pipeline info to struct

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16838>
This commit is contained in:
Mike Blumenkrantz
2022-05-31 15:15:04 -04:00
committed by Marge Bot
parent bee8a7385d
commit b82a09fe13
+7 -5
View File
@@ -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;