From 646bb736fa2d3b2a54d8aa8faca0a28709be44de Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 5 May 2020 16:24:27 +0100 Subject: [PATCH] Fix problem if the uninitialised variable value is NaN --- util/test/demos/vk/vk_shader_debug_zoo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/test/demos/vk/vk_shader_debug_zoo.cpp b/util/test/demos/vk/vk_shader_debug_zoo.cpp index 1b34b1c14..f4464b901 100644 --- a/util/test/demos/vk/vk_shader_debug_zoo.cpp +++ b/util/test/demos/vk/vk_shader_debug_zoo.cpp @@ -2597,7 +2597,7 @@ void main() ; against the real thing when it's undefined. But we can at least expose it so that ; when manually checking we see the uninitialised values %_uninit = OpLoad %float4 %priv_float4 - %_x = OpVectorTimesScalar %float4 %_uninit %float_0_0 + %_x = OpExtInst %float4 %glsl450 NClamp %_uninit %float4_0000 %float4_0000 %_out_float4 = OpFAdd %float4 %_x %float4_1234 )EOTEST", R"EOTEST( @@ -2605,7 +2605,7 @@ void main() ; against the real thing when it's undefined. But we can at least expose it so that ; when manually checking we see the uninitialised values %_uninit = OpLoad %float4 %Color - %_x = OpVectorTimesScalar %float4 %_uninit %float_0_0 + %_x = OpExtInst %float4 %glsl450 NClamp %_uninit %float4_0000 %float4_0000 %_out_float4 = OpFAdd %float4 %_x %float4_1234 )EOTEST", });