Mesa (nvc0): nvc0: rcp f32 also supports neg and abs modifiers

Christoph Bumiller chrisbmr at kemper.freedesktop.org
Thu Dec 9 14:31:33 UTC 2010


Module: Mesa
Branch: nvc0
Commit: 548967f9faef8b4f3713e20c29b85cea3149e91d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=548967f9faef8b4f3713e20c29b85cea3149e91d

Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date:   Fri Nov 12 23:37:47 2010 +0100

nvc0: rcp f32 also supports neg and abs modifiers

---

 src/gallium/drivers/nvc0/nvc0_pc_emit.c |    2 +-
 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 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 {




More information about the mesa-commit mailing list