perf/pixel-rate: new pixel throughput microbenchmark
[piglit.git] / tests / vulkan / shaders / gs-vertex-overflow.vk_shader_test
blobe07e8e812e70b8208296d6d1d13b408904fe6f9e
1 # Tests emitting more vertices than specified with max_vertices.
2 # Reproduces a hang with RADV and the (disabled by default) NGG path for
3 # geometry shaders.
5 [vertex shader]
6 #version 450 core
8 void main() {
9   gl_Position = vec4(0.0);
12 [geometry shader]
13 #version 450 core
15 layout (points) in;
16 layout (triangle_strip, max_vertices = 3) out;
18 void main() {
19     gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
20     EmitVertex();
22     gl_Position = vec4(1.0, 0.0, 0.0, 1.0);
23     EmitVertex();
25     gl_Position = vec4(1.0, 1.0, 0.0, 1.0);
26     EmitVertex();
27     EndPrimitive();
29     gl_Position = vec4(0.0, 1.0, 0.0, 1.0);
30     EmitVertex();
32     gl_Position = vec4(1.0, 1.0, 0.0, 1.0);
33     EmitVertex();
35     gl_Position = vec4(1.0, 0.0, 0.0, 1.0);
36     EmitVertex();
37     EndPrimitive();
40 [test]
41 draw arrays GL_POINTS 0 1