tests: add reproducer for Mesa issue 2946

Reviewed-by: Timothy Arceri's avatarTimothy Arceri <tarceri@itsqueeze.com>
Part-of: <!325>
parent 8e00690e
Pipeline #173894 passed with stages
in 3 minutes and 43 seconds
// [config]
// expect_result: pass
// glsl_version: 1.50
// check_link: true
// require_extensions: GL_AMD_vertex_shader_layer
// [end config]
//
// In this test we verify that gl_Layer can be part of gl_PerVertex
// redeclaration when GL_AMD_vertex_shader_layer is enabled.
#version 150
#extension GL_AMD_vertex_shader_layer : enable
out gl_PerVertex {
vec4 gl_Position;
int gl_Layer;
};
void main()
{
}
// [config]
// expect_result: pass
// glsl_version: 1.50
// check_link: true
// require_extensions: GL_AMD_vertex_shader_viewport_index
// [end config]
//
// In this test we verify that gl_ViewportIndex can be part of gl_PerVertex
// redeclaration when GL_AMD_vertex_shader_viewport_index is enabled.
// See https://gitlab.freedesktop.org/mesa/mesa/-/issues/2946
#version 150
#extension GL_AMD_vertex_shader_viewport_index : enable
out gl_PerVertex {
vec4 gl_Position;
int gl_ViewportIndex;
};
void main()
{
}
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