yum-mirror/glslang

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

ErikHogemanFix access chains for GL_ARM_tensors with raw descriptor heap accesses881a6fa2

main
3.4 KiB71 linesraw
1spv.tensorARM.read.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 38
5
6                              Capability Shader
7                              Capability TensorsARM
8                              Extension  "SPV_ARM_tensors"
9                              Extension  "SPV_KHR_storage_buffer_storage_class"
10               1:             ExtInstImport  "GLSL.std.450"
11                              MemoryModel Logical GLSL450
12                              EntryPoint GLCompute 4  "main"
13                              ExecutionMode 4 LocalSize 1 1 1
14                              Source GLSL 460
15                              SourceExtension  "GL_ARM_tensors"
16                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
17                              Name 4  "main"
18                              Name 11  "t"
19                              Name 19  "one"
20                              Name 25  "two"
21                              Name 30  "buff"
22                              MemberName 30(buff) 0  "out_data"
23                              Name 32  ""
24                              Decorate 11(t) Binding 0
25                              Decorate 11(t) DescriptorSet 0
26                              Decorate 29 ArrayStride 4
27                              Decorate 30(buff) Block
28                              MemberDecorate 30(buff) 0 Offset 0
29                              Decorate 32 Binding 1
30                              Decorate 32 DescriptorSet 0
31               2:             TypeVoid
32               3:             TypeFunction 2
33               6:             TypeInt 32 1
34               7:             TypeInt 32 0
35               8:      7(int) Constant 4
36               9:             TypeTensorARM 6(int) 8
37              10:             TypePointer UniformConstant 9
38           11(t):     10(ptr) Variable UniformConstant
39              13:             TypeArray 7(int) 8
40              14:      7(int) Constant 1
41              15:      7(int) Constant 2
42              16:      7(int) Constant 3
43              17:          13 ConstantComposite 14 15 16 8
44              18:             TypePointer Function 6(int)
45              20:      6(int) Constant 11
46              23:             TypeArray 6(int) 15
47              24:             TypePointer Function 23
48              26:      7(int) Constant 0
49              29:             TypeRuntimeArray 6(int)
50        30(buff):             TypeStruct 29
51              31:             TypePointer StorageBuffer 30(buff)
52              32:     31(ptr) Variable StorageBuffer
53              33:      6(int) Constant 0
54              34:      6(int) Constant 1
55              36:             TypePointer StorageBuffer 6(int)
56         4(main):           2 Function None 3
57               5:             Label
58         19(one):     18(ptr) Variable Function
59         25(two):     24(ptr) Variable Function
60              12:           9 Load 11(t)
61              21:      6(int) TensorReadARM 12 17 2 20
62                              Store 19(one) 21
63              22:           9 Load 11(t)
64              27:          23 TensorReadARM 22 17
65                              Store 25(two) 27
66              28:           9 Load 11(t)
67              35:      6(int) TensorReadARM 28 17
68              37:     36(ptr) AccessChain 32 33 34
69                              Store 37 35
70                              Return
71                              FunctionEnd