zink: repack zink_gfx_pipeline_state
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 15 Jun 2021 15:52:08 +0000 (11:52 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 27 Aug 2021 10:52:59 +0000 (10:52 +0000)
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12586>

src/gallium/drivers/zink/zink_pipeline.h

index 007901e..81eb8a2 100644 (file)
@@ -39,16 +39,14 @@ struct zink_screen;
 struct zink_vertex_elements_state;
 
 struct zink_gfx_pipeline_state {
-   struct zink_render_pass *render_pass;
-
-   uint8_t void_alpha_attachments:PIPE_MAX_COLOR_BUFS;
-   struct zink_blend_state *blend_state;
-
    uint32_t rast_state : ZINK_RAST_HW_STATE_SIZE; //zink_rasterizer_hw_state
-
+   uint32_t rast_samples:7;
+   uint32_t vertices_per_patch;
+   uint32_t void_alpha_attachments:PIPE_MAX_COLOR_BUFS;
    VkSampleMask sample_mask;
-   uint8_t rast_samples:7;
-   uint8_t vertices_per_patch;
+
+   struct zink_render_pass *render_pass;
+   struct zink_blend_state *blend_state;
 
    /* Pre-hashed value for table lookup, invalid when zero.
     * Members after this point are not included in pipeline state hash key */