mirror of https://github.com/xemu-project/xemu.git
170 lines
8.4 KiB
Plaintext
170 lines
8.4 KiB
Plaintext
spv.qcom.tileShading.0.frag
|
|
// Module Version 10000
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 108
|
|
|
|
Capability Shader
|
|
Capability TileShadingQCOM
|
|
Extension "SPV_QCOM_tile_shading"
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4 "main" 22 26 102
|
|
ExecutionMode 4 OriginUpperLeft
|
|
Source GLSL 460
|
|
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 45 "icolorB"
|
|
Name 48 "color1"
|
|
Name 52 "colorB"
|
|
Name 55 "colorC"
|
|
Name 56 "input0"
|
|
Name 61 "d"
|
|
Name 62 "depth"
|
|
Name 69 "s"
|
|
Name 72 "stencil"
|
|
Name 78 "outColor"
|
|
Name 102 "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) Binding 1
|
|
Decorate 39(color0) DescriptorSet 0
|
|
Decorate 48(color1) Binding 2
|
|
Decorate 48(color1) DescriptorSet 0
|
|
Decorate 56(input0) Binding 0
|
|
Decorate 56(input0) DescriptorSet 0
|
|
Decorate 62(depth) Binding 3
|
|
Decorate 62(depth) DescriptorSet 0
|
|
Decorate 72(stencil) Binding 4
|
|
Decorate 72(stencil) DescriptorSet 0
|
|
Decorate 102(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
|
|
43: TypeVector 17(int) 4
|
|
44: TypePointer Function 43(ivec4)
|
|
46: TypeImage 17(int) 2D nonsampled format:Rgba32i
|
|
47: TypePointer TileAttachmentQCOM 46
|
|
48(color1): 47(ptr) Variable TileAttachmentQCOM
|
|
56(input0): 38(ptr) Variable TileAttachmentQCOM
|
|
60: TypePointer Function 33(float)
|
|
62(depth): 38(ptr) Variable TileAttachmentQCOM
|
|
66: 6(int) Constant 0
|
|
68: TypePointer Function 6(int)
|
|
70: TypeImage 6(int) 2D nonsampled format:Rgba32ui
|
|
71: TypePointer TileAttachmentQCOM 70
|
|
72(stencil): 71(ptr) Variable TileAttachmentQCOM
|
|
75: TypeVector 6(int) 4
|
|
101: TypePointer Output 34(fvec4)
|
|
102(fragColor): 101(ptr) Variable Output
|
|
104: 33(float) Constant 1065353216
|
|
105: 33(float) Constant 0
|
|
106: 34(fvec4) ConstantComposite 104 105 105 104
|
|
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
|
|
45(icolorB): 44(ptr) Variable Function
|
|
52(colorB): 35(ptr) Variable Function
|
|
55(colorC): 35(ptr) Variable Function
|
|
61(d): 60(ptr) Variable Function
|
|
69(s): 68(ptr) Variable Function
|
|
78(outColor): 35(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
|
|
49: 46 Load 48(color1)
|
|
50: 18(ivec2) Load 20(offset)
|
|
51: 43(ivec4) ImageRead 49 50
|
|
Store 45(icolorB) 51
|
|
53: 43(ivec4) Load 45(icolorB)
|
|
54: 34(fvec4) ConvertSToF 53
|
|
Store 52(colorB) 54
|
|
57: 37 Load 56(input0)
|
|
58: 18(ivec2) Load 20(offset)
|
|
59: 34(fvec4) ImageRead 57 58
|
|
Store 55(colorC) 59
|
|
63: 37 Load 62(depth)
|
|
64: 18(ivec2) Load 20(offset)
|
|
65: 34(fvec4) ImageRead 63 64
|
|
67: 33(float) CompositeExtract 65 0
|
|
Store 61(d) 67
|
|
73: 70 Load 72(stencil)
|
|
74: 18(ivec2) Load 20(offset)
|
|
76: 75(ivec4) ImageRead 73 74
|
|
77: 6(int) CompositeExtract 76 0
|
|
Store 69(s) 77
|
|
79: 34(fvec4) Load 52(colorB)
|
|
80: 34(fvec4) Load 52(colorB)
|
|
81: 34(fvec4) FAdd 79 80
|
|
82: 34(fvec4) Load 55(colorC)
|
|
83: 34(fvec4) FAdd 81 82
|
|
84: 33(float) Load 61(d)
|
|
85: 34(fvec4) CompositeConstruct 84 84 84 84
|
|
86: 34(fvec4) FAdd 83 85
|
|
87: 6(int) Load 69(s)
|
|
88: 33(float) ConvertUToF 87
|
|
89: 34(fvec4) CompositeConstruct 88 88 88 88
|
|
90: 34(fvec4) FAdd 86 89
|
|
Store 78(outColor) 90
|
|
91: 37 Load 39(color0)
|
|
92: 18(ivec2) Load 20(offset)
|
|
93: 34(fvec4) Load 78(outColor)
|
|
ImageWrite 91 92 93
|
|
94: 37 Load 62(depth)
|
|
95: 18(ivec2) Load 20(offset)
|
|
96: 34(fvec4) Load 78(outColor)
|
|
ImageWrite 94 95 96
|
|
97: 70 Load 72(stencil)
|
|
98: 18(ivec2) Load 20(offset)
|
|
99: 34(fvec4) Load 78(outColor)
|
|
100: 75(ivec4) ConvertFToU 99
|
|
ImageWrite 97 98 100
|
|
103: 34(fvec4) Load 78(outColor)
|
|
107: 34(fvec4) FAdd 103 106
|
|
Store 102(fragColor) 107
|
|
Return
|
|
FunctionEnd
|