nv50/ir: disallow 64-bit immediates on nv50 targets
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 6 Nov 2015 22:58:42 +0000 (17:58 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 6 Nov 2015 23:13:31 +0000 (18:13 -0500)
No instructions are able to load short immediates like nvc0 can.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp

index f3ddcaa51999f7f11baed423d172b568a7d5a7df..94cf0f0e05e5bd4545b666b3c543dc1dec203d00 100644 (file)
@@ -343,7 +343,7 @@ TargetNV50::insnCanLoad(const Instruction *i, int s,
    }
 
    if (sf == FILE_IMMEDIATE)
-      return true;
+      return ldSize <= 4;
 
 
    // Check if memory access is encodable: