yum-mirror/glslang

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

Alan BakerSwitch tests using Vulkan memory model to spir-v 1.3be201bfb

main
3.2 KiB65 linesraw
1spv.intrinsicsInteractWithCoopMat.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 33
5
6                              Capability Shader
7                              Capability Float16
8                              Capability VulkanMemoryModelKHR
9                              Capability CooperativeMatrixKHR
10                              Extension  "SPV_KHR_cooperative_matrix"
11                              Extension  "SPV_KHR_vulkan_memory_model"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical VulkanKHR
14                              EntryPoint GLCompute 4  "main"
15                              ExecutionMode 4 LocalSize 32 1 1
16                              Source GLSL 450
17                              SourceExtension  "GL_EXT_spirv_intrinsics"
18                              SourceExtension  "GL_KHR_cooperative_matrix"
19                              SourceExtension  "GL_KHR_memory_scope_semantics"
20                              Name 4  "main"
21                              Name 13  "A"
22                              Name 16  "Buf"
23                              MemberName 16(Buf) 0  "x"
24                              Name 18  "buf"
25                              Decorate 15 ArrayStride 16
26                              Decorate 16(Buf) Block
27                              MemberDecorate 16(Buf) 0 Offset 0
28                              Decorate 18(buf) Binding 0
29                              Decorate 18(buf) DescriptorSet 0
30                              Decorate 32 BuiltIn WorkgroupSize
31               2:             TypeVoid
32               3:             TypeFunction 2
33               6:             TypeFloat 16
34               7:             TypeInt 32 0
35               8:      7(int) Constant 3
36               9:      7(int) Constant 16
37              10:      7(int) Constant 0
38              11:             TypeCooperativeMatrixKHR 6(float16_t) 8 9 9 10
39              12:             TypePointer Private 11
40           13(A):     12(ptr) Variable Private
41              14:             TypeVector 7(int) 4
42              15:             TypeRuntimeArray 14(ivec4)
43         16(Buf):             TypeStruct 15
44              17:             TypePointer StorageBuffer 16(Buf)
45         18(buf):     17(ptr) Variable StorageBuffer
46              19:             TypeInt 32 1
47              20:     19(int) Constant 0
48              21:             TypePointer StorageBuffer 14(ivec4)
49              23:      7(int) Constant 2
50              26:      7(int) Constant 64
51              28:      7(int) Constant 4
52              29:             TypeVector 7(int) 3
53              30:      7(int) Constant 32
54              31:      7(int) Constant 1
55              32:   29(ivec3) ConstantComposite 30 31 31
56         4(main):           2 Function None 3
57               5:             Label
58              22:     21(ptr) AccessChain 18(buf) 20 10
59              24:          11 CooperativeMatrixLoadKHR 22 20 23 None
60                              Store 13(A) 24
61              25:          11 Load 13(A)
62              27:     21(ptr) AccessChain 18(buf) 20 26
63                              CooperativeMatrixStoreKHR 27 25 20 28 None
64                              Return
65                              FunctionEnd