yum-mirror/glslang

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

Wooyoung KimAdd the GLSL_QCOM_tile_shading support10ae0e16

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