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 bc77bd8c07aa7080621abaa37f0d893fe73b532d..75b3da2697f52a43ccf65b63215b504c41ae40f9 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;