aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-01-23gles2: glslparser tests ported to glsl es 1.00glslTom Gall
2013-01-23gles2: glslparser tests ported to glsl es 1.00Tom Gall
2013-01-23gles2: glslparser tests ported to glsl es 1.00 from glsl 1.10Tom Gall
2013-01-23gles2: glslparser tests ported to glsl es 1.00 from glsl 1.10Tom Gall
2013-01-23gles2: glslparser tests ported to glsl es 1.00 from glsl 1.10Tom Gall
2013-01-23gles2: add glslparser tests inTom Gall
spec/glsl-es-1.00/compiler/assignment-operators ported to glsl es from spec/glsl-1.10.
2013-01-23gles2: add compiler tests for glsl-es-1.00. Ported from tests for 1.10.Tom Gall
2013-01-23glsl, gles2: add glsl2/frag tests for gles2Tom Gall
This is a set of trivial changes. In the appropriate set of tests/glslparsertests/glsl2/*.frag which are targeted for glsl_version 1.10 or 1.20, add glsles_version: 1.00 which identifies the test as appropriate for glsl es 1.0 which lines up with gles2.
2013-01-23glsl, gles2: add glsl2/vert tests for gles2Tom Gall
This is a set of trivial changes. In the appropriate set of tests/glslparsertests/glsl2/*.vert which are targeted for glsl_version 1.10 or 1.20, add glsles_version: 1.00 which identifies the test as appropriate for glsl es 1.0.
2013-01-23glsl, gles2: add shader/vert tests for gles2Tom Gall
This is a set of trivial changes. In the appropriate set of tests/glslparsertests/shaders/*.vert which are targeted for glsl_version 1.10 or 1.20, add glsles_version: 1.00 which identifies the test as also appropriate for glsl es 1.0.
2013-01-23glsl, gles2: add shader/frag tests for gles2Tom Gall
This is a set of trivial changes. In the appropriate set of tests/glslparsertests/shaders/*.frag which are targeted for glsl_version 1.10 or 1.20, add glsles_version: 1.00 which identifies the test as appropriate for glsl es 1.0 which lines up with gles2. CorrectVersion.V100.frag and CorrectVersion1.V100.frag are new specific for GLSL ES testing #version 100.
2013-01-23gles2, glsl: add gles2 support to glslparser testTom Gall
Add GLSLESParserTest class which runs the gles2/gles3 version of glslparsertest. Why is this needed? The current GLSLParserTest class doesn't know about the gles2/gles3 varient of glslparsertest. The versioning of glsl_version in the config section of frags and vert shaders is conceptually incompatible for the GLSL ES versions. GLSLESParserTest extends the GLSLParserTest. Through good OO, this keeps the new code to a minimum and shares a lot of the GLSLParserTest implementation. Why? Consider. GLSL ES version 1.00 is approx equal to GLSL 1.20. However there are situations where a testcase that will pass on GLSL 1.20 but will fail under GLSL ES 1.00. Ex: tests/glslparsertest/shaders/CorrectConstruct.vert Embedded structure definitions are not allowed in GLSL ES 1.00 but are perfectly legal in GLSL 1.10. For both GLSL and GLSL ES this is a good testcase. This creates a situation where version comparisons between verions 1.00, 1.10, 1.20, etc just isn't going to work and expected results can be different for the same testcase. To deal with this situation, GLSLESParserTest looks for glsles_version in the config section. If not found, the test is skipped. If found, this version is passed into the glsl es version of glslparsertest. glsles_expect_result is also added as an option entry in the config section. If it is not present the expect_result is the same for GLSL and GLSL ES. If present the glsles_expect_result is passed into the appropriate GLSL ES version of glslparsertest.
2013-01-23glsl: gles2: add version 100Tom Gall
This is a small change in two parts to repair support for gles2 by glslparsertest. To glslparsertest.c, add 100 into the list of versions the switch handles when passed from the command line instead of the default path. Next in piglit_init when version 100 is used, check for gles and if in use don't check for GL_ARB_ES2_compatibility. Rename the created testcase binary to be glslparsertest_${piglit_target_api} so it's consistant. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2013-01-21Add glsl-render-after-bad-attach to build and all.testsPaul Berry
This test was added back in April (b859d0c) but was never added to the build or all.tests.
2013-01-21texwrap: Report subtest results.Eric Anholt
v2: Leave printfs in place. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21arb_texture_buffer_object/formats: Report subtest results.Eric Anholt
v2: Leave printfs in place. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-colormask-formats: Report subtest results.Eric Anholt
v2: Leave printfs in place, get the name for the enum. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-storage-completeness: Fix doxygen name.Eric Anholt
Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-clear-formats: Report subtest results.Eric Anholt
v2: Leave printfs in place. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-storage-formats: Report subtest results.Eric Anholt
Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-storage-*: de-StudlyCaps.Eric Anholt
Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-storage-*: Use piglit_check_gl_error().Eric Anholt
Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-storage-*: Reindent to normal piglit style.Eric Anholt
Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-readpixels-depth-formats: Report subtest results.Eric Anholt
v2: Leave previous printfs in place. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-alphatest-formats: Report subtest results.Eric Anholt
v2: Leave previous printfs in place, get the name for the enum. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-blending-formats: Report subtest results.Eric Anholt
v2: Leave previous printfs in place, get the name for the enum. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21fbo-generate-mipmap-formats: Report subtest results.Eric Anholt
v2: Leave printfs in place. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21util: Allow varargs in reporting subtest results.Eric Anholt
We'll want this in GL tests where a subtest name will often be composed of a couple of strings. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21util: Make a macro for marking functions as printflike.Eric Anholt
This is the same as we have in Mesa. Reviewed-by: Carl Worth <cworth@cworth.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-21get-renderbuffer-internalformat: Skip testing unsupported enums.Eric Anholt
With the change to ban deprecated-format SNORM renderbuffers in Mesa, these now throw GL_INVALID_ENUM. Catch it and skip those subtests. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59072 Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-01-21tbo/formats: fix test to disconnect programDave Airlie
This test shouldn't be testing undefined behaviour. Signed-off-by: Dave Airlie <airlied@redhat.com>
2013-01-18glsl-fs-color-matrix: Check result of piglit_link_check_status.Vinson Lee
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-18attribute0: Check result of piglit_link_check_status.Vinson Lee
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-18fbo-drawbuffers2-color: test masked clearMarek Olšák
2013-01-18fbo-drawbuffers: test masked clearMarek Olšák
2013-01-18all.tests: split a plain test name into an array of argumentsMarek Olšák
2013-01-17glsl-mat-attribute: Use result of link status check.Vinson Lee
Fixes unchecked return value defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-16Accept array uniform names with or without [0] from glGetActiveUniformIan Romanick
This is required by OpenGL ES 3.0 and desktop OpenGL 4.2. Previous version were ambiguous. Previously these tests failed on NVIDIA's closed-source driver (version 304.64) with the error messages: 0: f1 loc=0 size=1 type=0x1406 1: f2 loc=1 size=1 type=0x1406 2: s.a loc=2 size=1 type=0x1406 3: s.b loc=3 size=1 type=0x1406 4: s.c loc=4 size=1 type=0x1406 5: s.d loc=5 size=1 type=0x1406 6: v[0] loc=6 size=3 type=0x8b52 getuniform-02: wrong type for 'v' (found 0x8b52, expected 0x1406) and Unexpected max active uniform length (saw 9, expected 6) Unexpected active uniform length (saw 8, expected 5) for "color[0]" With these changes, both tests pass. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2013-01-16shader_runner: Alter GL/GLSL ES version requirement syntax.Stuart Abercrombie
The current syntax isn't compatible with the same shader_test supporting GL and GLES in the future. Modify existing GL ES tests to use the new syntax, and remove explicit #version directives, which will instead be inserted based on GLSL >= requirements. v2 Added check for trailing chars. Formatting. Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Tom Gall <tom.gall@linaro.org>
2013-01-15texelFetch: Fix incorrect sizeof.Vinson Lee
Fixes sizeof not portable defect reported by Coverity. Fixes allocator sizeof operand mismatch bug reported by Clang Static Analyzer. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-15MSAA tests: only require GL2.1 with ARB_fbo and ARB_vaoMarek Olšák
Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15ext_framebuffer_multisample/formats: don't try invalid renderbuffer formatsMarek Olšák
Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15ext_framebuffer_multisample/formats: only create GLSL 1.30 shaders with GL3Marek Olšák
Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15MSAA tests: don't use glClearBufferMarek Olšák
Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15MSAA tests: port all GLSL shaders to GLSL 1.20Marek Olšák
v2: changed +1 to +4 per Paul Berry's review. Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15all.tests: test 6x MSAAMarek Olšák
This mode is supported by R300-R500 GPUs. Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15generated_tests: generate determinant tests for GLSL 1.50Dave Airlie
This generates tests via the numpy stuff for determinant built-in found in GLSL 1.50. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15tests: add glsl-1.50 to test listDave Airlie
Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15glsl-1.50: add simple sanity testDave Airlie
this just ports the basic sanity test from GLSL 3.00 ES to GLSL 1.50 Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
2013-01-15glsl-1.50: add no statement before first case compiler testDave Airlie
This is ported from the GLSL 3.00 ES tests, since GLSL 1.50 has the same change. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>