From 2437f0085372355980864454964749ac8231ca44 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Fri, 6 Nov 2015 17:58:42 -0500 Subject: [PATCH] nv50/ir: disallow 64-bit immediates on nv50 targets No instructions are able to load short immediates like nvc0 can. Signed-off-by: Ilia Mirkin --- src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp index f3ddcaa5199..94cf0f0e05e 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp @@ -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: -- 2.30.2