nv_compute_shader_derivatives: Test linker failures

The local_size can be set from different compute shaders, so we might
have invalid combinations of those and derivative arrangement.
Reviewed-by: 's avatarIan Romanick <ian.d.romanick@intel.com>
parent 4ee230cc
[require]
GL >= 4.5
GLSL >= 4.50
GL_NV_compute_shader_derivatives
[compute shader]
#version 450
layout(local_size_x = 5, local_size_y = 7) in;
[compute shader]
#version 450
#extension GL_NV_compute_shader_derivatives: enable
layout(derivative_group_linearNV) in;
void main() {}
[test]
link error
[require]
GL >= 4.5
GLSL >= 4.50
GL_NV_compute_shader_derivatives
[compute shader]
#version 450
layout(local_size_x = 9, local_size_y = 4) in;
[compute shader]
#version 450
#extension GL_NV_compute_shader_derivatives: enable
layout(derivative_group_quadsNV) in;
void main() {}
[test]
link error
[require]
GL >= 4.5
GLSL >= 4.50
GL_NV_compute_shader_derivatives
[compute shader]
#version 450
layout(local_size_x = 2, local_size_y = 7) in;
[compute shader]
#version 450
#extension GL_NV_compute_shader_derivatives: enable
layout(derivative_group_quadsNV) in;
void main() {}
[test]
link error
[require]
GL >= 4.5
GLSL >= 4.50
GL_NV_compute_shader_derivatives
[compute shader]
#version 450
#extension GL_NV_compute_shader_derivatives: enable
layout(derivative_group_quadsNV) in;
[compute shader]
#version 450
#extension GL_NV_compute_shader_derivatives: enable
layout(derivative_group_linearNV) in;
void main() {}
[test]
link error
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment