diff options
author | Samuel Pitoiset <[email protected]> | 2019-04-10 17:16:53 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-04-12 17:30:55 +0200 |
commit | ffbb62f808a3c98ad4179f246b46be5c00d0736d (patch) | |
tree | e21097d94b1e504376bd85d0edaa60b09f6d8369 /src/amd/common | |
parent | 7b5b27a685ee917c872a0024b73b1aec7c0aa658 (diff) |
ac/nir: remove useless integer cast in adjust_sample_index_using_fmask()
It's already casted if necessary in ac_build_image_opcode().
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index de52f008dbf..f51e07d531d 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2334,7 +2334,6 @@ static LLVMValueRef adjust_sample_index_using_fmask(struct ac_llvm_context *ctx, res = ac_build_image_opcode(ctx, &args); - res = ac_to_integer(ctx, res); LLVMValueRef four = LLVMConstInt(ctx->i32, 4, false); LLVMValueRef F = LLVMConstInt(ctx->i32, 0xf, false); |