Mesa (main): zink: break out dynamic state1 pipeline info to struct

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jun 3 01:38:19 UTC 2022


Module: Mesa
Branch: main
Commit: b82a09fe13adf7b32504f9fc57fb383a76ee2089
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b82a09fe13adf7b32504f9fc57fb383a76ee2089

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue May 31 15:15:04 2022 -0400

zink: break out dynamic state1 pipeline info to struct

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16838>

---

 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;



More information about the mesa-commit mailing list