amd/common: remove unnecessary user_sgpr_count
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Dec 2017 19:55:51 +0000 (20:55 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 27 Dec 2017 09:24:44 +0000 (10:24 +0100)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c

index 87f1918c5e489695bcb6f38e5742c44e9509703f..e58cf1f85ecaff64998a265a0c22dc1efe570479 100644 (file)
@@ -252,7 +252,6 @@ struct arg_info {
        LLVMValueRef *assign[MAX_ARGS];
        unsigned array_params_mask;
        uint8_t count;
-       uint8_t user_sgpr_count;
        uint8_t sgpr_count;
        uint8_t num_user_sgprs_used;
        uint8_t num_sgprs_used;
@@ -285,7 +284,6 @@ add_user_sgpr_argument(struct arg_info *info,
 {
        add_sgpr_argument(info, type, param_ptr);
        info->num_user_sgprs_used += ac_get_type_size(type) / 4;
-       info->user_sgpr_count++;
 }
 
 static inline void