summaryrefslogtreecommitdiffstats
path: root/src/amd/common
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-10-20 01:42:22 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-24 08:51:57 +0100
commit554a99ebdecd6e2fb88e2aa05308e06372886c36 (patch)
tree324701c6ec6660ff6c0ed9153c9776477febe777 /src/amd/common
parente45c4586c275b6d47e1c51cb568db644c7c55f61 (diff)
downloadexternal_mesa3d-554a99ebdecd6e2fb88e2aa05308e06372886c36.zip
external_mesa3d-554a99ebdecd6e2fb88e2aa05308e06372886c36.tar.gz
external_mesa3d-554a99ebdecd6e2fb88e2aa05308e06372886c36.tar.bz2
radv: use emit_icmp for samples_identical
On a debug llvm build we'd assert on the next compare when the return from samples_identical was i1 instead of i32. Cc: "13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com> (cherry picked from commit d842546ad1ebdb4825f0cbca2d68a56139d88e2a)
Diffstat (limited to 'src/amd/common')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c2
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 e2f6bca..08dac80 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -3412,7 +3412,7 @@ static void visit_tex(struct nir_to_llvm_context *ctx, nir_tex_instr *instr)
result = build_tex_intrinsic(ctx, instr, &txf_info);
result = LLVMBuildExtractElement(ctx->builder, result, ctx->i32zero, "");
- result = LLVMBuildICmp(ctx->builder, LLVMIntEQ, result, ctx->i32zero, "");
+ result = emit_int_cmp(ctx, LLVMIntEQ, result, ctx->i32zero);
goto write_result;
}