[Piglit] [PATCH] glsl-1.50: Test that no profile argument means core profile.

Kenneth Graunke kenneth at whitecape.org
Wed Jul 10 15:34:38 PDT 2013


On 07/10/2013 10:37 AM, Matt Turner wrote:
> ---
>   .../compiler/profiles/core-profile-default.vert          | 16 ++++++++++++++++
>   1 file changed, 16 insertions(+)
>   create mode 100644 tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert
>
> diff --git a/tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert b/tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert
> new file mode 100644
> index 0000000..179c607
> --- /dev/null
> +++ b/tests/spec/glsl-1.50/compiler/profiles/core-profile-default.vert
> @@ -0,0 +1,16 @@
> +// [config]
> +// expect_result: pass
> +// glsl_version: 1.50
> +// [end config]
> +
> +/* The GLSL 1.50 spec says
> + *   "If no profile argument is provided, the default is core."
> + */
> +#version 150
> +
> +void main() {
> +    /* gl_ClipVertex is deprecated and not available in GLSL 1.50 core, so
> +     * it should cause a compilation error.
> +     */
> +    gl_Position = gl_ClipVertex;
> +}

LGTM!

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>


More information about the Piglit mailing list