From c5b43c54cad254018b63c7efe8194b80243b6a6c Mon Sep 17 00:00:00 2001 From: kaizhangNV Date: Wed, 22 Jan 2025 21:23:44 -0800 Subject: [PATCH] revert a test change --- tests/compute/init-list-defaults.slang | 5 ++--- tests/hlsl-intrinsic/vector-double-reduced-intrinsic.slang | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/compute/init-list-defaults.slang b/tests/compute/init-list-defaults.slang index dcb7b994ba..fe55e92595 100644 --- a/tests/compute/init-list-defaults.slang +++ b/tests/compute/init-list-defaults.slang @@ -12,10 +12,9 @@ struct Test int test(int inVal) { - // Note: int4 is not a C-Style struct, so {4, 5, 6,} is not a valid initializer list for it. Test myArray[4] = { { int4(1), { 2, 3} }, - { {4, 5, 6, 0}, { 7, } }, + { {4, 5, 6, }, { 7, } }, }; return myArray[0].b[inVal] @@ -36,4 +35,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) int outVal = test(inVal); outputBuffer[tid] = outVal; -} +} \ No newline at end of file diff --git a/tests/hlsl-intrinsic/vector-double-reduced-intrinsic.slang b/tests/hlsl-intrinsic/vector-double-reduced-intrinsic.slang index d9daaf8dc0..c2280a72ce 100644 --- a/tests/hlsl-intrinsic/vector-double-reduced-intrinsic.slang +++ b/tests/hlsl-intrinsic/vector-double-reduced-intrinsic.slang @@ -25,7 +25,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) FloatVector f = FloatVector(0.1f, vf, vf + 0.2f); // Operate over all values - FloatVector ft = {0.0f}; + FloatVector ft = {}; // TODO(JS): // fmod - disabled not available on D3D for double @@ -71,4 +71,4 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID) ft += clamp(f, 0.1l, 0.3l); outputBuffer[idx] = vector(ft, 0); -} +} \ No newline at end of file