Mesa (master): gk110/ir: fix bfind emission

Ilia Mirkin imirkin at kemper.freedesktop.org
Sat Jun 7 20:46:50 UTC 2014


Module: Mesa
Branch: master
Commit: bd7dd3ed06ea9e88a9f6e18f45338bd99fde86f1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd7dd3ed06ea9e88a9f6e18f45338bd99fde86f1

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Jun  7 16:37:57 2014 -0400

gk110/ir: fix bfind emission

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 at alum.mit.edu>
Cc: "10.2" <mesa-stable at lists.freedesktop.org>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
index bc77bd8..75b3da2 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gk110.cpp
@@ -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;




More information about the mesa-commit mailing list