Files
wgpu/tests/out/spv/globals.spvasm
T
Jim Blandy 8b267218a4 Implement module compaction.
Add a new Naga feature, `"compact"`, which adds a new function
`naga::compact::compact`, which removes unused expressions, types, and
constants from a `Module`.
2023-09-20 18:46:33 +02:00

258 lines
7.1 KiB
Plaintext

; SPIR-V
; Version: 1.1
; Generator: rspirv
; Bound: 177
OpCapability Shader
OpExtension "SPV_KHR_storage_buffer_storage_class"
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %100 "main" %119
OpExecutionMode %100 LocalSize 1 1 1
OpDecorate %5 ArrayStride 4
OpMemberDecorate %9 0 Offset 0
OpMemberDecorate %9 1 Offset 12
OpDecorate %11 ArrayStride 8
OpDecorate %13 ArrayStride 16
OpDecorate %17 ArrayStride 32
OpDecorate %19 ArrayStride 64
OpDecorate %21 ArrayStride 32
OpDecorate %22 ArrayStride 64
OpDecorate %30 DescriptorSet 0
OpDecorate %30 Binding 1
OpDecorate %31 Block
OpMemberDecorate %31 0 Offset 0
OpDecorate %33 NonWritable
OpDecorate %33 DescriptorSet 0
OpDecorate %33 Binding 2
OpDecorate %34 Block
OpMemberDecorate %34 0 Offset 0
OpDecorate %36 DescriptorSet 0
OpDecorate %36 Binding 3
OpDecorate %37 Block
OpMemberDecorate %37 0 Offset 0
OpDecorate %39 DescriptorSet 0
OpDecorate %39 Binding 4
OpDecorate %40 Block
OpMemberDecorate %40 0 Offset 0
OpDecorate %42 DescriptorSet 0
OpDecorate %42 Binding 5
OpDecorate %43 Block
OpMemberDecorate %43 0 Offset 0
OpMemberDecorate %43 0 ColMajor
OpMemberDecorate %43 0 MatrixStride 8
OpDecorate %45 DescriptorSet 0
OpDecorate %45 Binding 6
OpDecorate %46 Block
OpMemberDecorate %46 0 Offset 0
OpDecorate %48 DescriptorSet 0
OpDecorate %48 Binding 7
OpDecorate %49 Block
OpMemberDecorate %49 0 Offset 0
OpDecorate %119 BuiltIn LocalInvocationId
%2 = OpTypeVoid
%3 = OpTypeBool
%4 = OpTypeFloat 32
%7 = OpTypeInt 32 0
%6 = OpConstant %7 10
%5 = OpTypeArray %4 %6
%8 = OpTypeVector %4 3
%9 = OpTypeStruct %8 %4
%10 = OpTypeVector %4 2
%11 = OpTypeRuntimeArray %10
%12 = OpTypeVector %4 4
%14 = OpConstant %7 20
%13 = OpTypeArray %12 %14
%15 = OpTypeMatrix %10 3
%16 = OpTypeMatrix %12 2
%18 = OpConstant %7 2
%17 = OpTypeArray %16 %18
%19 = OpTypeArray %17 %18
%20 = OpTypeMatrix %10 4
%21 = OpTypeArray %20 %18
%22 = OpTypeArray %21 %18
%23 = OpTypeInt 32 1
%24 = OpTypeMatrix %8 3
%25 = OpConstantTrue %3
%27 = OpTypePointer Workgroup %5
%26 = OpVariable %27 Workgroup
%29 = OpTypePointer Workgroup %7
%28 = OpVariable %29 Workgroup
%31 = OpTypeStruct %9
%32 = OpTypePointer StorageBuffer %31
%30 = OpVariable %32 StorageBuffer
%34 = OpTypeStruct %11
%35 = OpTypePointer StorageBuffer %34
%33 = OpVariable %35 StorageBuffer
%37 = OpTypeStruct %13
%38 = OpTypePointer Uniform %37
%36 = OpVariable %38 Uniform
%40 = OpTypeStruct %8
%41 = OpTypePointer Uniform %40
%39 = OpVariable %41 Uniform
%43 = OpTypeStruct %15
%44 = OpTypePointer Uniform %43
%42 = OpVariable %44 Uniform
%46 = OpTypeStruct %19
%47 = OpTypePointer Uniform %46
%45 = OpVariable %47 Uniform
%49 = OpTypeStruct %22
%50 = OpTypePointer Uniform %49
%48 = OpVariable %50 Uniform
%54 = OpTypeFunction %2 %8
%57 = OpTypePointer Function %23
%58 = OpConstantNull %23
%61 = OpTypeFunction %2
%62 = OpTypePointer StorageBuffer %9
%63 = OpConstant %7 0
%65 = OpConstant %4 1.0
%66 = OpConstant %23 1
%67 = OpConstant %4 2.0
%68 = OpConstant %4 3.0
%69 = OpConstantNull %24
%71 = OpTypePointer StorageBuffer %8
%74 = OpTypePointer StorageBuffer %4
%94 = OpTypePointer Function %4
%95 = OpConstantNull %4
%97 = OpTypePointer Function %3
%98 = OpConstantNull %3
%102 = OpTypePointer StorageBuffer %11
%104 = OpTypePointer Uniform %13
%106 = OpTypePointer Uniform %8
%108 = OpTypePointer Uniform %15
%110 = OpTypePointer Uniform %19
%112 = OpTypePointer Uniform %22
%114 = OpConstant %4 4.0
%116 = OpConstantNull %5
%117 = OpConstantNull %7
%118 = OpTypeVector %7 3
%120 = OpTypePointer Input %118
%119 = OpVariable %120 Input
%122 = OpConstantNull %118
%123 = OpTypeVector %3 3
%128 = OpConstant %7 264
%131 = OpTypePointer Workgroup %4
%132 = OpTypePointer Uniform %21
%133 = OpTypePointer Uniform %20
%136 = OpTypePointer Uniform %17
%137 = OpTypePointer Uniform %16
%138 = OpTypePointer Uniform %12
%143 = OpConstant %7 7
%149 = OpConstant %7 6
%151 = OpTypePointer StorageBuffer %10
%152 = OpConstant %7 1
%155 = OpConstant %7 5
%157 = OpTypePointer Uniform %12
%158 = OpTypePointer Uniform %4
%159 = OpConstant %7 3
%162 = OpConstant %7 4
%164 = OpTypePointer StorageBuffer %4
%175 = OpConstant %23 2
%176 = OpConstant %7 256
%53 = OpFunction %2 None %54
%52 = OpFunctionParameter %8
%51 = OpLabel
OpBranch %55
%55 = OpLabel
OpReturn
OpFunctionEnd
%60 = OpFunction %2 None %61
%59 = OpLabel
%56 = OpVariable %57 Function %58
%64 = OpAccessChain %62 %30 %63
OpBranch %70
%70 = OpLabel
%72 = OpCompositeConstruct %8 %65 %65 %65
%73 = OpAccessChain %71 %64 %63
OpStore %73 %72
OpStore %56 %66
%75 = OpAccessChain %74 %64 %63 %63
OpStore %75 %65
%76 = OpAccessChain %74 %64 %63 %63
OpStore %76 %67
%77 = OpLoad %23 %56
%78 = OpAccessChain %74 %64 %63 %77
OpStore %78 %68
%79 = OpLoad %9 %64
%80 = OpCompositeExtract %8 %79 0
%81 = OpCompositeExtract %8 %79 0
%82 = OpVectorShuffle %10 %81 %81 2 0
%83 = OpCompositeExtract %8 %79 0
%84 = OpFunctionCall %2 %53 %83
%85 = OpCompositeExtract %8 %79 0
%86 = OpVectorTimesMatrix %8 %85 %69
%87 = OpCompositeExtract %8 %79 0
%88 = OpMatrixTimesVector %8 %69 %87
%89 = OpCompositeExtract %8 %79 0
%90 = OpVectorTimesScalar %8 %89 %67
%91 = OpCompositeExtract %8 %79 0
%92 = OpVectorTimesScalar %8 %91 %67
OpReturn
OpFunctionEnd
%100 = OpFunction %2 None %61
%99 = OpLabel
%93 = OpVariable %94 Function %95
%96 = OpVariable %97 Function %98
%101 = OpAccessChain %62 %30 %63
%103 = OpAccessChain %102 %33 %63
%105 = OpAccessChain %104 %36 %63
%107 = OpAccessChain %106 %39 %63
%109 = OpAccessChain %108 %42 %63
%111 = OpAccessChain %110 %45 %63
%113 = OpAccessChain %112 %48 %63
OpBranch %115
%115 = OpLabel
%121 = OpLoad %118 %119
%124 = OpIEqual %123 %121 %122
%125 = OpAll %3 %124
OpSelectionMerge %126 None
OpBranchConditional %125 %127 %126
%127 = OpLabel
OpStore %26 %116
OpStore %28 %117
OpBranch %126
%126 = OpLabel
OpControlBarrier %18 %18 %128
OpBranch %129
%129 = OpLabel
%130 = OpFunctionCall %2 %60
%134 = OpAccessChain %133 %113 %63 %63
%135 = OpLoad %20 %134
%139 = OpAccessChain %138 %111 %63 %63 %63
%140 = OpLoad %12 %139
%141 = OpMatrixTimesVector %10 %135 %140
%142 = OpCompositeExtract %4 %141 0
%144 = OpAccessChain %131 %26 %143
OpStore %144 %142
%145 = OpLoad %15 %109
%146 = OpLoad %8 %107
%147 = OpMatrixTimesVector %10 %145 %146
%148 = OpCompositeExtract %4 %147 0
%150 = OpAccessChain %131 %26 %149
OpStore %150 %148
%153 = OpAccessChain %74 %103 %152 %152
%154 = OpLoad %4 %153
%156 = OpAccessChain %131 %26 %155
OpStore %156 %154
%160 = OpAccessChain %158 %105 %63 %159
%161 = OpLoad %4 %160
%163 = OpAccessChain %131 %26 %162
OpStore %163 %161
%165 = OpAccessChain %164 %101 %152
%166 = OpLoad %4 %165
%167 = OpAccessChain %131 %26 %159
OpStore %167 %166
%168 = OpAccessChain %74 %101 %63 %63
%169 = OpLoad %4 %168
%170 = OpAccessChain %131 %26 %18
OpStore %170 %169
%171 = OpAccessChain %164 %101 %152
OpStore %171 %114
%172 = OpArrayLength %7 %33 0
%173 = OpConvertUToF %4 %172
%174 = OpAccessChain %131 %26 %152
OpStore %174 %173
OpAtomicStore %28 %175 %176 %18
OpStore %93 %65
OpStore %96 %25
OpReturn
OpFunctionEnd