From bc0fc97b26ad4b79c0379315bc5f37ba96bd8ac1 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 23 Sep 2023 15:32:16 -0700 Subject: [PATCH] Delete output files no longer generated by snapshot tests. --- tests/out/glsl/access.atomics.Compute.glsl | 73 ------------------- .../glsl/fragment-output.main.Fragment.glsl | 62 ---------------- .../glsl/invariant.frag_main.Fragment.glsl | 11 --- tests/out/glsl/quad.main.Fragment.glsl | 26 ------- tests/out/glsl/quad.main.Vertex.glsl | 23 ------ tests/out/hlsl/bits.hlsl.config | 3 - tests/out/hlsl/constructors.hlsl.config | 3 - tests/out/spv/pointer-access.spvasm | 55 -------------- 8 files changed, 256 deletions(-) delete mode 100644 tests/out/glsl/access.atomics.Compute.glsl delete mode 100644 tests/out/glsl/fragment-output.main.Fragment.glsl delete mode 100644 tests/out/glsl/invariant.frag_main.Fragment.glsl delete mode 100644 tests/out/glsl/quad.main.Fragment.glsl delete mode 100644 tests/out/glsl/quad.main.Vertex.glsl delete mode 100644 tests/out/hlsl/bits.hlsl.config delete mode 100644 tests/out/hlsl/constructors.hlsl.config delete mode 100644 tests/out/spv/pointer-access.spvasm diff --git a/tests/out/glsl/access.atomics.Compute.glsl b/tests/out/glsl/access.atomics.Compute.glsl deleted file mode 100644 index 8ccefe422b..0000000000 --- a/tests/out/glsl/access.atomics.Compute.glsl +++ /dev/null @@ -1,73 +0,0 @@ -#version 310 es - -precision highp float; -precision highp int; - -layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; - -struct GlobalConst { - uint a; - uvec3 b; - int c; -}; -struct AlignedWrapper { - int value; -}; -struct Baz { - mat3x2 m; -}; -struct MatCx2InArray { - mat4x2 am[2]; -}; -layout(std430) buffer Bar_block_0Compute { - mat4x3 _matrix; - mat2x2 matrix_array[2]; - int atom; - int atom_arr[10]; - uvec2 arr[2]; - AlignedWrapper data[]; -} _group_0_binding_0_cs; - - -float read_from_private(inout float foo_1) { - float _e1 = foo_1; - return _e1; -} - -float test_arr_as_arg(float a[5][10]) { - return a[4][9]; -} - -void assign_through_ptr_fn(inout uint p) { - p = 42u; - return; -} - -void assign_array_through_ptr_fn(inout vec4 foo_2[2]) { - foo_2 = vec4[2](vec4(1.0), vec4(2.0)); - return; -} - -void main() { - int tmp = 0; - int value = _group_0_binding_0_cs.atom; - int _e7 = atomicAdd(_group_0_binding_0_cs.atom, 5); - tmp = _e7; - int _e11 = atomicAdd(_group_0_binding_0_cs.atom, -5); - tmp = _e11; - int _e15 = atomicAnd(_group_0_binding_0_cs.atom, 5); - tmp = _e15; - int _e19 = atomicOr(_group_0_binding_0_cs.atom, 5); - tmp = _e19; - int _e23 = atomicXor(_group_0_binding_0_cs.atom, 5); - tmp = _e23; - int _e27 = atomicMin(_group_0_binding_0_cs.atom, 5); - tmp = _e27; - int _e31 = atomicMax(_group_0_binding_0_cs.atom, 5); - tmp = _e31; - int _e35 = atomicExchange(_group_0_binding_0_cs.atom, 5); - tmp = _e35; - _group_0_binding_0_cs.atom = value; - return; -} - diff --git a/tests/out/glsl/fragment-output.main.Fragment.glsl b/tests/out/glsl/fragment-output.main.Fragment.glsl deleted file mode 100644 index f8299e2ba3..0000000000 --- a/tests/out/glsl/fragment-output.main.Fragment.glsl +++ /dev/null @@ -1,62 +0,0 @@ -#version 310 es - -precision highp float; -precision highp int; - -struct FragmentOutput { - vec4 vec4f; - ivec4 vec4i; - uvec4 vec4u; - vec3 vec3f; - ivec3 vec3i; - uvec3 vec3u; - vec2 vec2f; - ivec2 vec2i; - uvec2 vec2u; - float scalarf; - int scalari; - uint scalaru; -}; -layout(location = 0) out vec4 _fs2p_location0; -layout(location = 1) out ivec4 _fs2p_location1; -layout(location = 2) out uvec4 _fs2p_location2; -layout(location = 3) out vec3 _fs2p_location3; -layout(location = 4) out ivec3 _fs2p_location4; -layout(location = 5) out uvec3 _fs2p_location5; -layout(location = 6) out vec2 _fs2p_location6; -layout(location = 7) out ivec2 _fs2p_location7; -layout(location = 8) out uvec2 _fs2p_location8; -layout(location = 9) out float _fs2p_location9; -layout(location = 10) out int _fs2p_location10; -layout(location = 11) out uint _fs2p_location11; - -void main() { - FragmentOutput output_ = FragmentOutput(vec4(0.0), ivec4(0), uvec4(0u), vec3(0.0), ivec3(0), uvec3(0u), vec2(0.0), ivec2(0), uvec2(0u), 0.0, 0, 0u); - output_.vec4f = vec4(0.0); - output_.vec4i = ivec4(0); - output_.vec4u = uvec4(0u); - output_.vec3f = vec3(0.0); - output_.vec3i = ivec3(0); - output_.vec3u = uvec3(0u); - output_.vec2f = vec2(0.0); - output_.vec2i = ivec2(0); - output_.vec2u = uvec2(0u); - output_.scalarf = 0.0; - output_.scalari = 0; - output_.scalaru = 0u; - FragmentOutput _e34 = output_; - _fs2p_location0 = _e34.vec4f; - _fs2p_location1 = _e34.vec4i; - _fs2p_location2 = _e34.vec4u; - _fs2p_location3 = _e34.vec3f; - _fs2p_location4 = _e34.vec3i; - _fs2p_location5 = _e34.vec3u; - _fs2p_location6 = _e34.vec2f; - _fs2p_location7 = _e34.vec2i; - _fs2p_location8 = _e34.vec2u; - _fs2p_location9 = _e34.scalarf; - _fs2p_location10 = _e34.scalari; - _fs2p_location11 = _e34.scalaru; - return; -} - diff --git a/tests/out/glsl/invariant.frag_main.Fragment.glsl b/tests/out/glsl/invariant.frag_main.Fragment.glsl deleted file mode 100644 index 9936a28ad3..0000000000 --- a/tests/out/glsl/invariant.frag_main.Fragment.glsl +++ /dev/null @@ -1,11 +0,0 @@ -#version 300 es - -precision highp float; -precision highp int; - - -void main() { - vec4 position = gl_FragCoord; - return; -} - diff --git a/tests/out/glsl/quad.main.Fragment.glsl b/tests/out/glsl/quad.main.Fragment.glsl deleted file mode 100644 index b290ed5a0e..0000000000 --- a/tests/out/glsl/quad.main.Fragment.glsl +++ /dev/null @@ -1,26 +0,0 @@ -#version 300 es - -precision highp float; -precision highp int; - -struct VertexOutput { - vec2 uv; - vec4 position; -}; - -uniform highp sampler2D _group_0_binding_0; - -smooth in vec2 _vs2fs_location0; -layout(location = 0) out vec4 _fs2p_location0; - -void main() { - vec2 uv_1 = _vs2fs_location0; - vec4 color = texture(_group_0_binding_0, vec2(uv_1)); - if ((color.w == 0.0)) { - discard; - } - vec4 premultiplied = (color.w * color); - _fs2p_location0 = premultiplied; - return; -} - diff --git a/tests/out/glsl/quad.main.Vertex.glsl b/tests/out/glsl/quad.main.Vertex.glsl deleted file mode 100644 index cda43f5086..0000000000 --- a/tests/out/glsl/quad.main.Vertex.glsl +++ /dev/null @@ -1,23 +0,0 @@ -#version 300 es - -precision highp float; -precision highp int; - -struct VertexOutput { - vec2 uv; - vec4 position; -}; - -layout(location = 0) in vec2 _p2vs_location0; -layout(location = 1) in vec2 _p2vs_location1; -smooth out vec2 _vs2fs_location0; - -void main() { - vec2 pos = _p2vs_location0; - vec2 uv = _p2vs_location1; - VertexOutput _tmp_return = VertexOutput(uv, vec4((1.2000000476837158 * pos), 0.0, 1.0)); - _vs2fs_location0 = _tmp_return.uv; - gl_Position = _tmp_return.position; - return; -} - diff --git a/tests/out/hlsl/bits.hlsl.config b/tests/out/hlsl/bits.hlsl.config deleted file mode 100644 index 246c485cf7..0000000000 --- a/tests/out/hlsl/bits.hlsl.config +++ /dev/null @@ -1,3 +0,0 @@ -vertex=() -fragment=() -compute=(main:cs_5_1 ) diff --git a/tests/out/hlsl/constructors.hlsl.config b/tests/out/hlsl/constructors.hlsl.config deleted file mode 100644 index 246c485cf7..0000000000 --- a/tests/out/hlsl/constructors.hlsl.config +++ /dev/null @@ -1,3 +0,0 @@ -vertex=() -fragment=() -compute=(main:cs_5_1 ) diff --git a/tests/out/spv/pointer-access.spvasm b/tests/out/spv/pointer-access.spvasm deleted file mode 100644 index ef4b7bbce2..0000000000 --- a/tests/out/spv/pointer-access.spvasm +++ /dev/null @@ -1,55 +0,0 @@ -; SPIR-V -; Version: 1.0 -; Generator: rspirv -; Bound: 35 -OpCapability Shader -OpCapability Linkage -OpExtension "SPV_KHR_storage_buffer_storage_class" -%1 = OpExtInstImport "GLSL.std.450" -OpMemoryModel Logical GLSL450 -OpSource GLSL 450 -OpDecorate %12 ArrayStride 4 -OpDecorate %14 ArrayStride 4 -OpDecorate %15 Block -OpMemberDecorate %15 0 Offset 0 -OpDecorate %17 DescriptorSet 0 -OpDecorate %17 Binding 0 -%2 = OpTypeVoid -%4 = OpTypeInt 32 1 -%3 = OpConstant %4 0 -%5 = OpConstant %4 1 -%6 = OpConstant %4 2 -%7 = OpConstant %4 3 -%9 = OpTypeInt 32 0 -%8 = OpConstant %9 0 -%10 = OpConstant %9 7 -%11 = OpTypePointer StorageBuffer %9 -%12 = OpTypeArray %9 %10 -%13 = OpTypePointer StorageBuffer %12 -%14 = OpTypeRuntimeArray %9 -%15 = OpTypeStruct %14 -%16 = OpTypePointer StorageBuffer %15 -%17 = OpVariable %16 StorageBuffer -%22 = OpTypeFunction %9 %13 %9 -%30 = OpTypeFunction %9 %16 %9 -%32 = OpTypePointer StorageBuffer %14 -%21 = OpFunction %9 None %22 -%19 = OpFunctionParameter %13 -%20 = OpFunctionParameter %9 -%18 = OpLabel -OpBranch %23 -%23 = OpLabel -%24 = OpAccessChain %11 %19 %20 -%25 = OpLoad %9 %24 -OpReturnValue %25 -OpFunctionEnd -%29 = OpFunction %9 None %30 -%27 = OpFunctionParameter %16 -%28 = OpFunctionParameter %9 -%26 = OpLabel -OpBranch %31 -%31 = OpLabel -%33 = OpAccessChain %11 %27 %8 %28 -%34 = OpLoad %9 %33 -OpReturnValue %34 -OpFunctionEnd \ No newline at end of file