-
Notifications
You must be signed in to change notification settings - Fork 863
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: SPV Remapper: add remapper test framework
- Loading branch information
steve-lunarg
committed
Aug 25, 2016
1 parent
4c3a7fd
commit a845641
Showing
52 changed files
with
3,067 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ set(LIBRARIES | |
OSDependent | ||
HLSL | ||
SPIRV | ||
SPVRemapper | ||
glslang-default-resource-limits) | ||
|
||
if(WIN32) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
remap.basic.dcefunc.frag | ||
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing. | ||
|
||
|
||
Linked fragment stage: | ||
|
||
|
||
// Module Version 10000 | ||
// Generated by (magic number): 80001 | ||
// Id's are bound by 19 | ||
|
||
Capability Shader | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint Fragment 4 "main" 14 16 | ||
ExecutionMode 4 OriginUpperLeft | ||
Source GLSL 450 | ||
Name 4 "main" | ||
Name 9 "dead_fn(" | ||
Name 14 "outf4" | ||
Name 16 "inf" | ||
2: TypeVoid | ||
3: TypeFunction 2 | ||
6: TypeFloat 32 | ||
7: TypeVector 6(float) 3 | ||
8: TypeFunction 7(fvec3) | ||
10: 6(float) Constant 0 | ||
11: 7(fvec3) ConstantComposite 10 10 10 | ||
12: TypeVector 6(float) 4 | ||
13: TypePointer Output 12(fvec4) | ||
14(outf4): 13(ptr) Variable Output | ||
15: TypePointer Input 6(float) | ||
16(inf): 15(ptr) Variable Input | ||
4(main): 2 Function None 3 | ||
5: Label | ||
17: 6(float) Load 16(inf) | ||
18: 12(fvec4) CompositeConstruct 17 17 17 17 | ||
Store 14(outf4) 18 | ||
Return | ||
FunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
remap.basic.dcevartype.frag | ||
ERROR: #version: ES shaders for Vulkan SPIR-V require version 310 or higher | ||
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing. | ||
ERROR: 1 compilation errors. No code generated. | ||
|
||
|
||
|
||
Linked fragment stage: | ||
|
||
ERROR: Linking fragment stage: Missing entry point: Each stage requires one "void main()" entry point | ||
|
||
SPIR-V is not generated for failed compile or link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
remap.basic.everything.frag | ||
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing. | ||
|
||
|
||
Linked fragment stage: | ||
|
||
|
||
// Module Version 10000 | ||
// Generated by (magic number): 80001 | ||
// Id's are bound by 24969 | ||
|
||
Capability Shader | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint Fragment 5663 "main" 4539 3773 | ||
ExecutionMode 5663 OriginUpperLeft | ||
8: TypeVoid | ||
1282: TypeFunction 8 | ||
13: TypeFloat 32 | ||
29: TypeVector 13(float) 4 | ||
666: TypePointer Output 29(fvec4) | ||
4539: 666(ptr) Variable Output | ||
650: TypePointer Input 13(float) | ||
3773: 650(ptr) Variable Input | ||
5663: 8 Function None 1282 | ||
24968: Label | ||
17486: 13(float) Load 3773 | ||
17691: 29(fvec4) CompositeConstruct 17486 17486 17486 17486 | ||
Store 4539 17691 | ||
Return | ||
FunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
remap.basic.none.frag | ||
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing. | ||
|
||
|
||
Linked fragment stage: | ||
|
||
|
||
// Module Version 10000 | ||
// Generated by (magic number): 80001 | ||
// Id's are bound by 20 | ||
|
||
Capability Shader | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint Fragment 4 "main" 15 17 | ||
ExecutionMode 4 OriginUpperLeft | ||
Source GLSL 450 | ||
Name 4 "main" | ||
Name 9 "dead_fn(" | ||
Name 15 "outf4" | ||
Name 17 "inf" | ||
2: TypeVoid | ||
3: TypeFunction 2 | ||
6: TypeFloat 32 | ||
7: TypeVector 6(float) 3 | ||
8: TypeFunction 7(fvec3) | ||
11: 6(float) Constant 0 | ||
12: 7(fvec3) ConstantComposite 11 11 11 | ||
13: TypeVector 6(float) 4 | ||
14: TypePointer Output 13(fvec4) | ||
15(outf4): 14(ptr) Variable Output | ||
16: TypePointer Input 6(float) | ||
17(inf): 16(ptr) Variable Input | ||
4(main): 2 Function None 3 | ||
5: Label | ||
18: 6(float) Load 17(inf) | ||
19: 13(fvec4) CompositeConstruct 18 18 18 18 | ||
Store 15(outf4) 19 | ||
Return | ||
FunctionEnd | ||
9(dead_fn(): 7(fvec3) Function None 8 | ||
10: Label | ||
ReturnValue 12 | ||
FunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
remap.basic.strip.frag | ||
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing. | ||
|
||
|
||
Linked fragment stage: | ||
|
||
|
||
// Module Version 10000 | ||
// Generated by (magic number): 80001 | ||
// Id's are bound by 20 | ||
|
||
Capability Shader | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint Fragment 4 "main" 15 17 | ||
ExecutionMode 4 OriginUpperLeft | ||
2: TypeVoid | ||
3: TypeFunction 2 | ||
6: TypeFloat 32 | ||
7: TypeVector 6(float) 3 | ||
8: TypeFunction 7(fvec3) | ||
11: 6(float) Constant 0 | ||
12: 7(fvec3) ConstantComposite 11 11 11 | ||
13: TypeVector 6(float) 4 | ||
14: TypePointer Output 13(fvec4) | ||
15: 14(ptr) Variable Output | ||
16: TypePointer Input 6(float) | ||
17: 16(ptr) Variable Input | ||
4: 2 Function None 3 | ||
5: Label | ||
18: 6(float) Load 17 | ||
19: 13(fvec4) CompositeConstruct 18 18 18 18 | ||
Store 15 19 | ||
Return | ||
FunctionEnd | ||
9: 7(fvec3) Function None 8 | ||
10: Label | ||
ReturnValue 12 | ||
FunctionEnd |
Oops, something went wrong.