From fb6aaaf2c3eb3964774ca43cb2a5fc73267b5c9a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 15 Jul 2022 08:43:07 -0600 Subject: [PATCH] llvmpipe: make opaque field a 1-bit field Reduces sizeof(lp_fragment_shader_variant) from 296 to 288 bytes. Signed-off-by: Brian Paul Reviewed-by: Dave Airlie Reviewed-by: Roland Scheidegger Part-of: --- src/gallium/drivers/llvmpipe/lp_state_fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.h b/src/gallium/drivers/llvmpipe/lp_state_fs.h index fe9d64c516c..a0e1cc37cd1 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.h +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.h @@ -164,10 +164,10 @@ struct lp_fragment_shader_variant */ unsigned potentially_opaque:1; + unsigned opaque:1; unsigned blit:1; unsigned linear_input_mask:16; struct pipe_reference reference; - boolean opaque; struct gallivm_state *gallivm;