gk110/ir: fix bfind emission
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 7 Jun 2014 20:37:57 +0000 (16:37 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 7 Jun 2014 20:39:19 +0000 (16:39 -0400)
There is a short-immediate version as well, but it should never end up
getting used since it would have gotten folded earlier.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp

index bc77bd8..75b3da2 100644 (file)
@@ -713,7 +713,7 @@ CodeEmitterGK110::emitEXTBF(const Instruction *i)
 void
 CodeEmitterGK110::emitBFIND(const Instruction *i)
 {
-   emitForm_21(i, 0x618, 0xc18);
+   emitForm_C(i, 0x218, 0x2);
 
    if (i->dType == TYPE_S32)
       code[1] |= 0x80000;