Module: Mesa Branch: master Commit: 8a6442075f0611d4ccdddfd77fd6b2342d5b2ef0 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a6442075f0611d4ccdddfd77fd6b2342d5b2ef0
Author: Samuel Pitoiset <[email protected]> Date: Wed Apr 10 17:16:54 2019 +0200 ac/nir: remove useless integer cast in visit_image_load() ac_build_image_opcode() casts if necessary and buffer images are casted too. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]> --- 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 f51e07d531d..546d43979ce 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2550,7 +2550,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, _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
