forked from KhronosGroup/glslang
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow compute derivative modes when the workgroup dimensions are spec…
… constants
- Loading branch information
1 parent
f7f0f30
commit 708d560
Showing
3 changed files
with
64 additions
and
11 deletions.
There are no files selected for viewing
33 changes: 29 additions & 4 deletions
33
Test/baseResults/spv.computeShaderDerivativesSpec.comp.out
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 |
---|---|---|
@@ -1,6 +1,31 @@ | ||
spv.computeShaderDerivativesSpec.comp | ||
ERROR: 0:5: 'derivative_group_quadsNV' : requires local_size_x and local_size_y to be multiple of two | ||
ERROR: 1 compilation errors. No code generated. | ||
// Module Version 10000 | ||
// Generated by (magic number): 8000b | ||
// Id's are bound by 12 | ||
|
||
|
||
SPIR-V is not generated for failed compile or link | ||
Capability Shader | ||
Capability ComputeDerivativeGroupQuadsNV | ||
Extension "SPV_NV_compute_shader_derivatives" | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint GLCompute 4 "main" | ||
ExecutionMode 4 LocalSize 1 1 1 | ||
ExecutionMode 4 DerivativeGroupQuadsNV | ||
Source GLSL 450 | ||
SourceExtension "GL_NV_compute_shader_derivatives" | ||
Name 4 "main" | ||
Decorate 7 SpecId 0 | ||
Decorate 8 SpecId 1 | ||
Decorate 11 BuiltIn WorkgroupSize | ||
2: TypeVoid | ||
3: TypeFunction 2 | ||
6: TypeInt 32 0 | ||
7: 6(int) SpecConstant 1 | ||
8: 6(int) SpecConstant 1 | ||
9: 6(int) Constant 1 | ||
10: TypeVector 6(int) 3 | ||
11: 10(ivec3) SpecConstantComposite 7 8 9 | ||
4(main): 2 Function None 3 | ||
5: Label | ||
Return | ||
FunctionEnd |
33 changes: 29 additions & 4 deletions
33
Test/baseResults/spv.computeShaderDerivativesSpec2.comp.out
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 |
---|---|---|
@@ -1,6 +1,31 @@ | ||
spv.computeShaderDerivativesSpec2.comp | ||
ERROR: 0:5: 'derivative_group_linearNV' : requires total group size to be multiple of four | ||
ERROR: 1 compilation errors. No code generated. | ||
// Module Version 10000 | ||
// Generated by (magic number): 8000b | ||
// Id's are bound by 12 | ||
|
||
|
||
SPIR-V is not generated for failed compile or link | ||
Capability Shader | ||
Capability ComputeDerivativeGroupLinearNV | ||
Extension "SPV_NV_compute_shader_derivatives" | ||
1: ExtInstImport "GLSL.std.450" | ||
MemoryModel Logical GLSL450 | ||
EntryPoint GLCompute 4 "main" | ||
ExecutionMode 4 LocalSize 1 1 1 | ||
ExecutionMode 4 DerivativeGroupLinearNV | ||
Source ESSL 320 | ||
SourceExtension "GL_NV_compute_shader_derivatives" | ||
Name 4 "main" | ||
Decorate 7 SpecId 0 | ||
Decorate 8 SpecId 1 | ||
Decorate 11 BuiltIn WorkgroupSize | ||
2: TypeVoid | ||
3: TypeFunction 2 | ||
6: TypeInt 32 0 | ||
7: 6(int) SpecConstant 1 | ||
8: 6(int) SpecConstant 1 | ||
9: 6(int) Constant 1 | ||
10: TypeVector 6(int) 3 | ||
11: 10(ivec3) SpecConstantComposite 7 8 9 | ||
4(main): 2 Function None 3 | ||
5: Label | ||
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