diff options
author | Dave Airlie <[email protected]> | 2017-09-06 13:18:45 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-09-07 11:00:04 +1000 |
commit | 42d50c779ba1fcf577275940fb999db380e7e9b0 (patch) | |
tree | 1b591be682a0f1ebbc4c7b1f2bb90e8a412bf12a /src | |
parent | ec8ed2f2779c30863f7478b8f5ad9654abbff346 (diff) |
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 <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/nir/nir.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |