HLSL Tests: Remove optimization from tests that don't need it.
This is to create more stable test results.
This commit is contained in:
@@ -73,7 +73,7 @@ Shader version: 500
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80003
|
||||
// Id's are bound by 41
|
||||
// Id's are bound by 34
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
@@ -81,9 +81,11 @@ Shader version: 500
|
||||
EntryPoint Vertex 4 "main" 32
|
||||
Source HLSL 500
|
||||
Name 4 "main"
|
||||
Name 9 "@main("
|
||||
Name 11 "$Global"
|
||||
MemberName 11($Global) 0 "pos"
|
||||
Name 13 ""
|
||||
Name 22 "@position"
|
||||
Name 32 "@entryPointOutput"
|
||||
MemberDecorate 11($Global) 0 Offset 0
|
||||
Decorate 11($Global) Block
|
||||
@@ -93,21 +95,36 @@ Shader version: 500
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypeFunction 7(fvec4)
|
||||
11($Global): TypeStruct 7(fvec4)
|
||||
12: TypePointer Uniform 11($Global)
|
||||
13: 12(ptr) Variable Uniform
|
||||
14: TypeInt 32 1
|
||||
15: 14(int) Constant 0
|
||||
16: TypePointer Uniform 7(fvec4)
|
||||
21: TypePointer Function 7(fvec4)
|
||||
24: TypeInt 32 0
|
||||
25: 24(int) Constant 1
|
||||
26: TypePointer Function 6(float)
|
||||
31: TypePointer Output 7(fvec4)
|
||||
32(@entryPointOutput): 31(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
35: 16(ptr) AccessChain 13 15
|
||||
36: 7(fvec4) Load 35
|
||||
38: 6(float) CompositeExtract 36 1
|
||||
29: 6(float) FNegate 38
|
||||
40: 7(fvec4) CompositeInsert 29 36 1
|
||||
Store 32(@entryPointOutput) 40
|
||||
22(@position): 21(ptr) Variable Function
|
||||
23: 7(fvec4) FunctionCall 9(@main()
|
||||
Store 22(@position) 23
|
||||
27: 26(ptr) AccessChain 22(@position) 25
|
||||
28: 6(float) Load 27
|
||||
29: 6(float) FNegate 28
|
||||
30: 26(ptr) AccessChain 22(@position) 25
|
||||
Store 30 29
|
||||
33: 7(fvec4) Load 22(@position)
|
||||
Store 32(@entryPointOutput) 33
|
||||
Return
|
||||
FunctionEnd
|
||||
9(@main(): 7(fvec4) Function None 8
|
||||
10: Label
|
||||
17: 16(ptr) AccessChain 13 15
|
||||
18: 7(fvec4) Load 17
|
||||
ReturnValue 18
|
||||
FunctionEnd
|
||||
|
||||
@@ -81,7 +81,7 @@ Shader version: 500
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80003
|
||||
// Id's are bound by 43
|
||||
// Id's are bound by 37
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
@@ -89,9 +89,14 @@ Shader version: 500
|
||||
EntryPoint Vertex 4 "main" 35
|
||||
Source HLSL 500
|
||||
Name 4 "main"
|
||||
Name 11 "@main(vf4;"
|
||||
Name 10 "position"
|
||||
Name 13 "$Global"
|
||||
MemberName 13($Global) 0 "pos"
|
||||
Name 15 ""
|
||||
Name 21 "position"
|
||||
Name 22 "param"
|
||||
Name 25 "@position"
|
||||
Name 35 "position"
|
||||
MemberDecorate 13($Global) 0 Offset 0
|
||||
Decorate 13($Global) Block
|
||||
@@ -101,21 +106,43 @@ Shader version: 500
|
||||
3: TypeFunction 2
|
||||
6: TypeFloat 32
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypePointer Function 7(fvec4)
|
||||
9: TypeFunction 2 8(ptr)
|
||||
13($Global): TypeStruct 7(fvec4)
|
||||
14: TypePointer Uniform 13($Global)
|
||||
15: 14(ptr) Variable Uniform
|
||||
16: TypeInt 32 1
|
||||
17: 16(int) Constant 0
|
||||
18: TypePointer Uniform 7(fvec4)
|
||||
27: TypeInt 32 0
|
||||
28: 27(int) Constant 1
|
||||
29: TypePointer Function 6(float)
|
||||
34: TypePointer Output 7(fvec4)
|
||||
35(position): 34(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
37: 18(ptr) AccessChain 15 17
|
||||
38: 7(fvec4) Load 37
|
||||
40: 6(float) CompositeExtract 38 1
|
||||
32: 6(float) FNegate 40
|
||||
42: 7(fvec4) CompositeInsert 32 38 1
|
||||
Store 35(position) 42
|
||||
21(position): 8(ptr) Variable Function
|
||||
22(param): 8(ptr) Variable Function
|
||||
25(@position): 8(ptr) Variable Function
|
||||
23: 2 FunctionCall 11(@main(vf4;) 22(param)
|
||||
24: 7(fvec4) Load 22(param)
|
||||
Store 21(position) 24
|
||||
26: 7(fvec4) Load 21(position)
|
||||
Store 25(@position) 26
|
||||
30: 29(ptr) AccessChain 25(@position) 28
|
||||
31: 6(float) Load 30
|
||||
32: 6(float) FNegate 31
|
||||
33: 29(ptr) AccessChain 25(@position) 28
|
||||
Store 33 32
|
||||
36: 7(fvec4) Load 25(@position)
|
||||
Store 35(position) 36
|
||||
Return
|
||||
FunctionEnd
|
||||
11(@main(vf4;): 2 Function None 9
|
||||
10(position): 8(ptr) FunctionParameter
|
||||
12: Label
|
||||
19: 18(ptr) AccessChain 15 17
|
||||
20: 7(fvec4) Load 19
|
||||
Store 10(position) 20
|
||||
Return
|
||||
FunctionEnd
|
||||
|
||||
@@ -127,7 +127,7 @@ Shader version: 500
|
||||
|
||||
// Module Version 10000
|
||||
// Generated by (magic number): 80003
|
||||
// Id's are bound by 67
|
||||
// Id's are bound by 50
|
||||
|
||||
Capability Shader
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
@@ -138,9 +138,13 @@ Shader version: 500
|
||||
Name 9 "VS_OUT"
|
||||
MemberName 9(VS_OUT) 0 "pos"
|
||||
MemberName 9(VS_OUT) 1 "somethingelse"
|
||||
Name 11 "@main("
|
||||
Name 14 "vsout"
|
||||
Name 16 "$Global"
|
||||
MemberName 16($Global) 0 "position"
|
||||
Name 18 ""
|
||||
Name 31 "flattenTemp"
|
||||
Name 33 "@position"
|
||||
Name 44 "@entryPointOutput.pos"
|
||||
Name 47 "@entryPointOutput.somethingelse"
|
||||
MemberDecorate 16($Global) 0 Offset 0
|
||||
@@ -154,24 +158,54 @@ Shader version: 500
|
||||
7: TypeVector 6(float) 4
|
||||
8: TypeInt 32 1
|
||||
9(VS_OUT): TypeStruct 7(fvec4) 8(int)
|
||||
10: TypeFunction 9(VS_OUT)
|
||||
13: TypePointer Function 9(VS_OUT)
|
||||
15: 8(int) Constant 0
|
||||
16($Global): TypeStruct 7(fvec4)
|
||||
17: TypePointer Uniform 16($Global)
|
||||
18: 17(ptr) Variable Uniform
|
||||
19: TypePointer Uniform 7(fvec4)
|
||||
22: TypePointer Function 7(fvec4)
|
||||
24: 8(int) Constant 1
|
||||
25: 8(int) Constant 42
|
||||
26: TypePointer Function 8(int)
|
||||
36: TypeInt 32 0
|
||||
37: 36(int) Constant 1
|
||||
38: TypePointer Function 6(float)
|
||||
43: TypePointer Output 7(fvec4)
|
||||
44(@entryPointOutput.pos): 43(ptr) Variable Output
|
||||
46: TypePointer Output 8(int)
|
||||
47(@entryPointOutput.somethingelse): 46(ptr) Variable Output
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
52: 19(ptr) AccessChain 18 15
|
||||
53: 7(fvec4) Load 52
|
||||
64: 6(float) CompositeExtract 53 1
|
||||
41: 6(float) FNegate 64
|
||||
66: 7(fvec4) CompositeInsert 41 53 1
|
||||
Store 44(@entryPointOutput.pos) 66
|
||||
Store 47(@entryPointOutput.somethingelse) 25
|
||||
31(flattenTemp): 13(ptr) Variable Function
|
||||
33(@position): 22(ptr) Variable Function
|
||||
32: 9(VS_OUT) FunctionCall 11(@main()
|
||||
Store 31(flattenTemp) 32
|
||||
34: 22(ptr) AccessChain 31(flattenTemp) 15
|
||||
35: 7(fvec4) Load 34
|
||||
Store 33(@position) 35
|
||||
39: 38(ptr) AccessChain 33(@position) 37
|
||||
40: 6(float) Load 39
|
||||
41: 6(float) FNegate 40
|
||||
42: 38(ptr) AccessChain 33(@position) 37
|
||||
Store 42 41
|
||||
45: 7(fvec4) Load 33(@position)
|
||||
Store 44(@entryPointOutput.pos) 45
|
||||
48: 26(ptr) AccessChain 31(flattenTemp) 24
|
||||
49: 8(int) Load 48
|
||||
Store 47(@entryPointOutput.somethingelse) 49
|
||||
Return
|
||||
FunctionEnd
|
||||
11(@main(): 9(VS_OUT) Function None 10
|
||||
12: Label
|
||||
14(vsout): 13(ptr) Variable Function
|
||||
20: 19(ptr) AccessChain 18 15
|
||||
21: 7(fvec4) Load 20
|
||||
23: 22(ptr) AccessChain 14(vsout) 15
|
||||
Store 23 21
|
||||
27: 26(ptr) AccessChain 14(vsout) 24
|
||||
Store 27 25
|
||||
28: 9(VS_OUT) Load 14(vsout)
|
||||
ReturnValue 28
|
||||
FunctionEnd
|
||||
|
||||
Reference in New Issue
Block a user