yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

ErikHogemanFix access chains for GL_ARM_tensors with raw descriptor heap accesses881a6fa2

16.3.0
3.2 KiB64 linesraw
1spv.tensorARM.descriptorHeap.comp
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 32
5
6                              Capability Shader
7                              Capability TensorsARM
8                              Capability UntypedPointersKHR
9                              Capability DescriptorHeapEXT
10                              Extension  "SPV_ARM_tensors"
11                              Extension  "SPV_EXT_descriptor_heap"
12                              Extension  "SPV_KHR_untyped_pointers"
13               1:             ExtInstImport  "GLSL.std.450"
14                              MemoryModel Logical GLSL450
15                              EntryPoint GLCompute 4  "main" 19 11
16                              ExecutionMode 4 LocalSize 1 1 1
17                              Source GLSL 460
18                              SourceExtension  "GL_ARM_tensors"
19                              SourceExtension  "GL_EXT_descriptor_heap"
20                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
21                              Name 4  "main"
22                              Name 11  "t"
23                              Name 19  "resource_heap"
24                              Name 21  "O"
25                              MemberName 21(O) 0  "out_data"
26                              Decorate 11(t) Binding 0
27                              Decorate 11(t) DescriptorSet 0
28                              Decorate 19(resource_heap) BuiltIn ResourceHeapEXT
29                              Decorate 21(O) Block
30                              MemberDecorate 21(O) 0 Offset 0
31                              DecorateId 29 DecorationArrayStrideIdEXT 28
32               2:             TypeVoid
33               3:             TypeFunction 2
34               6:             TypeInt 32 1
35               7:             TypeInt 32 0
36               8:      7(int) Constant 4
37               9:             TypeTensorARM 6(int) 8
38              10:             TypePointer UniformConstant 9
39           11(t):     10(ptr) Variable UniformConstant
40              13:             TypeArray 7(int) 8
41              14:      7(int) Constant 1
42              15:      7(int) Constant 2
43              16:      7(int) Constant 3
44              17:          13 ConstantComposite 14 15 16 8
45              18:             TypeUntypedPointerKHR UniformConstant
4619(resource_heap):     18(ptr) UntypedVariableKHR UniformConstant
47              20:      6(int) Constant 1
48           21(O):             TypeStruct 6(int)
49              22:      6(int) Constant 0
50              23:      7(int) Constant 0
51              25:             TypeUntypedPointerKHR StorageBuffer
52              27:             TypeBufferEXT StorageBuffer
53              28:      6(int) ConstantSizeOfEXT 27
54              29:             TypeRuntimeArray 27
55         4(main):           2 Function None 3
56               5:             Label
57              12:           9 Load 11(t)
58              24:      6(int) TensorReadARM 12 17
59              26:     18(ptr) UntypedAccessChainKHR 29 19(resource_heap) 20
60              30:     25(ptr) BufferPointerEXT 26
61              31:     25(ptr) UntypedAccessChainKHR 21(O) 30 22
62                              Store 31 24
63                              Return
64                              FunctionEnd