aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-12-20 20:56:02 +0100
committerSamuel Pitoiset <[email protected]>2017-12-27 10:25:06 +0100
commit9a2393a510d69361b8788b617fa0beac151cd4d5 (patch)
tree7ea3db0e45f65b4fcb7df4707fa3154445e2a687
parentb6217bdbeef8e07a20a2c9d51630aed6db6eda32 (diff)
amd/common: rename add_user_sgpr_array_argument() to add_array_arg()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
-rw-r--r--src/amd/common/ac_nir_to_llvm.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index e0d889f5088..77b27771c31 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -282,9 +282,7 @@ add_arg(struct arg_info *info, enum ac_arg_regfile regfile, LLVMTypeRef type,
}
static inline void
-add_user_sgpr_array_argument(struct arg_info *info,
- LLVMTypeRef type,
- LLVMValueRef *param_ptr)
+add_array_arg(struct arg_info *info, LLVMTypeRef type, LLVMValueRef *param_ptr)
{
info->array_params_mask |= (1 << info->count);
add_arg(info, ARG_SGPR, type, param_ptr);
@@ -686,19 +684,17 @@ declare_global_input_sgprs(struct nir_to_llvm_context *ctx,
if (!user_sgpr_info->indirect_all_descriptor_sets) {
for (unsigned i = 0; i < num_sets; ++i) {
if (ctx->options->layout->set[i].layout->shader_stages & stage_mask) {
- add_user_sgpr_array_argument(args, type,
- &ctx->descriptor_sets[i]);
+ add_array_arg(args, type,
+ &ctx->descriptor_sets[i]);
}
}
} else {
- add_user_sgpr_array_argument(args, const_array(type, 32),
- desc_sets);
+ add_array_arg(args, const_array(type, 32), desc_sets);
}
if (ctx->shader_info->info.needs_push_constants) {
/* 1 for push constants and dynamic descriptors */
- add_user_sgpr_array_argument(args, type,
- &ctx->push_constants);
+ add_array_arg(args, type, &ctx->push_constants);
}
}