summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2014-09-09 22:52:56 -0400
committerRob Clark <robclark@freedesktop.org>2014-09-12 16:26:05 -0400
commitdb1a94b1cc91179de2a02f24b002b300e06c78b2 (patch)
treeeef6f181036ba4f09c2d0d7150cc77afae1d7140
parent11d72553c5aaf5e7d3b2ab7d73f5cb8610aeb685 (diff)
freedreno/ir3: use unsigned comparison for UIF
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Rob Clark <robclark@freedesktop.org>
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_compiler.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c
index e214fec7ee0..08c2119e403 100644
--- a/src/gallium/drivers/freedreno/ir3/ir3_compiler.c
+++ b/src/gallium/drivers/freedreno/ir3/ir3_compiler.c
@@ -1582,8 +1582,8 @@ trans_if(const struct instr_translater *t,
if (is_const(src))
src = get_unconst(ctx, src);
- /* cmps.f.ne tmp0, b, {0.0} */
- instr = instr_create(ctx, 2, OPC_CMPS_F);
+ /* cmps.{f,u}.ne tmp0, b, {0.0} */
+ instr = instr_create(ctx, 2, t->opc);
add_dst_reg(ctx, instr, &tmp_dst, 0);
add_src_reg(ctx, instr, src, src->SwizzleX);
add_src_reg(ctx, instr, &constval, constval.SwizzleX);
@@ -2099,8 +2099,8 @@ static const struct instr_translater translaters[TGSI_OPCODE_LAST] = {
INSTR(ISLT, trans_icmp, .opc = OPC_CMPS_S),
INSTR(USLT, trans_icmp, .opc = OPC_CMPS_U),
INSTR(UCMP, trans_icmp, .opc = OPC_CMPS_U),
- INSTR(IF, trans_if),
- INSTR(UIF, trans_if),
+ INSTR(IF, trans_if, .opc = OPC_CMPS_F),
+ INSTR(UIF, trans_if, .opc = OPC_CMPS_U),
INSTR(ELSE, trans_else),
INSTR(ENDIF, trans_endif),
INSTR(END, instr_cat0, .opc = OPC_END),