summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-12-10 20:13:40 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-12-10 20:20:34 +0100
commit51f22689a419a8a13ca105e8ffc905b5fadea0db (patch)
tree309fedef234bc3320f4b6017f1d5f9061f2861de /src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
parente32ec112785d9ea111a9de0087f2f487cadc9051 (diff)
nvc0: fix branching ops
- bra is PC relative - jump to else condition was inverted - handle integer comparisons
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c b/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
index a6797db9c5..26f9e735fb 100644
--- a/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
+++ b/src/gallium/drivers/nvc0/nvc0_tgsi_to_nc.c
@@ -1494,7 +1494,7 @@ bld_instruction(struct bld_context *bld,
bld->join_bb[bld->cond_lvl] = bld->pc->current_block;
bld->cond_bb[bld->cond_lvl] = bld->pc->current_block;
- src1 = bld_setp(bld, NV_OP_SET_U32, NV_CC_NE,
+ src1 = bld_setp(bld, NV_OP_SET_U32, NV_CC_EQ,
emit_fetch(bld, insn, 0, 0), bld->zero);
bld_flow(bld, NV_OP_BRA, src1, NULL, (bld->cond_lvl == 0));