summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2019-11-15 14:40:19 +0000
committerRhys Perry <[email protected]>2019-11-20 15:05:42 +0000
commit45a0b5349082fba81dac7adf9a59c5a1b40baaa6 (patch)
treeca367e5b6fadf6edb54574f50e9a84f923e69d04 /src/compiler/nir
parent645332f3f5b2a7a7df10a9aed1a2636709a1f044 (diff)
nir: make nir_variable::{num_members,num_state_slots} a uint16_t
Doesn't shrink it (at least, on x86-64) and leaves space for more members. Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 32bcfe22c2f..4db85b3fafd 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -505,7 +505,7 @@ typedef struct nir_variable {
} data;
/* Number of nir_variable_data members */
- unsigned num_members;
+ uint16_t num_members;
/**
* Built-in state that backs this uniform
@@ -519,7 +519,7 @@ typedef struct nir_variable {
* \c state_slots will be \c NULL.
*/
/*@{*/
- unsigned num_state_slots; /**< Number of state slots used */
+ uint16_t num_state_slots; /**< Number of state slots used */
nir_state_slot *state_slots; /**< State descriptors. */
/*@}*/