glslang SPV tests: Add a set of SPV tests.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31212 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
109
Test/baseResults/spv.forwardFun.frag.out
Normal file
109
Test/baseResults/spv.forwardFun.frag.out
Normal file
@@ -0,0 +1,109 @@
|
||||
spv.forwardFun.frag
|
||||
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
|
||||
// Module Version 99
|
||||
// Generated by (magic number): 51a00bb
|
||||
// Id's are bound by 59
|
||||
|
||||
Source GLSL 100
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4
|
||||
Name 4 "main"
|
||||
Name 7 "bar("
|
||||
Name 11 "unreachableReturn("
|
||||
Name 17 "foo(vf4;"
|
||||
Name 16 "bar"
|
||||
Name 19 "color"
|
||||
Name 21 "BaseColor"
|
||||
Name 22 "param"
|
||||
Name 28 "f"
|
||||
Name 31 "gl_FragColor"
|
||||
Name 37 "d"
|
||||
Name 49 "dummyReturn"
|
||||
Name 58 "bigColor"
|
||||
Decorate 19(color) PrecisionMedium
|
||||
Decorate 21(BaseColor) PrecisionMedium
|
||||
Decorate 21(BaseColor) Smooth
|
||||
Decorate 28(f) PrecisionMedium
|
||||
Decorate 31(gl_FragColor) PrecisionMedium
|
||||
Decorate 31(gl_FragColor) BuiltIn FragColor
|
||||
Decorate 37(d) PrecisionMedium
|
||||
Decorate 58(bigColor) PrecisionMedium
|
||||
Decorate 58(bigColor) NoStaticUse
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
9: TypeFloat 32
|
||||
10: TypeFunction 9(float)
|
||||
13: TypeVector 9(float) 4
|
||||
14: TypePointer Function 13(fvec4)
|
||||
15: TypeFunction 9(float) 14(ptr)
|
||||
20: TypePointer Input 13(fvec4)
|
||||
21(BaseColor): 20(ptr) Variable Input
|
||||
27: TypePointer Function 9(float)
|
||||
30: TypePointer Output 13(fvec4)
|
||||
31(gl_FragColor): 30(ptr) Variable Output
|
||||
36: TypePointer UniformConstant 9(float)
|
||||
37(d): 36(ptr) Variable UniformConstant
|
||||
39: 9(float) Constant 1082549862
|
||||
40: TypeBool
|
||||
44: 9(float) Constant 1067030938
|
||||
47: 9(float) Constant 1083179008
|
||||
57: TypePointer UniformConstant 13(fvec4)
|
||||
58(bigColor): 57(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
19(color): 14(ptr) Variable Function
|
||||
22(param): 14(ptr) Variable Function
|
||||
28(f): 27(ptr) Variable Function
|
||||
23: 13(fvec4) Load 21(BaseColor)
|
||||
Store 22(param) 23
|
||||
24: 9(float) FunctionCall 17(foo(vf4;) 22(param)
|
||||
25: 13(fvec4) CompositeConstruct 24 24 24 24
|
||||
Store 19(color) 25
|
||||
26: 2 FunctionCall 7(bar()
|
||||
29: 9(float) FunctionCall 11(unreachableReturn()
|
||||
Store 28(f) 29
|
||||
32: 13(fvec4) Load 19(color)
|
||||
33: 9(float) Load 28(f)
|
||||
34: 13(fvec4) VectorTimesScalar 32 33
|
||||
Store 31(gl_FragColor) 34
|
||||
Branch 6
|
||||
6: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
7(bar(): 2 Function None 3
|
||||
8: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
11(unreachableReturn(): 9(float) Function None 10
|
||||
12: Label
|
||||
49(dummyReturn): 27(ptr) Variable Function
|
||||
35: 2 FunctionCall 7(bar()
|
||||
38: 9(float) Load 37(d)
|
||||
41: 40(bool) FOrdLessThan 38 39
|
||||
SelectionMerge 43 None
|
||||
BranchConditional 41 42 46
|
||||
42: Label
|
||||
ReturnValue 44
|
||||
46: Label
|
||||
ReturnValue 47
|
||||
43: Label
|
||||
50: 9(float) Load 49(dummyReturn)
|
||||
ReturnValue 50
|
||||
FunctionEnd
|
||||
17(foo(vf4;): 9(float) Function None 15
|
||||
16(bar): 14(ptr) FunctionParameter
|
||||
18: Label
|
||||
51: 13(fvec4) Load 16(bar)
|
||||
52: 9(float) CompositeExtract 51 0
|
||||
53: 13(fvec4) Load 16(bar)
|
||||
54: 9(float) CompositeExtract 53 1
|
||||
55: 9(float) FAdd 52 54
|
||||
ReturnValue 55
|
||||
FunctionEnd
|
||||
Reference in New Issue
Block a user