Mesa (master): ac/nir: drop radv prefix from radv_lower_gather4_integer()

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Tue Mar 13 15:54:59 UTC 2018


Module: Mesa
Branch: master
Commit: cd4e823341b6a1f987f22bbaa96cab82a483ce33
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cd4e823341b6a1f987f22bbaa96cab82a483ce33

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Mar 13 14:12:04 2018 +0100

ac/nir: drop radv prefix from radv_lower_gather4_integer()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/common/ac_nir_to_llvm.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 3a9cb7b920..dff3bca713 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -1046,9 +1046,9 @@ static void build_int_type_name(
 		strcpy(buf, "i32");
 }
 
-static LLVMValueRef radv_lower_gather4_integer(struct ac_llvm_context *ctx,
-					       struct ac_image_args *args,
-					       const nir_tex_instr *instr)
+static LLVMValueRef lower_gather4_integer(struct ac_llvm_context *ctx,
+					  struct ac_image_args *args,
+					  const nir_tex_instr *instr)
 {
 	enum glsl_base_type stype = glsl_get_sampler_result_type(instr->texture->var->type);
 	LLVMValueRef coord = args->addr;
@@ -1225,7 +1225,7 @@ static LLVMValueRef build_tex_intrinsic(struct ac_nir_context *ctx,
 	if (instr->op == nir_texop_tg4 && ctx->ac.chip_class <= VI) {
 		enum glsl_base_type stype = glsl_get_sampler_result_type(instr->texture->var->type);
 		if (stype == GLSL_TYPE_UINT || stype == GLSL_TYPE_INT) {
-			return radv_lower_gather4_integer(&ctx->ac, args, instr);
+			return lower_gather4_integer(&ctx->ac, args, instr);
 		}
 	}
 	return ac_build_image_opcode(&ctx->ac, args);




More information about the mesa-commit mailing list