diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.cpp index 708c5b3..f7079bb 100644 --- a/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.cpp +++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_build_util.cpp @@ -496,7 +496,7 @@ BuildUtil::DataArray::load(ValueMap &m, int i, int c, Value *ptr) if (regOnly) { Value *v = lookup(m, i, c); if (!v) - v = insert(m, i, c, new_LValue(up->getFunction(), file)); + v = insert(m, i, c, new_ImmediateValue(up->getProgram(), c == 3 ? 1.0f : 0.0f)); return v; } else {