From: Christoph Bumiller Date: Fri, 12 Nov 2010 22:37:47 +0000 (+0100) Subject: nvc0: rcp f32 also supports neg and abs modifiers X-Git-Tag: 062012170305~8104^2~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=548967f9faef8b4f3713e20c29b85cea3149e91d;p=profile%2Fivi%2Fmesa.git nvc0: rcp f32 also supports neg and abs modifiers --- diff --git a/src/gallium/drivers/nvc0/nvc0_pc_emit.c b/src/gallium/drivers/nvc0/nvc0_pc_emit.c index 8a94175..4edbdb2 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 {