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:
@@ -1,104 +1,93 @@
|
||||
spv.do-while-continue-break.vert
|
||||
|
||||
Linked vertex stage:
|
||||
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 51
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 49 50
|
||||
Source ESSL 300
|
||||
Name 4 "main"
|
||||
Name 8 "i"
|
||||
Name 24 "A"
|
||||
Name 30 "B"
|
||||
Name 33 "C"
|
||||
Name 39 "D"
|
||||
Name 42 "E"
|
||||
Name 44 "F"
|
||||
Name 46 "G"
|
||||
Name 49 "gl_VertexID"
|
||||
Name 50 "gl_InstanceID"
|
||||
Decorate 49(gl_VertexID) BuiltIn VertexId
|
||||
Decorate 50(gl_InstanceID) BuiltIn InstanceId
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
7: TypePointer Function 6(int)
|
||||
9: 6(int) Constant 0
|
||||
14: TypeBool
|
||||
15: 14(bool) ConstantTrue
|
||||
19: 6(int) Constant 1
|
||||
21: 6(int) Constant 19
|
||||
26: 6(int) Constant 2
|
||||
31: 14(bool) ConstantFalse
|
||||
35: 6(int) Constant 5
|
||||
40: 6(int) Constant 3
|
||||
43: 6(int) Constant 42
|
||||
45: 6(int) Constant 99
|
||||
47: 6(int) Constant 12
|
||||
48: TypePointer Input 6(int)
|
||||
49(gl_VertexID): 48(ptr) Variable Input
|
||||
50(gl_InstanceID): 48(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(i): 7(ptr) Variable Function
|
||||
24(A): 7(ptr) Variable Function
|
||||
30(B): 7(ptr) Variable Function
|
||||
33(C): 7(ptr) Variable Function
|
||||
39(D): 7(ptr) Variable Function
|
||||
42(E): 7(ptr) Variable Function
|
||||
44(F): 7(ptr) Variable Function
|
||||
46(G): 7(ptr) Variable Function
|
||||
Store 8(i) 9
|
||||
Branch 10
|
||||
10: Label
|
||||
13: 14(bool) Phi 15 5 31 28 31 38
|
||||
LoopMerge 11 10 None
|
||||
Branch 16
|
||||
16: Label
|
||||
SelectionMerge 12 None
|
||||
BranchConditional 13 12 17
|
||||
17: Label
|
||||
18: 6(int) Load 8(i)
|
||||
20: 6(int) IAdd 18 19
|
||||
Store 8(i) 20
|
||||
22: 14(bool) SLessThan 20 21
|
||||
SelectionMerge 23 None
|
||||
BranchConditional 22 23 11
|
||||
23: Label
|
||||
Branch 12
|
||||
12: Label
|
||||
Store 24(A) 9
|
||||
25: 6(int) Load 8(i)
|
||||
27: 14(bool) IEqual 25 26
|
||||
SelectionMerge 29 None
|
||||
BranchConditional 27 28 29
|
||||
28: Label
|
||||
Store 30(B) 19
|
||||
Branch 10
|
||||
32: Label
|
||||
Store 33(C) 26
|
||||
Branch 29
|
||||
29: Label
|
||||
34: 6(int) Load 8(i)
|
||||
36: 14(bool) IEqual 34 35
|
||||
SelectionMerge 38 None
|
||||
BranchConditional 36 37 38
|
||||
37: Label
|
||||
Store 39(D) 40
|
||||
Branch 11
|
||||
41: Label
|
||||
Store 42(E) 43
|
||||
Branch 38
|
||||
38: Label
|
||||
Store 44(F) 45
|
||||
Branch 10
|
||||
11: Label
|
||||
Store 46(G) 47
|
||||
Return
|
||||
FunctionEnd
|
||||
spv.do-while-continue-break.vert
|
||||
|
||||
Linked vertex stage:
|
||||
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80001
|
||||
// Id's are bound by 45
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 43 44
|
||||
Source ESSL 300
|
||||
Name 4 "main"
|
||||
Name 8 "i"
|
||||
Name 13 "A"
|
||||
Name 20 "B"
|
||||
Name 23 "C"
|
||||
Name 29 "D"
|
||||
Name 32 "E"
|
||||
Name 34 "F"
|
||||
Name 40 "G"
|
||||
Name 43 "gl_VertexID"
|
||||
Name 44 "gl_InstanceID"
|
||||
Decorate 43(gl_VertexID) BuiltIn VertexId
|
||||
Decorate 44(gl_InstanceID) BuiltIn InstanceId
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
6: TypeInt 32 1
|
||||
7: TypePointer Function 6(int)
|
||||
9: 6(int) Constant 0
|
||||
15: 6(int) Constant 2
|
||||
16: TypeBool
|
||||
21: 6(int) Constant 1
|
||||
25: 6(int) Constant 5
|
||||
30: 6(int) Constant 3
|
||||
33: 6(int) Constant 42
|
||||
35: 6(int) Constant 99
|
||||
38: 6(int) Constant 19
|
||||
41: 6(int) Constant 12
|
||||
42: TypePointer Input 6(int)
|
||||
43(gl_VertexID): 42(ptr) Variable Input
|
||||
44(gl_InstanceID): 42(ptr) Variable Input
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
8(i): 7(ptr) Variable Function
|
||||
13(A): 7(ptr) Variable Function
|
||||
20(B): 7(ptr) Variable Function
|
||||
23(C): 7(ptr) Variable Function
|
||||
29(D): 7(ptr) Variable Function
|
||||
32(E): 7(ptr) Variable Function
|
||||
34(F): 7(ptr) Variable Function
|
||||
40(G): 7(ptr) Variable Function
|
||||
Store 8(i) 9
|
||||
Branch 10
|
||||
10: Label
|
||||
Store 13(A) 9
|
||||
14: 6(int) Load 8(i)
|
||||
17: 16(bool) IEqual 14 15
|
||||
SelectionMerge 19 None
|
||||
BranchConditional 17 18 19
|
||||
11: Label
|
||||
Store 40(G) 41
|
||||
Return
|
||||
12: Label
|
||||
36: 6(int) Load 8(i)
|
||||
37: 6(int) IAdd 36 21
|
||||
Store 8(i) 37
|
||||
39: 16(bool) SLessThan 37 38
|
||||
LoopMerge 11 12 None
|
||||
BranchConditional 39 10 11
|
||||
18: Label
|
||||
Store 20(B) 21
|
||||
Branch 12
|
||||
22: Label
|
||||
Store 23(C) 15
|
||||
Branch 19
|
||||
19: Label
|
||||
24: 6(int) Load 8(i)
|
||||
26: 16(bool) IEqual 24 25
|
||||
SelectionMerge 28 None
|
||||
BranchConditional 26 27 28
|
||||
27: Label
|
||||
Store 29(D) 30
|
||||
Branch 11
|
||||
31: Label
|
||||
Store 32(E) 33
|
||||
Branch 28
|
||||
28: Label
|
||||
Store 34(F) 35
|
||||
Branch 12
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user