[Piglit] [PATCH] glsl-1.50: Add test for geometry shader with unused outputs
Marek Olšák
maraeo at gmail.com
Tue Oct 2 21:12:44 UTC 2018
Pushed, thanks!
Marek
On Wed, Sep 19, 2018 at 3:09 PM Józef Kucia <joseph.kucia at gmail.com> wrote:
>
> Reproduces a GPU hang on radeonsi.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107857
> Signed-off-by: Józef Kucia <joseph.kucia at gmail.com>
> ---
> .../geometry/gs-point-unused-outputs.shader_test | 40 ++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test
>
> diff --git a/tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test b/tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test
> new file mode 100644
> index 000000000000..4001e9749575
> --- /dev/null
> +++ b/tests/spec/glsl-1.50/execution/geometry/gs-point-unused-outputs.shader_test
> @@ -0,0 +1,40 @@
> +[require]
> +GLSL >= 1.50
> +
> +[vertex shader]
> +#version 150
> +
> +in vec4 pos;
> +out vec4 color;
> +
> +void main() {
> + gl_Position = pos;
> + color = vec4(1, 1, 1, 1);
> +}
> +
> +[geometry shader]
> +#version 150
> +
> +layout (points) in;
> +layout (points, max_vertices = 1) out;
> +
> +in vec4 color[];
> +out vec4 out_position;
> +out vec4 out_color;
> +
> +void main() {
> + out_position = gl_in[0].gl_Position;
> + out_color = color[0];
> + EmitVertex();
> +}
> +
> +[vertex data]
> +pos/float/4
> +1.0 1.0 1.0 1.0
> +1.0 1.0 1.0 1.0
> +
> +[test]
> +clear color 1 1 1 1
> +clear
> +
> +draw arrays GL_POINTS 0 2
> --
> 2.16.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit
More information about the Piglit
mailing list