summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/codegen
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-06-27 23:55:53 +0200
committerSamuel Pitoiset <[email protected]>2016-06-28 00:29:53 +0200
commit83a4f28dc27bd3f679d001fb0065940ad1f0f422 (patch)
tree5c4f980c1a24efb93b25b8128b478b99643d085a /src/gallium/drivers/nouveau/codegen
parentc7cc264ca97fe52688f26dd9249a68f574b18f56 (diff)
gm107/ir: make use of LOP32I for all immediates
LOP only allows to emit 19-bits immediates. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Cc: <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/codegen')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
index 25a9a529fa6..a92dba0aa16 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_emit_gm107.cpp
@@ -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);