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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue