[Piglit] [PATCH 2/2] arb_tessellation_shader: test tes interaction with fixed function fragment shader

Marek Olšák maraeo at gmail.com
Thu Jun 21 04:19:32 UTC 2018


For the series:

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Sun, Jun 17, 2018 at 10:46 PM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> ---
>  .../compatibility/tcs-tes-ff-frag.shader_test | 63 +++++++++++++++++++
>  1 file changed, 63 insertions(+)
>  create mode 100644 tests/spec/arb_tessellation_shader/execution/compatibility/tcs-tes-ff-frag.shader_test
>
> diff --git a/tests/spec/arb_tessellation_shader/execution/compatibility/tcs-tes-ff-frag.shader_test b/tests/spec/arb_tessellation_shader/execution/compatibility/tcs-tes-ff-frag.shader_test
> new file mode 100644
> index 000000000..94d1cebd8
> --- /dev/null
> +++ b/tests/spec/arb_tessellation_shader/execution/compatibility/tcs-tes-ff-frag.shader_test
> @@ -0,0 +1,63 @@
> +[require]
> +GL COMPAT >= 3.2
> +GLSL >= 1.50
> +GL_ARB_tessellation_shader
> +
> +[vertex shader]
> +#version 150 compatibility
> +
> +in vec4 piglit_vertex;
> +
> +void main()
> +{
> +   gl_Position = piglit_vertex;
> +}
> +
> +[tessellation control shader]
> +#version 150 compatibility
> +#extension GL_ARB_tessellation_shader: require
> +
> +layout(vertices = 3) out;
> +
> +out vec4 color[];
> +
> +void main() {
> +       gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
> +       gl_TessLevelOuter = float[4](1.0, 1.0, 1.0, 0.0);
> +       gl_TessLevelInner = float[2](0.0, 0.0);
> +       color[gl_InvocationID] = vec4(0, 1, 0, 1);
> +}
> +
> +[tessellation evaluation shader]
> +#version 150 compatibility
> +#extension GL_ARB_tessellation_shader: require
> +
> +layout(triangles) in;
> +
> +in vec4 color[];
> +
> +void main() {
> +       gl_Position = gl_in[0].gl_Position * gl_TessCoord[0]
> +                   + gl_in[1].gl_Position * gl_TessCoord[1]
> +                   + gl_in[2].gl_Position * gl_TessCoord[2];
> +
> +       gl_FrontColor = color[0] * gl_TessCoord[0]
> +                  + color[1] * gl_TessCoord[1]
> +                  + color[2] * gl_TessCoord[2];
> +}
> +
> +[vertex data]
> +piglit_vertex/float/2
> +-1.0 -1.0
> + 1.0 -1.0
> +-1.0  1.0
> +-1.0  1.0
> + 1.0 -1.0
> + 1.0  1.0
> +
> +[test]
> +clear color 0.1 0.1 0.1 0.1
> +clear
> +patch parameter vertices 3
> +draw arrays GL_PATCHES 0 6
> +probe all rgba 0.0 1.0 0.0 1.0
> --
> 2.17.1
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/piglit


More information about the Piglit mailing list