HLSL Tests: Remove optimization from tests that don't need it.
This is to create more stable test results.
This commit is contained in:
parent
3b2dc1a756
commit
b3cff2f297
4 changed files with 118 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue