Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
354a54c6
Commit
354a54c6
authored
Sep 29, 2017
by
GregF
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legalization: Fix tests after workarounds removed
parent
d41993d9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
127 deletions
+116
-127
hlsl.aliasOpaque.frag.out
Test/baseLegalResults/hlsl.aliasOpaque.frag.out
+25
-21
hlsl.flattenOpaque.frag.out
Test/baseLegalResults/hlsl.flattenOpaque.frag.out
+44
-44
hlsl.flattenOpaqueInit.vert.out
Test/baseLegalResults/hlsl.flattenOpaqueInit.vert.out
+20
-41
hlsl.flattenOpaqueInitMix.vert.out
Test/baseLegalResults/hlsl.flattenOpaqueInitMix.vert.out
+27
-21
No files found.
Test/baseLegalResults/hlsl.aliasOpaque.frag.out
View file @
354a54c6
hlsl.aliasOpaque.frag
hlsl.aliasOpaque.frag
WARNING: AST will form illegal SPIR-V; need to transform to legalize
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by
6
1
// Id's are bound by
8
1
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
46
EntryPoint Fragment 4 "main"
57
ExecutionMode 4 OriginUpperLeft
ExecutionMode 4 OriginUpperLeft
Source HLSL 500
Source HLSL 500
Name 4 "main"
Name 4 "main"
Name 36 "gss"
Name 37 "gss2"
Name 37 "gtex"
Name 39 "gss"
Name 46 "@entryPointOutput"
Name 43 "gtex"
Decorate 36(gss) DescriptorSet 0
Name 57 "@entryPointOutput"
Decorate 37(gtex) DescriptorSet 0
Decorate 37(gss2) DescriptorSet 0
Decorate 46(@entryPointOutput) Location 0
Decorate 39(gss) DescriptorSet 0
Decorate 43(gtex) DescriptorSet 0
Decorate 57(@entryPointOutput) Location 0
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeSampler
6: TypeSampler
7: TypePointer UniformConstant 6
8: TypeFloat 32
8: TypeFloat 32
10: TypeImage 8(float) 2D sampled format:Unknown
10: TypeImage 8(float) 2D sampled format:Unknown
11: TypePointer UniformConstant 10
12: TypeVector 8(float) 4
12: TypeVector 8(float) 4
25: TypeSampledImage 10
25: TypeSampledImage 10
27: TypeVector 8(float) 2
27: TypeVector 8(float) 2
28: 8(float) Constant 1045220557
28: 8(float) Constant 1045220557
29: 8(float) Constant 1050253722
29: 8(float) Constant 1050253722
30: 27(fvec2) ConstantComposite 28 29
30: 27(fvec2) ConstantComposite 28 29
36(gss): 7(ptr) Variable UniformConstant
36: TypePointer UniformConstant 6
37(gtex): 11(ptr) Variable UniformConstant
37(gss2): 36(ptr) Variable UniformConstant
39: 8(float) Constant 1077936128
39(gss): 36(ptr) Variable UniformConstant
45: TypePointer Output 12(fvec4)
42: TypePointer UniformConstant 10
46(@entryPointOutput): 45(ptr) Variable Output
43(gtex): 42(ptr) Variable UniformConstant
46: 8(float) Constant 1077936128
56: TypePointer Output 12(fvec4)
57(@entryPointOutput): 56(ptr) Variable Output
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
56: 10 Load 37(gtex
)
68: 6 Load 39(gss
)
57: 6 Load 36(gss
)
69: 10 Load 43(gtex
)
58: 25 SampledImage 56 57
78: 25 SampledImage 69 68
59: 12(fvec4) ImageSampleImplicitLod 5
8 30
79: 12(fvec4) ImageSampleImplicitLod 7
8 30
60: 12(fvec4) VectorTimesScalar 59 39
80: 12(fvec4) VectorTimesScalar 79 46
Store
46(@entryPointOutput) 6
0
Store
57(@entryPointOutput) 8
0
Return
Return
FunctionEnd
FunctionEnd
Test/baseLegalResults/hlsl.flattenOpaque.frag.out
View file @
354a54c6
hlsl.flattenOpaque.frag
hlsl.flattenOpaque.frag
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by 1
18
// Id's are bound by 1
44
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
83
EntryPoint Fragment 4 "main"
97
ExecutionMode 4 OriginUpperLeft
ExecutionMode 4 OriginUpperLeft
Source HLSL 500
Source HLSL 500
Name 4 "main"
Name 4 "main"
Name 3
7
"tex"
Name 3
8
"tex"
Name
68
"s.s2D"
Name
70
"s.s2D"
Name 7
3
"s2.s2D"
Name 7
9
"s2.s2D"
Name
74
"s2.tex"
Name
80
"s2.tex"
Name
83
"@entryPointOutput"
Name
97
"@entryPointOutput"
Decorate 3
7
(tex) DescriptorSet 0
Decorate 3
8
(tex) DescriptorSet 0
Decorate
68
(s.s2D) DescriptorSet 0
Decorate
70
(s.s2D) DescriptorSet 0
Decorate 7
3
(s2.s2D) DescriptorSet 0
Decorate 7
9
(s2.s2D) DescriptorSet 0
Decorate
74
(s2.tex) DescriptorSet 0
Decorate
80
(s2.tex) DescriptorSet 0
Decorate
83
(@entryPointOutput) Location 0
Decorate
97
(@entryPointOutput) Location 0
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeSampler
6: TypeSampler
7: TypePointer UniformConstant 6
8: TypeFloat 32
8: TypeFloat 32
9: TypeVector 8(float) 4
9: TypeVector 8(float) 4
14: TypeVector 8(float) 2
14: TypeVector 8(float) 2
21: TypeImage 8(float) 2D sampled format:Unknown
21: TypeImage 8(float) 2D sampled format:Unknown
22: TypePointer UniformConstant 21
37: TypePointer UniformConstant 21
37(tex): 22(ptr) Variable UniformConstant
38(tex): 37(ptr) Variable UniformConstant
40: TypeSampledImage 21
41: TypeSampledImage 21
42: 8(float) Constant 1045220557
43: 8(float) Constant 1045220557
43: 8(float) Constant 1050253722
44: 8(float) Constant 1050253722
44: 14(fvec2) ConstantComposite 42 43
45: 14(fvec2) ConstantComposite 43 44
68(s.s2D): 7(ptr) Variable UniformConstant
69: TypePointer UniformConstant 6
73(s2.s2D): 7(ptr) Variable UniformConstant
70(s.s2D): 69(ptr) Variable UniformConstant
74(s2.tex): 22(ptr) Variable UniformConstant
79(s2.s2D): 69(ptr) Variable UniformConstant
82: TypePointer Output 9(fvec4)
80(s2.tex): 37(ptr) Variable UniformConstant
83(@entryPointOutput): 82(ptr) Variable Output
96: TypePointer Output 9(fvec4)
97(@entryPointOutput): 96(ptr) Variable Output
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
97: 21 Load 37(tex
)
109: 6 Load 70(s.s2D
)
98: 6 Load 68(s.s2D
)
123: 21 Load 38(tex
)
99: 40 SampledImage 97 98
125: 41 SampledImage 123 109
1
00: 9(fvec4) ImageSampleImplicitLod 99 44
1
26: 9(fvec4) ImageSampleImplicitLod 125 45
1
02: 21 Load 37(tex
)
1
11: 6 Load 70(s.s2D
)
1
03: 6 Load 68(s.s2D
)
1
28: 21 Load 38(tex
)
1
04: 40 SampledImage 102 103
1
30: 41 SampledImage 128 111
1
06: 9(fvec4) ImageSampleImplicitLod 104 44
1
32: 9(fvec4) ImageSampleImplicitLod 130 45
91: 9(fvec4) FAdd 100 106
113: 9(fvec4) FAdd 126 132
1
08: 21 Load 74(s2.tex
)
1
14: 6 Load 79(s2.s2D
)
1
09: 6 Load 73(s2.s2D
)
1
15: 21 Load 80(s2.tex
)
1
10: 40 SampledImage 108 109
1
36: 41 SampledImage 115 114
1
11: 9(fvec4) ImageSampleImplicitLod 110 44
1
37: 9(fvec4) ImageSampleImplicitLod 136 45
93: 9(fvec4) FAdd 91 111
117: 9(fvec4) FAdd 113 137
11
3: 21 Load 74(s2.tex
)
11
8: 6 Load 79(s2.s2D
)
11
4: 6 Load 73(s2.s2D
)
11
9: 21 Load 80(s2.tex
)
1
15: 40 SampledImage 113 114
1
41: 41 SampledImage 119 118
1
17: 9(fvec4) ImageSampleImplicitLod 115 44
1
43: 9(fvec4) ImageSampleImplicitLod 141 45
95: 9(fvec4) FAdd 93 117
121: 9(fvec4) FAdd 117 143
Store
83(@entryPointOutput) 95
Store
97(@entryPointOutput) 121
Return
Return
FunctionEnd
FunctionEnd
Test/baseLegalResults/hlsl.flattenOpaqueInit.vert.out
View file @
354a54c6
hlsl.flattenOpaqueInit.vert
hlsl.flattenOpaqueInit.vert
WARNING: 0:20: '=' : cannot do member-wise aliasing for opaque members with this initializer
WARNING: AST will form illegal SPIR-V; need to transform to legalize
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by
76
// Id's are bound by
117
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main"
5
8
EntryPoint Vertex 4 "main"
7
8
Source HLSL 500
Source HLSL 500
Name 4 "main"
Name 4 "main"
Name 17 "FxaaTex"
Name 17 "FxaaTex"
MemberName 17(FxaaTex) 0 "smpl"
MemberName 17(FxaaTex) 0 "smpl"
MemberName 17(FxaaTex) 1 "tex"
MemberName 17(FxaaTex) 1 "tex"
Name 36 "g_tInputTexture_sampler"
Name 38 "g_tInputTexture_sampler"
Name 37 "g_tInputTexture"
Name 42 "g_tInputTexture"
Name 39 "t"
Name 78 "@entryPointOutput"
Name 43 "flattenTemp"
Decorate 38(g_tInputTexture_sampler) DescriptorSet 0
Name 45 "tex2.smpl"
Decorate 42(g_tInputTexture) DescriptorSet 0
Name 50 "tex2.tex"
Decorate 78(@entryPointOutput) Location 0
Name 58 "@entryPointOutput"
Decorate 36(g_tInputTexture_sampler) DescriptorSet 0
Decorate 37(g_tInputTexture) DescriptorSet 0
Decorate 58(@entryPointOutput) Location 0
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeSampler
6: TypeSampler
7: TypePointer UniformConstant 6
8: TypeFloat 32
8: TypeFloat 32
9: TypeImage 8(float) 2D sampled format:Unknown
9: TypeImage 8(float) 2D sampled format:Unknown
10: TypePointer UniformConstant 9
11: TypeVector 8(float) 4
11: TypeVector 8(float) 4
17(FxaaTex): TypeStruct 6 9
17(FxaaTex): TypeStruct 6 9
26: TypeSampledImage 9
26: TypeSampledImage 9
...
@@ -39,32 +32,18 @@ WARNING: 0:20: '=' : cannot do member-wise aliasing for opaque members with this
...
@@ -39,32 +32,18 @@ WARNING: 0:20: '=' : cannot do member-wise aliasing for opaque members with this
30: 8(float) Constant 1053609165
30: 8(float) Constant 1053609165
31: 28(fvec2) ConstantComposite 29 30
31: 28(fvec2) ConstantComposite 29 30
32: 8(float) Constant 0
32: 8(float) Constant 0
36(g_tInputTexture_sampler): 7(ptr) Variable UniformConstant
37: TypePointer UniformConstant 6
37(g_tInputTexture): 10(ptr) Variable UniformConstant
38(g_tInputTexture_sampler): 37(ptr) Variable UniformConstant
38: TypePointer UniformConstant 17(FxaaTex)
41: TypePointer UniformConstant 9
39(t): 38(ptr) Variable UniformConstant
42(g_tInputTexture): 41(ptr) Variable UniformConstant
43(flattenTemp): 38(ptr) Variable UniformConstant
77: TypePointer Output 11(fvec4)
45(tex2.smpl): 7(ptr) Variable UniformConstant
78(@entryPointOutput): 77(ptr) Variable Output
46: TypeInt 32 1
47: 46(int) Constant 0
50(tex2.tex): 10(ptr) Variable UniformConstant
51: 46(int) Constant 1
57: TypePointer Output 11(fvec4)
58(@entryPointOutput): 57(ptr) Variable Output
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
70: 17(FxaaTex) Load 39(t)
90: 6 Load 38(g_tInputTexture_sampler)
Store 43(flattenTemp) 70
91: 9 Load 42(g_tInputTexture)
63: 7(ptr) AccessChain 43(flattenTemp) 47
115: 26 SampledImage 91 90
64: 6 Load 63
116: 11(fvec4) ImageSampleExplicitLod 115 31 Lod 32
Store 45(tex2.smpl) 64
Store 78(@entryPointOutput) 116
65: 10(ptr) AccessChain 43(flattenTemp) 51
66: 9 Load 65
Store 50(tex2.tex) 66
72: 9 Load 37(g_tInputTexture)
73: 6 Load 36(g_tInputTexture_sampler)
74: 26 SampledImage 72 73
75: 11(fvec4) ImageSampleExplicitLod 74 31 Lod 32
Store 58(@entryPointOutput) 75
Return
Return
FunctionEnd
FunctionEnd
Test/baseLegalResults/hlsl.flattenOpaqueInitMix.vert.out
View file @
354a54c6
hlsl.flattenOpaqueInitMix.vert
hlsl.flattenOpaqueInitMix.vert
WARNING: AST will form illegal SPIR-V; need to transform to legalize
// Module Version 10000
// Module Version 10000
// Generated by (magic number): 80001
// Generated by (magic number): 80001
// Id's are bound by
6
0
// Id's are bound by
10
0
Capability Shader
Capability Shader
1: ExtInstImport "GLSL.std.450"
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main"
44
EntryPoint Vertex 4 "main"
68
Source HLSL 500
Source HLSL 500
Name 4 "main"
Name 4 "main"
Name 36 "g_tInputTexture_sampler"
Name 34 "FxaaTex"
Name 37 "g_tInputTexture"
MemberName 34(FxaaTex) 0 "smpl"
Name 44 "@entryPointOutput"
MemberName 34(FxaaTex) 1 "tex"
Decorate 36(g_tInputTexture_sampler) DescriptorSet 0
MemberName 34(FxaaTex) 2 "f"
Decorate 37(g_tInputTexture) DescriptorSet 0
Name 38 "g_tInputTexture_sampler"
Decorate 44(@entryPointOutput) Location 0
Name 41 "g_tInputTexture"
Name 68 "@entryPointOutput"
Decorate 38(g_tInputTexture_sampler) DescriptorSet 0
Decorate 41(g_tInputTexture) DescriptorSet 0
Decorate 68(@entryPointOutput) Location 0
2: TypeVoid
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
6: TypeSampler
6: TypeSampler
7: TypePointer UniformConstant 6
8: TypeFloat 32
8: TypeFloat 32
9: TypeImage 8(float) 2D sampled format:Unknown
9: TypeImage 8(float) 2D sampled format:Unknown
10: TypePointer UniformConstant 9
12: TypeVector 8(float) 4
12: TypeVector 8(float) 4
24: TypeSampledImage 9
24: TypeSampledImage 9
28: TypeVector 8(float) 2
28: TypeVector 8(float) 2
30: 8(float) Constant 0
30: 8(float) Constant 0
35: 8(float) Constant 1056964608
34(FxaaTex): TypeStruct 6 9 8(float)
36(g_tInputTexture_sampler): 7(ptr) Variable UniformConstant
37: TypePointer UniformConstant 6
37(g_tInputTexture): 10(ptr) Variable UniformConstant
38(g_tInputTexture_sampler): 37(ptr) Variable UniformConstant
43: TypePointer Output 12(fvec4)
40: TypePointer UniformConstant 9
44(@entryPointOutput): 43(ptr) Variable Output
41(g_tInputTexture): 40(ptr) Variable UniformConstant
43: 8(float) Constant 1056964608
67: TypePointer Output 12(fvec4)
68(@entryPointOutput): 67(ptr) Variable Output
4(main): 2 Function None 3
4(main): 2 Function None 3
5: Label
5: Label
53: 9 Load 37(g_tInputTexture
)
79: 6 Load 38(g_tInputTexture_sampler
)
54: 6 Load 36(g_tInputTexture_sampler
)
80: 9 Load 41(g_tInputTexture
)
55: 24 SampledImage 53 54
95: 24 SampledImage 80 79
58: 28(fvec2) CompositeConstruct 35 35
98: 28(fvec2) CompositeConstruct 43 43
59: 12(fvec4) ImageSampleExplicitLod 55 5
8 Lod 30
99: 12(fvec4) ImageSampleExplicitLod 95 9
8 Lod 30
Store
44(@entryPointOutput) 5
9
Store
68(@entryPointOutput) 9
9
Return
Return
FunctionEnd
FunctionEnd
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment