summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-12-20 20:55:52 +0100
committerSamuel Pitoiset <[email protected]>2017-12-27 10:24:46 +0100
commit62942aa8c6b82f537366bb3ace451f5fb54b0edc (patch)
tree6e693c428e8ada2383b6eaff3042f8d0b2c5b922
parent6edf1fcdf524e7815245ee308b575e319f2e65b8 (diff)
amd/common: remove unnecessary num_user_sgprs_used
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/common/ac_nir_to_llvm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index e58cf1f85ec..078bd2408d7 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -253,7 +253,6 @@ struct arg_info {
unsigned array_params_mask;
uint8_t count;
uint8_t sgpr_count;
- uint8_t num_user_sgprs_used;
uint8_t num_sgprs_used;
uint8_t num_vgprs_used;
};
@@ -283,7 +282,6 @@ add_user_sgpr_argument(struct arg_info *info,
LLVMValueRef *param_ptr)
{
add_sgpr_argument(info, type, param_ptr);
- info->num_user_sgprs_used += ac_get_type_size(type) / 4;
}
static inline void