[Mesa-dev] [PATCH 09/10] ac/nir: remove useless integer cast in visit_image_load()
Samuel Pitoiset
samuel.pitoiset at gmail.com
Wed Apr 10 15:16:54 UTC 2019
ac_build_image_opcode() casts if necessary and buffer images
are casted too.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
src/amd/common/ac_nir_to_llvm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index cef665d0630..3dfcbacdef4 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -2535,7 +2535,7 @@ static LLVMValueRef visit_image_load(struct ac_nir_context *ctx,
res = ac_build_image_opcode(&ctx->ac, &args);
}
- return ac_to_integer(&ctx->ac, res);
+ return res;
}
static void visit_image_store(struct ac_nir_context *ctx,
--
2.21.0
More information about the mesa-dev
mailing list