Update .out files with new loop SPIR-V.
Also update breakForLoop and call builder.closeLoop() in code generation. Remove dead code. Change-Id: Ic8ce5b208530f8787989ef45a2efa405f1b45310
This commit is contained in:
parent
7819bee82c
commit
c8fbbab419
15 changed files with 2766 additions and 2793 deletions
|
|
@ -1,71 +1,73 @@
|
|||
spv.dataOutIndirect.vert
|
||||
WARNING: 0:3: attribute deprecated in version 130; may be removed in future release
|
||||
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 38
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 26 23 37
|
||||
Source GLSL 130
|
||||
Name 4 "main"
|
||||
Name 8 "i"
|
||||
Name 23 "colorOut"
|
||||
Name 26 "color"
|
||||
Name 32 "gl_Position"
|
||||
Name 37 "gl_VertexID"
|
||||
Decorate 32(gl_Position) BuiltIn Position
|
||||
Decorate 37(gl_VertexID) BuiltIn VertexId
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
7: TypePointer Function 6(int)
|
||||
9: 6(int) Constant 1
|
||||
14: 6(int) Constant 5
|
||||
15: TypeBool
|
||||
17: TypeFloat 32
|
||||
18: TypeVector 17(float) 4
|
||||
19: TypeInt 32 0
|
||||
20: 19(int) Constant 6
|
||||
21: TypeArray 18(fvec4) 20
|
||||
22: TypePointer Output 21
|
||||
23(colorOut): 22(ptr) Variable Output
|
||||
25: TypePointer Input 18(fvec4)
|
||||
26(color): 25(ptr) Variable Input
|
||||
28: TypePointer Output 18(fvec4)
|
||||
32(gl_Position): 28(ptr) Variable Output
|
||||
33: 6(int) Constant 2
|
||||
36: TypePointer Input 6(int)
|
||||
37(gl_VertexID): 36(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(i): 7(ptr) Variable Function
|
||||
Store 8(i) 9
|
||||
Branch 10
|
||||
10: Label
|
||||
13: 6(int) Load 8(i)
|
||||
16: 15(bool) SLessThan 13 14
|
||||
LoopMerge 11 10 None
|
||||
BranchConditional 16 12 11
|
||||
12: Label
|
||||
24: 6(int) Load 8(i)
|
||||
27: 18(fvec4) Load 26(color)
|
||||
29: 28(ptr) AccessChain 23(colorOut) 24
|
||||
Store 29 27
|
||||
30: 6(int) Load 8(i)
|
||||
31: 6(int) IAdd 30 9
|
||||
Store 8(i) 31
|
||||
Branch 10
|
||||
11: Label
|
||||
34: 28(ptr) AccessChain 23(colorOut) 33
|
||||
35: 18(fvec4) Load 34
|
||||
Store 32(gl_Position) 35
|
||||
Return
|
||||
FunctionEnd
|
||||
spv.dataOutIndirect.vert
|
||||
WARNING: 0:3: attribute deprecated in version 130; may be removed in future release
|
||||
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
|
||||
|
||||
|
||||
Linked vertex stage:
|
||||
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 39
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 27 24 38
|
||||
Source GLSL 130
|
||||
Name 4 "main"
|
||||
Name 8 "i"
|
||||
Name 24 "colorOut"
|
||||
Name 27 "color"
|
||||
Name 33 "gl_Position"
|
||||
Name 38 "gl_VertexID"
|
||||
Decorate 33(gl_Position) BuiltIn Position
|
||||
Decorate 38(gl_VertexID) BuiltIn VertexId
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
7: TypePointer Function 6(int)
|
||||
9: 6(int) Constant 1
|
||||
15: 6(int) Constant 5
|
||||
16: TypeBool
|
||||
18: TypeFloat 32
|
||||
19: TypeVector 18(float) 4
|
||||
20: TypeInt 32 0
|
||||
21: 20(int) Constant 6
|
||||
22: TypeArray 19(fvec4) 21
|
||||
23: TypePointer Output 22
|
||||
24(colorOut): 23(ptr) Variable Output
|
||||
26: TypePointer Input 19(fvec4)
|
||||
27(color): 26(ptr) Variable Input
|
||||
29: TypePointer Output 19(fvec4)
|
||||
33(gl_Position): 29(ptr) Variable Output
|
||||
34: 6(int) Constant 2
|
||||
37: TypePointer Input 6(int)
|
||||
38(gl_VertexID): 37(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(i): 7(ptr) Variable Function
|
||||
Store 8(i) 9
|
||||
Branch 13
|
||||
10: Label
|
||||
25: 6(int) Load 8(i)
|
||||
28: 19(fvec4) Load 27(color)
|
||||
30: 29(ptr) AccessChain 24(colorOut) 25
|
||||
Store 30 28
|
||||
Branch 12
|
||||
11: Label
|
||||
35: 29(ptr) AccessChain 24(colorOut) 34
|
||||
36: 19(fvec4) Load 35
|
||||
Store 33(gl_Position) 36
|
||||
Return
|
||||
12: Label
|
||||
31: 6(int) Load 8(i)
|
||||
32: 6(int) IAdd 31 9
|
||||
Store 8(i) 32
|
||||
Branch 13
|
||||
13: Label
|
||||
14: 6(int) Load 8(i)
|
||||
17: 16(bool) SLessThan 14 15
|
||||
LoopMerge 11 12 None
|
||||
BranchConditional 17 10 11
|
||||
FunctionEnd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue