Move to revision 31 of SPIR-V.

This commit is contained in:
John Kessenich 2015-08-06 22:53:06 -06:00
parent e24a74c320
commit 5e4b1242bf
77 changed files with 6050 additions and 5450 deletions

311
Test/baseResults/spv.400.tesc.out Normal file → Executable file
View file

@ -7,170 +7,173 @@ Linked tessellation control stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 89
// Id's are bound by 91
Source GLSL 400
SourceExtension "GL_ARB_separate_shader_objects"
Capability Tessellation
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationControl 4
EntryPoint TessellationControl 4 "main"
ExecutionMode 4 OutputVertices 4
Name 4 "main"
Name 9 "a"
Name 14 "p"
Name 18 "gl_PerVertex"
MemberName 18(gl_PerVertex) 0 "gl_Position"
MemberName 18(gl_PerVertex) 1 "gl_PointSize"
MemberName 18(gl_PerVertex) 2 "gl_ClipDistance"
Name 22 "gl_in"
Name 29 "ps"
Name 33 "cd"
Name 37 "pvi"
Name 39 "gl_PatchVerticesIn"
Name 41 "pid"
Name 42 "gl_PrimitiveID"
Name 44 "iid"
Name 45 "gl_InvocationID"
Name 47 "gl_PerVertex"
MemberName 47(gl_PerVertex) 0 "gl_Position"
MemberName 47(gl_PerVertex) 1 "gl_PointSize"
MemberName 47(gl_PerVertex) 2 "gl_ClipDistance"
Name 51 "gl_out"
Name 62 "gl_TessLevelOuter"
Name 69 "gl_TessLevelInner"
Name 74 "outa"
Name 75 "patchOut"
Name 79 "inb"
Name 80 "ind"
Name 83 "ivla"
Name 84 "ivlb"
Name 87 "ovla"
Name 88 "ovlb"
Decorate 18(gl_PerVertex) Block
Decorate 39(gl_PatchVerticesIn) BuiltIn PatchVertices
Decorate 42(gl_PrimitiveID) BuiltIn PrimitiveId
Decorate 45(gl_InvocationID) BuiltIn InvocationId
MemberDecorate 47(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 47(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 47(gl_PerVertex) 2 BuiltIn ClipDistance
Decorate 47(gl_PerVertex) Block
Decorate 62(gl_TessLevelOuter) Patch
Decorate 62(gl_TessLevelOuter) BuiltIn TessLevelOuter
Decorate 69(gl_TessLevelInner) Patch
Decorate 69(gl_TessLevelInner) BuiltIn TessLevelInner
Decorate 74(outa) NoStaticUse
Decorate 75(patchOut) Patch
Decorate 75(patchOut) NoStaticUse
Decorate 79(inb) NoStaticUse
Decorate 80(ind) NoStaticUse
Decorate 83(ivla) Location 3
Decorate 83(ivla) NoStaticUse
Decorate 84(ivlb) Location 4
Decorate 84(ivlb) NoStaticUse
Decorate 87(ovla) Location 3
Decorate 87(ovla) NoStaticUse
Decorate 88(ovlb) Location 4
Decorate 88(ovlb) NoStaticUse
Name 13 "a"
Name 18 "p"
Name 20 "gl_PerVertex"
MemberName 20(gl_PerVertex) 0 "gl_Position"
MemberName 20(gl_PerVertex) 1 "gl_PointSize"
MemberName 20(gl_PerVertex) 2 "gl_ClipDistance"
Name 24 "gl_in"
Name 31 "ps"
Name 35 "cd"
Name 39 "pvi"
Name 41 "gl_PatchVerticesIn"
Name 43 "pid"
Name 44 "gl_PrimitiveID"
Name 46 "iid"
Name 47 "gl_InvocationID"
Name 49 "gl_PerVertex"
MemberName 49(gl_PerVertex) 0 "gl_Position"
MemberName 49(gl_PerVertex) 1 "gl_PointSize"
MemberName 49(gl_PerVertex) 2 "gl_ClipDistance"
Name 53 "gl_out"
Name 64 "gl_TessLevelOuter"
Name 71 "gl_TessLevelInner"
Name 76 "outa"
Name 77 "patchOut"
Name 81 "inb"
Name 82 "ind"
Name 85 "ivla"
Name 86 "ivlb"
Name 89 "ovla"
Name 90 "ovlb"
Decorate 20(gl_PerVertex) Block
Decorate 41(gl_PatchVerticesIn) BuiltIn PatchVertices
Decorate 44(gl_PrimitiveID) BuiltIn PrimitiveId
Decorate 47(gl_InvocationID) BuiltIn InvocationId
MemberDecorate 49(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 49(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 49(gl_PerVertex) 2 BuiltIn ClipDistance
Decorate 49(gl_PerVertex) Block
Decorate 64(gl_TessLevelOuter) Patch
Decorate 64(gl_TessLevelOuter) BuiltIn TessLevelOuter
Decorate 71(gl_TessLevelInner) Patch
Decorate 71(gl_TessLevelInner) BuiltIn TessLevelInner
Decorate 76(outa) NoStaticUse
Decorate 77(patchOut) Patch
Decorate 77(patchOut) NoStaticUse
Decorate 81(inb) NoStaticUse
Decorate 82(ind) NoStaticUse
Decorate 85(ivla) Location 3
Decorate 85(ivla) NoStaticUse
Decorate 86(ivlb) Location 4
Decorate 86(ivlb) NoStaticUse
Decorate 89(ovla) Location 3
Decorate 89(ovla) NoStaticUse
Decorate 90(ovlb) Location 4
Decorate 90(ovlb) NoStaticUse
2: TypeVoid
3: TypeFunction 2
7: TypeInt 32 1
8: TypePointer Function 7(int)
10: 7(int) Constant 5392
11: TypeFloat 32
12: TypeVector 11(float) 4
13: TypePointer Function 12(fvec4)
15: TypeInt 32 0
16: 15(int) Constant 1
17: TypeArray 11(float) 16
18(gl_PerVertex): TypeStruct 12(fvec4) 11(float) 17
19: 15(int) Constant 32
20: TypeArray 18(gl_PerVertex) 19
21: TypePointer Input 20
22(gl_in): 21(ptr) Variable Input
23: 7(int) Constant 1
24: 7(int) Constant 0
25: TypePointer Input 12(fvec4)
28: TypePointer Function 11(float)
30: TypePointer Input 11(float)
34: 7(int) Constant 2
38: TypePointer Input 7(int)
39(gl_PatchVerticesIn): 38(ptr) Variable Input
42(gl_PrimitiveID): 38(ptr) Variable Input
45(gl_InvocationID): 38(ptr) Variable Input
47(gl_PerVertex): TypeStruct 12(fvec4) 11(float) 17
48: 15(int) Constant 4
49: TypeArray 47(gl_PerVertex) 48
50: TypePointer Output 49
51(gl_out): 50(ptr) Variable Output
53: TypePointer Output 12(fvec4)
56: TypePointer Output 11(float)
60: TypeArray 11(float) 48
61: TypePointer Output 60
62(gl_TessLevelOuter): 61(ptr) Variable Output
63: 7(int) Constant 3
64: 11(float) Constant 1078774989
66: 15(int) Constant 2
67: TypeArray 11(float) 66
68: TypePointer Output 67
69(gl_TessLevelInner): 68(ptr) Variable Output
70: 11(float) Constant 1067869798
72: TypeArray 7(int) 48
73: TypePointer PrivateGlobal 72
74(outa): 73(ptr) Variable PrivateGlobal
75(patchOut): 53(ptr) Variable Output
76: TypeVector 11(float) 2
77: TypeArray 76(fvec2) 19
78: TypePointer Input 77
79(inb): 78(ptr) Variable Input
80(ind): 78(ptr) Variable Input
81: TypeArray 12(fvec4) 19
82: TypePointer Input 81
83(ivla): 82(ptr) Variable Input
84(ivlb): 82(ptr) Variable Input
85: TypeArray 12(fvec4) 48
86: TypePointer Output 85
87(ovla): 86(ptr) Variable Output
88(ovlb): 86(ptr) Variable Output
3: TypeFunction 2
7: TypeInt 32 0
8: 7(int) Constant 1
9: 7(int) Constant 1023
10: 7(int) Constant 0
11: TypeInt 32 1
12: TypePointer Function 11(int)
14: 11(int) Constant 5392
15: TypeFloat 32
16: TypeVector 15(float) 4
17: TypePointer Function 16(fvec4)
19: TypeArray 15(float) 8
20(gl_PerVertex): TypeStruct 16(fvec4) 15(float) 19
21: 7(int) Constant 32
22: TypeArray 20(gl_PerVertex) 21
23: TypePointer Input 22
24(gl_in): 23(ptr) Variable Input
25: 11(int) Constant 1
26: 11(int) Constant 0
27: TypePointer Input 16(fvec4)
30: TypePointer Function 15(float)
32: TypePointer Input 15(float)
36: 11(int) Constant 2
40: TypePointer Input 11(int)
41(gl_PatchVerticesIn): 40(ptr) Variable Input
44(gl_PrimitiveID): 40(ptr) Variable Input
47(gl_InvocationID): 40(ptr) Variable Input
49(gl_PerVertex): TypeStruct 16(fvec4) 15(float) 19
50: 7(int) Constant 4
51: TypeArray 49(gl_PerVertex) 50
52: TypePointer Output 51
53(gl_out): 52(ptr) Variable Output
55: TypePointer Output 16(fvec4)
58: TypePointer Output 15(float)
62: TypeArray 15(float) 50
63: TypePointer Output 62
64(gl_TessLevelOuter): 63(ptr) Variable Output
65: 11(int) Constant 3
66: 15(float) Constant 1078774989
68: 7(int) Constant 2
69: TypeArray 15(float) 68
70: TypePointer Output 69
71(gl_TessLevelInner): 70(ptr) Variable Output
72: 15(float) Constant 1067869798
74: TypeArray 11(int) 50
75: TypePointer PrivateGlobal 74
76(outa): 75(ptr) Variable PrivateGlobal
77(patchOut): 55(ptr) Variable Output
78: TypeVector 15(float) 2
79: TypeArray 78(fvec2) 21
80: TypePointer Input 79
81(inb): 80(ptr) Variable Input
82(ind): 80(ptr) Variable Input
83: TypeArray 16(fvec4) 21
84: TypePointer Input 83
85(ivla): 84(ptr) Variable Input
86(ivlb): 84(ptr) Variable Input
87: TypeArray 16(fvec4) 50
88: TypePointer Output 87
89(ovla): 88(ptr) Variable Output
90(ovlb): 88(ptr) Variable Output
4(main): 2 Function None 3
5: Label
9(a): 8(ptr) Variable Function
14(p): 13(ptr) Variable Function
29(ps): 28(ptr) Variable Function
33(cd): 28(ptr) Variable Function
37(pvi): 8(ptr) Variable Function
41(pid): 8(ptr) Variable Function
44(iid): 8(ptr) Variable Function
MemoryBarrier Device Relaxed SequentiallyConsistent Acquire Release UniformMemory SubgroupMemory WorkgroupLocalMemory WorkgroupGlobalMemory AtomicCounterMemory ImageMemory
ControlBarrier Device
Store 9(a) 10
26: 25(ptr) AccessChain 22(gl_in) 23 24
27: 12(fvec4) Load 26
Store 14(p) 27
31: 30(ptr) AccessChain 22(gl_in) 23 23
32: 11(float) Load 31
Store 29(ps) 32
35: 30(ptr) AccessChain 22(gl_in) 23 34 34
36: 11(float) Load 35
Store 33(cd) 36
40: 7(int) Load 39(gl_PatchVerticesIn)
Store 37(pvi) 40
43: 7(int) Load 42(gl_PrimitiveID)
Store 41(pid) 43
46: 7(int) Load 45(gl_InvocationID)
Store 44(iid) 46
52: 12(fvec4) Load 14(p)
54: 53(ptr) AccessChain 51(gl_out) 23 24
Store 54 52
55: 11(float) Load 29(ps)
57: 56(ptr) AccessChain 51(gl_out) 23 23
Store 57 55
58: 11(float) Load 33(cd)
59: 56(ptr) AccessChain 51(gl_out) 23 34 23
Store 59 58
65: 56(ptr) AccessChain 62(gl_TessLevelOuter) 63
Store 65 64
71: 56(ptr) AccessChain 69(gl_TessLevelInner) 23
Store 71 70
13(a): 12(ptr) Variable Function
18(p): 17(ptr) Variable Function
31(ps): 30(ptr) Variable Function
35(cd): 30(ptr) Variable Function
39(pvi): 12(ptr) Variable Function
43(pid): 12(ptr) Variable Function
46(iid): 12(ptr) Variable Function
MemoryBarrier 8 9
ControlBarrier 8 8 10
Store 13(a) 14
28: 27(ptr) AccessChain 24(gl_in) 25 26
29: 16(fvec4) Load 28
Store 18(p) 29
33: 32(ptr) AccessChain 24(gl_in) 25 25
34: 15(float) Load 33
Store 31(ps) 34
37: 32(ptr) AccessChain 24(gl_in) 25 36 36
38: 15(float) Load 37
Store 35(cd) 38
42: 11(int) Load 41(gl_PatchVerticesIn)
Store 39(pvi) 42
45: 11(int) Load 44(gl_PrimitiveID)
Store 43(pid) 45
48: 11(int) Load 47(gl_InvocationID)
Store 46(iid) 48
54: 16(fvec4) Load 18(p)
56: 55(ptr) AccessChain 53(gl_out) 25 26
Store 56 54
57: 15(float) Load 31(ps)
59: 58(ptr) AccessChain 53(gl_out) 25 25
Store 59 57
60: 15(float) Load 35(cd)
61: 58(ptr) AccessChain 53(gl_out) 25 36 25
Store 61 60
67: 58(ptr) AccessChain 64(gl_TessLevelOuter) 65
Store 67 66
73: 58(ptr) AccessChain 71(gl_TessLevelInner) 25
Store 73 72
Branch 6
6: Label
Return