From: Dave Airlie <[email protected]> Page 10/11 of the GLSL 1.50 spec declare optional profile arguments core and compatibiltiy, this test checks the core argument is accepted after the version. It also checks that GL_core_profile is defined to 1 as stated on page 11 as well.
Signed-off-by: Dave Airlie <[email protected]> --- tests/spec/glsl-1.50/compiler/profile-core.frag | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/spec/glsl-1.50/compiler/profile-core.frag diff --git a/tests/spec/glsl-1.50/compiler/profile-core.frag b/tests/spec/glsl-1.50/compiler/profile-core.frag new file mode 100644 index 0000000..f3c5ac6 --- /dev/null +++ b/tests/spec/glsl-1.50/compiler/profile-core.frag @@ -0,0 +1,10 @@ +// [config] +// expect_result: pass +// glsl_version: 1.50 +// [end config] +#version 150 core + +int func() +{ + return GL_core_profile; +} -- 1.8.1 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
