From: Ilia Mirkin Date: Fri, 6 Nov 2015 22:58:42 +0000 (-0500) Subject: nv50/ir: disallow 64-bit immediates on nv50 targets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2437f0085372355980864454964749ac8231ca44;p=mesa.git 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 --- 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: