From: Rhys Perry Date: Fri, 15 Nov 2019 14:40:19 +0000 (+0000) Subject: nir: make nir_variable::{num_members,num_state_slots} a uint16_t X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=45a0b5349082fba81dac7adf9a59c5a1b40baaa6;p=mesa.git 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 Reviewed-by: Connor Abbott --- 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. */ /*@}*/