mirror of https://github.com/xemu-project/xemu.git
164 lines
8.2 KiB
Plaintext
164 lines
8.2 KiB
Plaintext
spv.qcom.es.tileShading.0.frag
|
|
// Module Version 10000
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 100
|
|
|
|
Capability Shader
|
|
Capability TileShadingQCOM
|
|
Extension "SPV_QCOM_tile_shading"
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4 "main" 22 26 93
|
|
ExecutionMode 4 OriginUpperLeft
|
|
Source ESSL 310
|
|
SourceExtension "GL_QCOM_tile_shading"
|
|
Name 4 "main"
|
|
Name 9 "o2"
|
|
Name 20 "offset"
|
|
Name 22 "gl_TileOffsetQCOM"
|
|
Name 26 "gl_TileDimensionQCOM"
|
|
Name 36 "colorA"
|
|
Name 39 "color0"
|
|
Name 43 "colorB"
|
|
Name 45 "colorC"
|
|
Name 46 "input0"
|
|
Name 51 "d"
|
|
Name 52 "depth"
|
|
Name 59 "s"
|
|
Name 64 "outColor"
|
|
Name 80 "color1"
|
|
Name 86 "stencil"
|
|
Name 93 "fragColor"
|
|
Decorate 22(gl_TileOffsetQCOM) BuiltIn TileOffsetQCOM
|
|
Decorate 22(gl_TileOffsetQCOM) Flat
|
|
Decorate 26(gl_TileDimensionQCOM) BuiltIn TileDimensionQCOM
|
|
Decorate 26(gl_TileDimensionQCOM) Flat
|
|
Decorate 39(color0) NonWritable
|
|
Decorate 39(color0) Binding 1
|
|
Decorate 39(color0) DescriptorSet 0
|
|
Decorate 46(input0) NonWritable
|
|
Decorate 46(input0) Binding 0
|
|
Decorate 46(input0) DescriptorSet 0
|
|
Decorate 52(depth) NonWritable
|
|
Decorate 52(depth) Binding 3
|
|
Decorate 52(depth) DescriptorSet 0
|
|
Decorate 80(color1) NonReadable
|
|
Decorate 80(color1) Binding 2
|
|
Decorate 80(color1) DescriptorSet 0
|
|
Decorate 86(stencil) NonReadable
|
|
Decorate 86(stencil) Binding 4
|
|
Decorate 86(stencil) DescriptorSet 0
|
|
Decorate 93(fragColor) Location 0
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 0
|
|
7: TypeVector 6(int) 2
|
|
8: TypePointer Function 7(ivec2)
|
|
10: 6(int) Constant 8
|
|
11: 6(int) Constant 4
|
|
12: 7(ivec2) ConstantComposite 10 11
|
|
14: 6(int) Constant 2
|
|
15: 7(ivec2) ConstantComposite 14 14
|
|
17: TypeInt 32 1
|
|
18: TypeVector 17(int) 2
|
|
19: TypePointer Function 18(ivec2)
|
|
21: TypePointer Input 7(ivec2)
|
|
22(gl_TileOffsetQCOM): 21(ptr) Variable Input
|
|
24: TypeVector 6(int) 3
|
|
25: TypePointer Input 24(ivec3)
|
|
26(gl_TileDimensionQCOM): 25(ptr) Variable Input
|
|
28: 24(ivec3) ConstantComposite 14 14 14
|
|
33: TypeFloat 32
|
|
34: TypeVector 33(float) 4
|
|
35: TypePointer Function 34(fvec4)
|
|
37: TypeImage 33(float) 2D nonsampled format:Rgba32f
|
|
38: TypePointer TileAttachmentQCOM 37
|
|
39(color0): 38(ptr) Variable TileAttachmentQCOM
|
|
46(input0): 38(ptr) Variable TileAttachmentQCOM
|
|
50: TypePointer Function 33(float)
|
|
52(depth): 38(ptr) Variable TileAttachmentQCOM
|
|
56: 6(int) Constant 0
|
|
58: TypePointer Function 6(int)
|
|
62: TypeVector 17(int) 4
|
|
63: TypePointer Function 62(ivec4)
|
|
78: TypeImage 17(int) 2D nonsampled format:Rgba32i
|
|
79: TypePointer TileAttachmentQCOM 78
|
|
80(color1): 79(ptr) Variable TileAttachmentQCOM
|
|
84: TypeImage 6(int) 2D nonsampled format:Rgba32ui
|
|
85: TypePointer TileAttachmentQCOM 84
|
|
86(stencil): 85(ptr) Variable TileAttachmentQCOM
|
|
90: TypeVector 6(int) 4
|
|
92: TypePointer Output 34(fvec4)
|
|
93(fragColor): 92(ptr) Variable Output
|
|
96: 33(float) Constant 1065353216
|
|
97: 33(float) Constant 0
|
|
98: 34(fvec4) ConstantComposite 96 97 97 96
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
9(o2): 8(ptr) Variable Function
|
|
20(offset): 19(ptr) Variable Function
|
|
36(colorA): 35(ptr) Variable Function
|
|
43(colorB): 35(ptr) Variable Function
|
|
45(colorC): 35(ptr) Variable Function
|
|
51(d): 50(ptr) Variable Function
|
|
59(s): 58(ptr) Variable Function
|
|
64(outColor): 63(ptr) Variable Function
|
|
Store 9(o2) 12
|
|
13: 7(ivec2) Load 9(o2)
|
|
16: 7(ivec2) UDiv 13 15
|
|
Store 9(o2) 16
|
|
23: 7(ivec2) Load 22(gl_TileOffsetQCOM)
|
|
27: 24(ivec3) Load 26(gl_TileDimensionQCOM)
|
|
29: 24(ivec3) UDiv 27 28
|
|
30: 7(ivec2) VectorShuffle 29 29 0 1
|
|
31: 7(ivec2) IAdd 23 30
|
|
32: 18(ivec2) Bitcast 31
|
|
Store 20(offset) 32
|
|
40: 37 Load 39(color0)
|
|
41: 18(ivec2) Load 20(offset)
|
|
42: 34(fvec4) ImageRead 40 41
|
|
Store 36(colorA) 42
|
|
44: 34(fvec4) Load 36(colorA)
|
|
Store 43(colorB) 44
|
|
47: 37 Load 46(input0)
|
|
48: 18(ivec2) Load 20(offset)
|
|
49: 34(fvec4) ImageRead 47 48
|
|
Store 45(colorC) 49
|
|
53: 37 Load 52(depth)
|
|
54: 18(ivec2) Load 20(offset)
|
|
55: 34(fvec4) ImageRead 53 54
|
|
57: 33(float) CompositeExtract 55 0
|
|
Store 51(d) 57
|
|
60: 33(float) Load 51(d)
|
|
61: 6(int) ConvertFToU 60
|
|
Store 59(s) 61
|
|
65: 34(fvec4) Load 43(colorB)
|
|
66: 34(fvec4) Load 43(colorB)
|
|
67: 34(fvec4) FAdd 65 66
|
|
68: 34(fvec4) Load 45(colorC)
|
|
69: 34(fvec4) FAdd 67 68
|
|
70: 33(float) Load 51(d)
|
|
71: 34(fvec4) CompositeConstruct 70 70 70 70
|
|
72: 34(fvec4) FAdd 69 71
|
|
73: 6(int) Load 59(s)
|
|
74: 33(float) ConvertUToF 73
|
|
75: 34(fvec4) CompositeConstruct 74 74 74 74
|
|
76: 34(fvec4) FAdd 72 75
|
|
77: 62(ivec4) ConvertFToS 76
|
|
Store 64(outColor) 77
|
|
81: 78 Load 80(color1)
|
|
82: 18(ivec2) Load 20(offset)
|
|
83: 62(ivec4) Load 64(outColor)
|
|
ImageWrite 81 82 83
|
|
87: 84 Load 86(stencil)
|
|
88: 18(ivec2) Load 20(offset)
|
|
89: 62(ivec4) Load 64(outColor)
|
|
91: 90(ivec4) Bitcast 89
|
|
ImageWrite 87 88 91
|
|
94: 62(ivec4) Load 64(outColor)
|
|
95: 34(fvec4) ConvertSToF 94
|
|
99: 34(fvec4) FAdd 95 98
|
|
Store 93(fragColor) 99
|
|
Return
|
|
FunctionEnd
|