[Mesa-dev] [PATCH 02/17] amd/common: remove unnecessary num_user_sgprs_used

Samuel Pitoiset samuel.pitoiset at gmail.com
Wed Dec 20 19:55:52 UTC 2017


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/common/ac_nir_to_llvm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index e2847c92b3..b496c74f78 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
-- 
2.15.1



More information about the mesa-dev mailing list