From beebcbd1aa31d829d835047155bfc477d932abd7 Mon Sep 17 00:00:00 2001 From: Robert Konrad Date: Wed, 5 Oct 2016 19:18:04 +0200 Subject: [PATCH] Splat even less in HLSL --- spirv_glsl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spirv_glsl.cpp b/spirv_glsl.cpp index 9148c8b1..85b259fa 100644 --- a/spirv_glsl.cpp +++ b/spirv_glsl.cpp @@ -3036,7 +3036,7 @@ void CompilerGLSL::emit_instruction(const Instruction &instruction) // Only splat if we have vector constructors. // Arrays and structs must be initialized properly in full. bool composite = !out_type.array.empty() || out_type.basetype == SPIRType::Struct; - bool splat = in_type.vecsize == 1 && in_type.columns == 1 && !composite; + bool splat = in_type.vecsize == 1 && in_type.columns == 1 && !composite && backend.use_constructor_splatting; if (splat) {