From 1fc9e94d12dd7bb432de4c7950f6b02e5972c118 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Fri, 9 Jul 2021 12:23:16 +0200 Subject: [PATCH] zink: use bit-allocation for boolean rasterizer-state This reduces the size of the struct a bit, and we're about to add some more bit-allocated stuff in the next commit. Reviewed-By: Mike Blumenkrantz Part-of: --- src/gallium/drivers/zink/zink_state.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/zink/zink_state.h b/src/gallium/drivers/zink/zink_state.h index 7a200a5..f27a975 100644 --- a/src/gallium/drivers/zink/zink_state.h +++ b/src/gallium/drivers/zink/zink_state.h @@ -47,12 +47,12 @@ struct zink_vertex_elements_state { }; struct zink_rasterizer_hw_state { - VkBool32 depth_clamp; - VkBool32 rasterizer_discard; VkPolygonMode polygon_mode; VkCullModeFlags cull_mode; VkProvokingVertexModeEXT pv_mode; - bool force_persample_interp; + unsigned depth_clamp : 1; + unsigned rasterizer_discard : 1; + unsigned force_persample_interp : 1; }; struct zink_rasterizer_state { -- 2.7.4