From 986345c754299e4ddf861414056757295ce95aaf Mon Sep 17 00:00:00 2001 From: Chip Davis Date: Wed, 12 Sep 2018 09:43:12 -0500 Subject: [PATCH] Fix tests for changes to my last patch. --- reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp | 2 +- reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp | 2 +- reference/shaders-msl/asm/comp/atomic-decrement.asm.comp | 2 +- reference/shaders-msl/asm/comp/atomic-increment.asm.comp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp b/reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp index 6ab8e274..06bb5cc4 100644 --- a/reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp +++ b/reference/opt/shaders-msl/asm/comp/atomic-decrement.asm.comp @@ -21,6 +21,6 @@ uint2 spvTexelBufferCoord(uint tc) kernel void main0(device u0_counters& u0_counter [[buffer(0)]], texture2d u0 [[texture(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]]) { uint _29 = atomic_fetch_sub_explicit((volatile device atomic_uint*)&u0_counter.c, 1, memory_order_relaxed); - u0.write(uint4(uint(int3(gl_GlobalInvocationID).x)), spvTexelBufferCoord((uint(as_type(as_type(_29))) + 0u))); + u0.write(uint4(uint(int(gl_GlobalInvocationID.x))), spvTexelBufferCoord((uint(as_type(as_type(_29))) + 0u))); } diff --git a/reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp b/reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp index 7276c4ec..daf4671e 100644 --- a/reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp +++ b/reference/opt/shaders-msl/asm/comp/atomic-increment.asm.comp @@ -21,6 +21,6 @@ uint2 spvTexelBufferCoord(uint tc) kernel void main0(device u0_counters& u0_counter [[buffer(0)]], texture2d u0 [[texture(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]]) { uint _29 = atomic_fetch_add_explicit((volatile device atomic_uint*)&u0_counter.c, 1, memory_order_relaxed); - u0.write(uint4(uint(int3(gl_GlobalInvocationID).x)), spvTexelBufferCoord((uint(as_type(as_type(_29))) + 0u))); + u0.write(uint4(uint(int(gl_GlobalInvocationID.x))), spvTexelBufferCoord((uint(as_type(as_type(_29))) + 0u))); } diff --git a/reference/shaders-msl/asm/comp/atomic-decrement.asm.comp b/reference/shaders-msl/asm/comp/atomic-decrement.asm.comp index cd7bd066..95841a78 100644 --- a/reference/shaders-msl/asm/comp/atomic-decrement.asm.comp +++ b/reference/shaders-msl/asm/comp/atomic-decrement.asm.comp @@ -23,6 +23,6 @@ kernel void main0(device u0_counters& u0_counter [[buffer(0)]], texture2d(_29); - u0.write(uint4(uint(int3(gl_GlobalInvocationID).x)), spvTexelBufferCoord(((uint(as_type(r0.x)) * 1u) + (uint(0) >> 2u)))); + u0.write(uint4(uint(int(gl_GlobalInvocationID.x))), spvTexelBufferCoord(((uint(as_type(r0.x)) * 1u) + (uint(0) >> 2u)))); } diff --git a/reference/shaders-msl/asm/comp/atomic-increment.asm.comp b/reference/shaders-msl/asm/comp/atomic-increment.asm.comp index f7e93aee..cd78fa2c 100644 --- a/reference/shaders-msl/asm/comp/atomic-increment.asm.comp +++ b/reference/shaders-msl/asm/comp/atomic-increment.asm.comp @@ -23,6 +23,6 @@ kernel void main0(device u0_counters& u0_counter [[buffer(0)]], texture2d(_29); - u0.write(uint4(uint(int3(gl_GlobalInvocationID).x)), spvTexelBufferCoord(((uint(as_type(r0.x)) * 1u) + (uint(0) >> 2u)))); + u0.write(uint4(uint(int(gl_GlobalInvocationID.x))), spvTexelBufferCoord(((uint(as_type(r0.x)) * 1u) + (uint(0) >> 2u)))); }