yum-mirror/glslang

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

Wooyoung KimAdd the GLSL_QCOM_tile_shading support10ae0e16

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