diff options
author | Hans-Kristian Arntzen <hans-kristian.arntzen@arm.com> | 2018-03-12 16:58:40 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <hans-kristian.arntzen@arm.com> | 2018-03-12 17:11:55 +0300 |
commit | 9fbd8b789e351c2bb772cec570c1105962056b43 (patch) | |
tree | c9a9112fafdfcf70615d0aca2817b6ef6b578ecb /reference/opt/shaders-msl/asm/comp | |
parent | e8e58844d46ad8c95d68b073f5fc055ce64f9172 (diff) |
Update tests for latest SPIRV-Tools and glslang.
Diffstat (limited to 'reference/opt/shaders-msl/asm/comp')
-rw-r--r-- | reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp | 6 | ||||
-rw-r--r-- | reference/opt/shaders-msl/asm/comp/storage-buffer-basic.asm.comp | 1 |
2 files changed, 1 insertions, 6 deletions
diff --git a/reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp b/reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp index 5802ddac..0c3b3059 100644 --- a/reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp +++ b/reference/opt/shaders-msl/asm/comp/specialization-constant-workgroup.asm.comp @@ -3,12 +3,6 @@ using namespace metal; -constant uint _5_tmp [[function_constant(10)]]; -constant uint _5 = is_function_constant_defined(_5_tmp) ? _5_tmp : 9u; -constant uint _6_tmp [[function_constant(12)]]; -constant uint _6 = is_function_constant_defined(_6_tmp) ? _6_tmp : 4u; -constant uint3 gl_WorkGroupSize = uint3(_5, 20u, _6); - struct SSBO { float a; diff --git a/reference/opt/shaders-msl/asm/comp/storage-buffer-basic.asm.comp b/reference/opt/shaders-msl/asm/comp/storage-buffer-basic.asm.comp index 3df6161f..9e37362d 100644 --- a/reference/opt/shaders-msl/asm/comp/storage-buffer-basic.asm.comp +++ b/reference/opt/shaders-msl/asm/comp/storage-buffer-basic.asm.comp @@ -16,6 +16,7 @@ struct _6 kernel void main0(device _6& _8 [[buffer(0)]], device _6& _9 [[buffer(1)]], uint3 gl_WorkGroupID [[threadgroup_position_in_grid]]) { + uint3 _23 = gl_WorkGroupSize; _8._m0[gl_WorkGroupID.x] = _9._m0[gl_WorkGroupID.x] + _8._m0[gl_WorkGroupID.x]; } |