yum-mirror/glslang

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

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

main
5.7 KiB109 linesraw
1spv.longVectorMatMul.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 54
5
6                              Capability Shader
7                              Capability Float16
8                              Capability StorageUniformBufferBlock16
9                              Capability StorageBuffer8BitAccess
10                              Capability VulkanMemoryModelKHR
11                              Capability CooperativeVectorNV
12                              Capability LongVectorEXT
13                              Extension  "SPV_EXT_long_vector"
14                              Extension  "SPV_KHR_8bit_storage"
15                              Extension  "SPV_KHR_vulkan_memory_model"
16                              Extension  "SPV_NV_cooperative_vector"
17               1:             ExtInstImport  "GLSL.std.450"
18                              MemoryModel Logical VulkanKHR
19                              EntryPoint GLCompute 4  "main"
20                              ExecutionMode 4 LocalSize 64 1 1
21                              Source GLSL 450
22                              SourceExtension  "GL_EXT_buffer_reference"
23                              SourceExtension  "GL_EXT_long_vector"
24                              SourceExtension  "GL_EXT_nonuniform_qualifier"
25                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
26                              SourceExtension  "GL_KHR_memory_scope_semantics"
27                              SourceExtension  "GL_NV_cooperative_vector"
28                              Name 4  "main"
29                              Name 9  "v7"
30                              Name 16  "cv7"
31                              Name 22  "tempArg"
32                              Name 28  "MatrixBuf"
33                              MemberName 28(MatrixBuf) 0  "matrixData"
34                              Name 30  "matrixBuf"
35                              Name 38  "cv8"
36                              Name 42  "v8"
37                              Name 51  "MatrixBuf2"
38                              MemberName 51(MatrixBuf2) 0  "matrixData"
39                              Name 53  "matrixBuf2"
40                              Decorate 27 ArrayStride 2
41                              Decorate 28(MatrixBuf) Block
42                              MemberDecorate 28(MatrixBuf) 0 Offset 0
43                              Decorate 30(matrixBuf) Binding 0
44                              Decorate 30(matrixBuf) DescriptorSet 0
45                              Decorate 48 BuiltIn WorkgroupSize
46                              Decorate 50 ArrayStride 1
47                              Decorate 51(MatrixBuf2) Block
48                              MemberDecorate 51(MatrixBuf2) 0 Offset 0
49                              Decorate 53(matrixBuf2) Binding 0
50                              Decorate 53(matrixBuf2) DescriptorSet 0
51               2:             TypeVoid
52               3:             TypeFunction 2
53               6:             TypeFloat 32
54               7:             TypeVector 6(float) 20
55               8:             TypePointer Function 7(fvec)
56              10:    6(float) Constant 1065353216
57              11:     7(fvec) ConstantComposite 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10
58              12:             TypeInt 32 0
59              13:     12(int) Constant 20
60              14:             TypeCooperativeVectorNV 6(float) 13
61              15:             TypePointer Function 14
62              19:     12(int) Constant 100
63              20:             TypeCooperativeVectorNV 6(float) 19
64              21:             TypePointer Function 20
65              24:             TypeInt 32 1
66              25:     24(int) Constant 0
67              26:             TypeFloat 16
68              27:             TypeRuntimeArray 26(float16_t)
69   28(MatrixBuf):             TypeStruct 27
70              29:             TypePointer StorageBuffer 28(MatrixBuf)
71   30(matrixBuf):     29(ptr) Variable StorageBuffer
72              31:             TypePointer StorageBuffer 27
73              33:     12(int) Constant 11
74              34:             TypeBool
75              35:    34(bool) ConstantFalse
76              36:     12(int) Constant 300
77              40:             TypeVector 6(float) 100
78              41:             TypePointer Function 40(fvec)
79              45:             TypeVector 12(int) 3
80              46:     12(int) Constant 64
81              47:     12(int) Constant 1
82              48:   45(ivec3) ConstantComposite 46 47 47
83              49:             TypeInt 8 1
84              50:             TypeRuntimeArray 49(int8_t)
85  51(MatrixBuf2):             TypeStruct 50
86              52:             TypePointer StorageBuffer 51(MatrixBuf2)
87  53(matrixBuf2):     52(ptr) Variable StorageBuffer
88         4(main):           2 Function None 3
89               5:             Label
90           9(v7):      8(ptr) Variable Function
91         16(cv7):     15(ptr) Variable Function
92     22(tempArg):     21(ptr) Variable Function
93         38(cv8):     21(ptr) Variable Function
94          42(v8):     41(ptr) Variable Function
95                              Store 9(v7) 11
96              17:     7(fvec) Load 9(v7)
97              18:          14 Bitcast 17
98                              Store 16(cv7) 18
99              23:          14 Load 16(cv7)
100              32:     31(ptr) AccessChain 30(matrixBuf) 25
101              37:          20 CooperativeVectorMatrixMulNV 23 25 32 33 25 19 13 25 35 36
102                              Store 22(tempArg) 37
103              39:          20 Load 22(tempArg)
104                              Store 38(cv8) 39
105              43:          20 Load 38(cv8)
106              44:    40(fvec) Bitcast 43
107                              Store 42(v8) 44
108                              Return
109                              FunctionEnd