yum-mirror/glslang

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

Wooyoung KimAdd the GLSL_QCOM_tile_shading support10ae0e16

main
8.3 KiB164 linesraw
1spv.qcom.tileShading.1.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 104
5
6                              Capability Shader
7                              Capability TileShadingQCOM
8                              Extension  "SPV_QCOM_tile_shading"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint GLCompute 4  "main" 12 16 19
12                              ExecutionMode 4 TileShadingRateQCOM 2 2 3
13                              Source GLSL 460
14                              SourceExtension  "GL_QCOM_tile_shading"
15                              Name 4  "main"
16                              Name 9  "uoffset"
17                              Name 12  "gl_GlobalInvocationID"
18                              Name 16  "gl_TileOffsetQCOM"
19                              Name 19  "gl_TileDimensionQCOM"
20                              Name 30  "offset"
21                              Name 36  "colorA"
22                              Name 39  "color0"
23                              Name 45  "icolorB"
24                              Name 48  "color1"
25                              Name 52  "colorC"
26                              Name 53  "input0"
27                              Name 58  "d"
28                              Name 59  "depth"
29                              Name 66  "s"
30                              Name 69  "stencil"
31                              Name 75  "outColor"
32                              Name 84  "outDepth"
33                              Name 88  "outStencil"
34                              Decorate 12(gl_GlobalInvocationID) BuiltIn GlobalInvocationId
35                              Decorate 16(gl_TileOffsetQCOM) BuiltIn TileOffsetQCOM
36                              Decorate 19(gl_TileDimensionQCOM) BuiltIn TileDimensionQCOM
37                              Decorate 39(color0) Binding 1
38                              Decorate 39(color0) DescriptorSet 0
39                              Decorate 48(color1) Binding 2
40                              Decorate 48(color1) DescriptorSet 0
41                              Decorate 53(input0) Binding 0
42                              Decorate 53(input0) DescriptorSet 0
43                              Decorate 59(depth) Binding 3
44                              Decorate 59(depth) DescriptorSet 0
45                              Decorate 69(stencil) Binding 4
46                              Decorate 69(stencil) DescriptorSet 0
47                              Decorate 103 BuiltIn WorkgroupSize
48               2:             TypeVoid
49               3:             TypeFunction 2
50               6:             TypeInt 32 0
51               7:             TypeVector 6(int) 2
52               8:             TypePointer Function 7(ivec2)
53              10:             TypeVector 6(int) 3
54              11:             TypePointer Input 10(ivec3)
5512(gl_GlobalInvocationID):     11(ptr) Variable Input
56              15:             TypePointer Input 7(ivec2)
5716(gl_TileOffsetQCOM):     15(ptr) Variable Input
5819(gl_TileDimensionQCOM):     11(ptr) Variable Input
59              23:      6(int) Constant 1
60              24:    7(ivec2) ConstantComposite 23 23
61              27:             TypeInt 32 1
62              28:             TypeVector 27(int) 2
63              29:             TypePointer Function 28(ivec2)
64              33:             TypeFloat 32
65              34:             TypeVector 33(float) 4
66              35:             TypePointer Function 34(fvec4)
67              37:             TypeImage 33(float) 2D nonsampled format:Rgba32f
68              38:             TypePointer TileAttachmentQCOM 37
69      39(color0):     38(ptr) Variable TileAttachmentQCOM
70              43:             TypeVector 27(int) 4
71              44:             TypePointer Function 43(ivec4)
72              46:             TypeImage 27(int) 2D nonsampled format:Rgba32i
73              47:             TypePointer TileAttachmentQCOM 46
74      48(color1):     47(ptr) Variable TileAttachmentQCOM
75      53(input0):     38(ptr) Variable TileAttachmentQCOM
76              57:             TypePointer Function 33(float)
77       59(depth):     38(ptr) Variable TileAttachmentQCOM
78              63:      6(int) Constant 0
79              65:             TypePointer Function 6(int)
80              67:             TypeImage 6(int) 2D nonsampled format:Rgba32ui
81              68:             TypePointer TileAttachmentQCOM 67
82     69(stencil):     68(ptr) Variable TileAttachmentQCOM
83              72:             TypeVector 6(int) 4
84              82:   33(float) Constant 1051260355
85              86:   33(float) Constant 1073741824
86             102:      6(int) Constant 16
87             103:   10(ivec3) ConstantComposite 102 102 23
88         4(main):           2 Function None 3
89               5:             Label
90      9(uoffset):      8(ptr) Variable Function
91      30(offset):     29(ptr) Variable Function
92      36(colorA):     35(ptr) Variable Function
93     45(icolorB):     44(ptr) Variable Function
94      52(colorC):     35(ptr) Variable Function
95           58(d):     57(ptr) Variable Function
96           66(s):     65(ptr) Variable Function
97    75(outColor):     35(ptr) Variable Function
98    84(outDepth):     57(ptr) Variable Function
99  88(outStencil):     65(ptr) Variable Function
100              13:   10(ivec3) Load 12(gl_GlobalInvocationID)
101              14:    7(ivec2) VectorShuffle 13 13 0 1
102              17:    7(ivec2) Load 16(gl_TileOffsetQCOM)
103              18:    7(ivec2) Load 16(gl_TileOffsetQCOM)
104              20:   10(ivec3) Load 19(gl_TileDimensionQCOM)
105              21:    7(ivec2) VectorShuffle 20 20 0 1
106              22:    7(ivec2) IAdd 18 21
107              25:    7(ivec2) ISub 22 24
108              26:    7(ivec2) ExtInst 1(GLSL.std.450) 44(UClamp) 14 17 25
109                              Store 9(uoffset) 26
110              31:    7(ivec2) Load 9(uoffset)
111              32:   28(ivec2) Bitcast 31
112                              Store 30(offset) 32
113              40:          37 Load 39(color0)
114              41:   28(ivec2) Load 30(offset)
115              42:   34(fvec4) ImageRead 40 41
116                              Store 36(colorA) 42
117              49:          46 Load 48(color1)
118              50:   28(ivec2) Load 30(offset)
119              51:   43(ivec4) ImageRead 49 50
120                              Store 45(icolorB) 51
121              54:          37 Load 53(input0)
122              55:   28(ivec2) Load 30(offset)
123              56:   34(fvec4) ImageRead 54 55
124                              Store 52(colorC) 56
125              60:          37 Load 59(depth)
126              61:   28(ivec2) Load 30(offset)
127              62:   34(fvec4) ImageRead 60 61
128              64:   33(float) CompositeExtract 62 0
129                              Store 58(d) 64
130              70:          67 Load 69(stencil)
131              71:   28(ivec2) Load 30(offset)
132              73:   72(ivec4) ImageRead 70 71
133              74:      6(int) CompositeExtract 73 0
134                              Store 66(s) 74
135              76:   34(fvec4) Load 36(colorA)
136              77:   43(ivec4) Load 45(icolorB)
137              78:   34(fvec4) ConvertSToF 77
138              79:   34(fvec4) FAdd 76 78
139              80:   34(fvec4) Load 52(colorC)
140              81:   34(fvec4) FAdd 79 80
141              83:   34(fvec4) VectorTimesScalar 81 82
142                              Store 75(outColor) 83
143              85:   33(float) Load 58(d)
144              87:   33(float) FMul 85 86
145                              Store 84(outDepth) 87
146              89:      6(int) Load 66(s)
147              90:      6(int) IAdd 89 23
148                              Store 88(outStencil) 90
149              91:          37 Load 39(color0)
150              92:   28(ivec2) Load 30(offset)
151              93:   34(fvec4) Load 75(outColor)
152                              ImageWrite 91 92 93
153              94:          37 Load 59(depth)
154              95:   28(ivec2) Load 30(offset)
155              96:   33(float) Load 84(outDepth)
156              97:   34(fvec4) CompositeConstruct 96 96 96 96
157                              ImageWrite 94 95 97
158              98:          67 Load 69(stencil)
159              99:   28(ivec2) Load 30(offset)
160             100:      6(int) Load 88(outStencil)
161             101:   72(ivec4) CompositeConstruct 100 100 100 100
162                              ImageWrite 98 99 101
163                              Return
164                              FunctionEnd