HLSL Tests: Remove optimization from tests that don't need it.

This is to create more stable test results.
This commit is contained in:
John Kessenich 2017-12-21 12:17:25 -07:00
parent 3b2dc1a756
commit b3cff2f297
4 changed files with 118 additions and 40 deletions

View file

@ -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