From 42d50c779ba1fcf577275940fb999db380e7e9b0 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 6 Sep 2017 13:18:45 +1000 Subject: nir: put compact into bitfields in nir_variable_data This being declared bool means it won't get merged with the previous bitfields, this seems like an oversight rather than deliberate. Noticed when running pahole. Reviewed-by: Jason Ekstrand Signed-off-by: Dave Airlie --- src/compiler/nir/nir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 9313b7ac907..8330e6d7ce7 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -220,7 +220,7 @@ typedef struct nir_variable { * be tightly packed. In other words, consecutive array elements * should be stored one component apart, rather than one slot apart. */ - bool compact:1; + unsigned compact:1; /** * Whether this is a fragment shader output implicitly initialized with -- cgit v1.2.3