summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvc0/nvc0_pc_emit.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-11-12 23:37:47 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2010-12-09 12:05:03 +0100
commit548967f9faef8b4f3713e20c29b85cea3149e91d (patch)
tree6e3c0bf0be7cf8f3e97b74dc3fc0c5ae8a3660ef /src/gallium/drivers/nvc0/nvc0_pc_emit.c
parent4c2247538394a313e1e90bfcd07c1ab9c7d41281 (diff)
nvc0: rcp f32 also supports neg and abs modifiers
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_pc_emit.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_pc_emit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_pc_emit.c b/src/gallium/drivers/nvc0/nvc0_pc_emit.c
index 8a94175e27..4edbdb22e5 100644
--- a/src/gallium/drivers/nvc0/nvc0_pc_emit.c
+++ b/src/gallium/drivers/nvc0/nvc0_pc_emit.c
@@ -420,7 +420,7 @@ emit_flop(struct nv_pc *pc, struct nv_instruction *i, ubyte op)
pc->emit[0] |= op << 26;
- if (op > 4) {
+ if (op >= 4) {
if (i->src[0]->mod & NV_MOD_NEG) pc->emit[0] |= 1 << 9;
if (i->src[0]->mod & NV_MOD_ABS) pc->emit[0] |= 1 << 7;
} else {