gm107/ir: make use of LOP32I for all immediates
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 27 Jun 2016 21:55:53 +0000 (23:55 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 27 Jun 2016 22:29:53 +0000 (00:29 +0200)
LOP only allows to emit 19-bits immediates.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp

index 25a9a529fa6dd9e860d06b62377b39e6557c5f9a..a92dba0aa1628611e27befc1334ae4ac00dc526f 100644 (file)
@@ -1606,7 +1606,7 @@ CodeEmitterGM107::emitLOP()
       break;
    }
 
-   if (!longIMMD(insn->src(1))) {
+   if (insn->src(1).getFile() != FILE_IMMEDIATE) {
       switch (insn->src(1).getFile()) {
       case FILE_GPR:
          emitInsn(0x5c400000);