diff options
author | Samuel Pitoiset <[email protected]> | 2019-04-10 17:16:54 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-04-12 17:30:55 +0200 |
commit | 8a6442075f0611d4ccdddfd77fd6b2342d5b2ef0 (patch) | |
tree | cb03250e0ebf40c8b556a01f191bd720508dc9cb /src/amd | |
parent | ffbb62f808a3c98ad4179f246b46be5c00d0736d (diff) |
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]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, |