yum-mirror/glslang

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

spencer-lunargRemove invalid reading from MeshEXT outputdffbc797

main
8.5 KiB151 linesraw
1spv.ext.meshShaderRedeclBuiltins.mesh
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 80
5
6                              Capability ClipDistance
7                              Capability CullDistance
8                              Capability MeshShadingEXT
9                              Extension  "SPV_EXT_mesh_shader"
10               1:             ExtInstImport  "GLSL.std.450"
11                              MemoryModel Logical GLSL450
12                              EntryPoint MeshEXT 4  "main" 11 17 29 57 74
13                              ExecutionMode 4 LocalSize 32 1 1
14                              ExecutionMode 4 OutputVertices 81
15                              ExecutionMode 4 OutputPrimitivesNV 32
16                              ExecutionMode 4 OutputPoints
17                              Source GLSL 460
18                              SourceExtension  "GL_EXT_mesh_shader"
19                              Name 4  "main"
20                              Name 8  "iid"
21                              Name 11  "gl_LocalInvocationID"
22                              Name 16  "gid"
23                              Name 17  "gl_WorkGroupID"
24                              Name 26  "gl_MeshPerVertexEXT"
25                              MemberName 26(gl_MeshPerVertexEXT) 0  "gl_Position"
26                              MemberName 26(gl_MeshPerVertexEXT) 1  "gl_PointSize"
27                              MemberName 26(gl_MeshPerVertexEXT) 2  "gl_ClipDistance"
28                              MemberName 26(gl_MeshPerVertexEXT) 3  "gl_CullDistance"
29                              Name 29  "gl_MeshVerticesEXT"
30                              Name 54  "gl_MeshPerPrimitiveEXT"
31                              MemberName 54(gl_MeshPerPrimitiveEXT) 0  "gl_PrimitiveID"
32                              MemberName 54(gl_MeshPerPrimitiveEXT) 1  "gl_Layer"
33                              MemberName 54(gl_MeshPerPrimitiveEXT) 2  "gl_ViewportIndex"
34                              MemberName 54(gl_MeshPerPrimitiveEXT) 3  "gl_CullPrimitiveEXT"
35                              Name 57  "gl_MeshPrimitivesEXT"
36                              Name 74  "gl_PrimitivePointIndicesEXT"
37                              Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId
38                              Decorate 17(gl_WorkGroupID) BuiltIn WorkgroupId
39                              Decorate 26(gl_MeshPerVertexEXT) Block
40                              MemberDecorate 26(gl_MeshPerVertexEXT) 0 BuiltIn Position
41                              MemberDecorate 26(gl_MeshPerVertexEXT) 1 BuiltIn PointSize
42                              MemberDecorate 26(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance
43                              MemberDecorate 26(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance
44                              Decorate 54(gl_MeshPerPrimitiveEXT) Block
45                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 0 BuiltIn PrimitiveId
46                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 0 PerPrimitiveNV
47                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 1 BuiltIn Layer
48                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 1 PerPrimitiveNV
49                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 2 BuiltIn ViewportIndex
50                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 2 PerPrimitiveNV
51                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 3 BuiltIn CullPrimitiveEXT
52                              MemberDecorate 54(gl_MeshPerPrimitiveEXT) 3 PerPrimitiveNV
53                              Decorate 74(gl_PrimitivePointIndicesEXT) BuiltIn PrimitivePointIndicesEXT
54                              Decorate 79 BuiltIn WorkgroupSize
55               2:             TypeVoid
56               3:             TypeFunction 2
57               6:             TypeInt 32 0
58               7:             TypePointer Function 6(int)
59               9:             TypeVector 6(int) 3
60              10:             TypePointer Input 9(ivec3)
6111(gl_LocalInvocationID):     10(ptr) Variable Input
62              12:      6(int) Constant 0
63              13:             TypePointer Input 6(int)
6417(gl_WorkGroupID):     10(ptr) Variable Input
65              20:      6(int) Constant 81
66              21:      6(int) Constant 32
67              22:             TypeFloat 32
68              23:             TypeVector 22(float) 4
69              24:      6(int) Constant 4
70              25:             TypeArray 22(float) 24
7126(gl_MeshPerVertexEXT):             TypeStruct 23(fvec4) 22(float) 25 25
72              27:             TypeArray 26(gl_MeshPerVertexEXT) 20
73              28:             TypePointer Output 27
7429(gl_MeshVerticesEXT):     28(ptr) Variable Output
75              31:             TypeInt 32 1
76              32:     31(int) Constant 0
77              33:   22(float) Constant 1065353216
78              34:   23(fvec4) ConstantComposite 33 33 33 33
79              35:             TypePointer Output 23(fvec4)
80              38:     31(int) Constant 1
81              39:   22(float) Constant 1073741824
82              40:             TypePointer Output 22(float)
83              43:     31(int) Constant 2
84              44:     31(int) Constant 3
85              45:   22(float) Constant 1077936128
86              48:   22(float) Constant 1082130432
87              50:      6(int) Constant 1
88              51:      6(int) Constant 264
89              52:      6(int) Constant 2
90              53:             TypeBool
9154(gl_MeshPerPrimitiveEXT):             TypeStruct 31(int) 31(int) 31(int) 53(bool)
92              55:             TypeArray 54(gl_MeshPerPrimitiveEXT) 21
93              56:             TypePointer Output 55
9457(gl_MeshPrimitivesEXT):     56(ptr) Variable Output
95              59:     31(int) Constant 6
96              60:             TypePointer Output 31(int)
97              63:     31(int) Constant 7
98              66:     31(int) Constant 8
99              69:    53(bool) ConstantFalse
100              70:             TypePointer Output 53(bool)
101              72:             TypeArray 6(int) 21
102              73:             TypePointer Output 72
10374(gl_PrimitivePointIndicesEXT):     73(ptr) Variable Output
104              75:             TypePointer Output 6(int)
105              77:     31(int) Constant 31
106              79:    9(ivec3) ConstantComposite 21 50 50
107         4(main):           2 Function None 3
108               5:             Label
109          8(iid):      7(ptr) Variable Function
110         16(gid):      7(ptr) Variable Function
111              14:     13(ptr) AccessChain 11(gl_LocalInvocationID) 12
112              15:      6(int) Load 14
113                              Store 8(iid) 15
114              18:     13(ptr) AccessChain 17(gl_WorkGroupID) 12
115              19:      6(int) Load 18
116                              Store 16(gid) 19
117                              SetMeshOutputsEXT 20 21
118              30:      6(int) Load 8(iid)
119              36:     35(ptr) AccessChain 29(gl_MeshVerticesEXT) 30 32
120                              Store 36 34
121              37:      6(int) Load 8(iid)
122              41:     40(ptr) AccessChain 29(gl_MeshVerticesEXT) 37 38
123                              Store 41 39
124              42:      6(int) Load 8(iid)
125              46:     40(ptr) AccessChain 29(gl_MeshVerticesEXT) 42 43 44
126                              Store 46 45
127              47:      6(int) Load 8(iid)
128              49:     40(ptr) AccessChain 29(gl_MeshVerticesEXT) 47 44 43
129                              Store 49 48
130                              MemoryBarrier 50 51
131                              ControlBarrier 52 52 51
132              58:      6(int) Load 8(iid)
133              61:     60(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 58 32
134                              Store 61 59
135              62:      6(int) Load 8(iid)
136              64:     60(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 62 38
137                              Store 64 63
138              65:      6(int) Load 8(iid)
139              67:     60(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 65 43
140                              Store 67 66
141              68:      6(int) Load 8(iid)
142              71:     70(ptr) AccessChain 57(gl_MeshPrimitivesEXT) 68 44
143                              Store 71 69
144                              MemoryBarrier 50 51
145                              ControlBarrier 52 52 51
146              76:     75(ptr) AccessChain 74(gl_PrimitivePointIndicesEXT) 32
147                              Store 76 50
148              78:     75(ptr) AccessChain 74(gl_PrimitivePointIndicesEXT) 77
149                              Store 78 52
150                              Return
151                              FunctionEnd