aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-01-16v2 - restructured approach to be data driven, as well asgles2Tom Gall
separating valid and invalid variations into separate tests. Tests glReadPixels specifically for OpenGL ES2 2.0. Covers a variety of formats and types, both valid and invalid.
2013-01-16Merge branch 'master' of git://anongit.freedesktop.org/git/piglitTom Gall
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-15Merge branch 'master' of git://anongit.freedesktop.org/git/piglitTom Gall
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>
2013-01-14ext_framebuffer_multisample-negative-readpixels: Remove unused variable.Vinson Lee
Fixes logically dead code defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-14arb_es2_compatibility: remove explicit 100x100 window sizeBrian Paul
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-01-14glsl: remove explicit 100x100 window sizeBrian Paul
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-01-14arb_map_buffer_alignment: remove explicit 100x100 window sizeBrian Paul
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-01-14arb_debug_output: remove explicit 100x100 window sizeBrian Paul
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-01-14arb_uniform_buffer_object: remove explicit 100x100 window sizeBrian Paul
Allows tests to run on Windows. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-01-14test/shaders: remove explicit 100x100 window sizesBrian Paul
Allows tests to run on Windows. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-01-14Add occlusion-query tests for various meta operations.Carl Worth
These tests invoke occlusion queries around the several meta-operations implemented within mesa. They are designed to demonstrate various bugs in the current implementation of mesa, (where meta operations either do or do not generate fragments as specified by the OpenGL specification). Reviewed-by: Eric Anholt <eric@anholt.net>
2013-01-14Add new test: occlusion_query_orderCarl Worth
Verifying that once one occlusion query has results, that all previous queries also have results available. (In particular, the final query includes not drawing.) Reviewed-by: Eric Anholt <eric@anholt.net>
2013-01-14Add new test: ext_timer_query-lifetimeCarl Worth
This is similar to the recently added occlusion_query_lifetime test, basically verifying that glQueryCounter (in addition to glBeginQuery) is also sufficient for transitioning a generated query name into a query object. Reviewed-by: Eric Anholt <eric@anholt.net>
2013-01-14Add new test: occlusion_query_lifetimeCarl Worth
This checks that glIsQuery returns the expected results throughout the lifetime of a query object, (not least of which, that glIsQuery returns false after glGenQueries and before glBeginQuery). Reviewed-by: Eric Anholt <eric@anholt.net>
2013-01-14Cleanup occlusion-query test to not require function pointers.Carl Worth
With the current piglit dispatch code, the distinction between things like glBeginQuery and glBeginQueryARB is taken care of already so the test can be simplified a bit. Reviewed-by: Eric Anholt <eric@anholt.net>
2013-01-14Make new tests/spec/arb_occlusion_query directoryCarl Worth
Moving the existing occlusion_query.c test from tests/general to the new directory. This creates a natural place to add additional occlusion-query tests according to the current naming scheme for piglit.
2013-01-14util/gl: squash "incompatible pointer type" warningTom Gall
In the newly added piglit_gen_ortho_uniform it introduced a warning due to float *[4] being passed instead of the expected const GLfloat * as the type of the 4th param. Change the array of floats to const GLfloat [4][4] and provide the cast. Fixes the GCC warning: tests/util/piglit-util-gl-common.c:547:2: warning: passing argument 4 of ‘glUniformMatrix4fv’ from incompatible pointer type [enabled by default] Signed-off-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2013-01-14shader_runner_gles2: Remove cast warningChad Versace
Removes the warning: shader_runner.c:1078:7: warning: assignment makes pointer from integer without a cast [enabled by default] Reviewed-by: Tom Gall <tom.gall@linaro.org> Tested-by: Tom Gall <tom.gall@linaro.org> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2013-01-14shader_runner_gles2: Remove unused variable warningsChad Versace
The function macros in shader_runner_gles_workarounds.h cause many unused variable warnings. The function macros have form #define glMapBuffer(...) UNDEFINED_FUNCTION(glMapBuffer, 0) and get expanded to the call unsupported_function("glMapBuffer", 0) Observe that the original arguments to glMapBuffer are unused. This patch fixes the warnings by changing the macro form to #define glMapBuffer(...) UNDEFINED_FUNCTION(glMapBuffer, 0, __VA_ARGS__) which gets expanded to the call unsupported_function("glMapBuffer", 0, __VA_ARGS__) Reviewed-by: Tom Gall <tom.gall@linaro.org> Tested-by: Tom Gall <tom.gall@linaro.org> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2013-01-14masked-clear: port of Glean's maskedClear test to piglitBrian Paul
Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-01-11Remove commen-continuation test.Carl Worth
This test was originally designed to verify that a comment line ending with a backslash would not be considered a line-continuation character, (since a shader has been seen in the wild with such a backslash and where interpreting the backslash as a line-continuation would cause compilation failure). However, with OpenGL 4.2 and GLES3, backslash as a line continuation character is now specified to operate globally. So this test is now invalid, and the correct result is that this shader should cause a compilation failure. [Note that Mesa does have support for a quirk that can disable the line continuation on an app-by-app basis with driconf configuation. But that's something that piglit itself can't easily test. Instead, Mesa now includes its own testing for that.]
2013-01-10stencil-wrap: Check and use results of all probed pixels.Vinson Lee
Fixes dead assignment bugs reported by Clang Static Analyzer. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-01-09Merge branch 'master' of git://anongit.freedesktop.org/git/piglitTom Gall
2013-01-09stencil-twoside: Check and use results of all probed pixels.Vinson Lee
Fixes dead assignment bugs reported by Clang Static Analyzer. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-09shader_runner: add glsl-es-1.00 sanity testTom Gall
Add tests/spec/glsl-es-1.00 directory and new execution/sanity.shader_test in that directory. Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Tom Gall <tom.gall@linaro.org>
2013-01-09shader_runner: add gles2 supportTom Gall
Add a number of GLES2 specific workarounds to shader_runner_gles_workarounds.h. Add CMakeLists.gles2 into shaders directory so that shader_runner is build when gles2 is selected. Add piglit-vbo.cpp to util/CMakeLists.gles2.txt. In tests/util/piglit-vbo.cpp add one small ifdef PIGLIT_USE_OPENGL_ES2, vertex_attrib_description::setup so the data_type GL_INTEGER for attributes is prevented from use and emits an error message. Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Tom Gall <tom.gall@linaro.org>
2013-01-09shader_runner.py: fix gles2 supportTom Gall
Fix shader_test.py so it uses shader_runner_gles2 when running a shader test with GL 2.0 es in the [required] section. Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Tom Gall <tom.gall@linaro.org>
2013-01-09gles2: add minmax testcaseTom Gall
Add minmax test based on values that can be queried as specified in chapter 6.2 of the OpenGL ES 2.0.25 spec. Small modification to tests/util/minmax-test.* so that functions which use GLint64 and GLuint64 types aren't compiled when building for OpenGL ES 2. Signed-off-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-01-09gles2: add invalid-es3-queries_gles2 to all.testsTom Gall
Also changes invalid-es3-quesies to follow conventions and be built as invalid-es3-queries_gles2 Signed-off-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-01-09bindfragdata-link-error: Fix WARN report for a PIGLIT_PASS result.Eric Anholt
By using the complain-loadly-if-link-error util function in the cases where we expect a link error, we ensured that this test could never report a pass in the summary.
2013-01-09depth-cube-map: Fix for airlied's reordering of cube_face_texcoords.Eric Anholt
While I'm here, also change which faces are expected where on the screen. Before it was expecting: -Y +Z -Z +X -X +Y But I think this makes more sense: -X -Y -Z +X +Y +Z
2013-01-09arb_uniform_buffer_object: Add new tests for GL_MAX_UNIFORM_BLOCK_SIZE.Eric Anholt
2013-01-09Add tests for glCompressedTex{Image,SubImage}3D().Paul Berry
Reviewed-by: Brian Paul <brianp@vmware.com> v2: Switch the desktop GL test to use S3TC so that the test can run on a greater variety of hardware. Use piglit_probe_rgba to be compatible with GLES3's glReadPixels restrictions.
2013-01-09util: Add compressed representations of grayscale images.Paul Berry
This patch adds compressed representations of uniform grayscale blocks to piglit, in the ETC1 and FXT1 compression formats. Although they don't exercise the full capabilities of these compression formats, they should be sufficient to create basic tests of compression functionality without having to rely on the GL implementation to do compression on the fly. Reviewed-by: Brian Paul <brianp@vmware.com> Acked-by: Eric Anholt <eric@anholt.net> v2: Add S3TC.
2013-01-09util: Add functions that provide glOrtho-like functionality.Paul Berry
This patch adds functions piglit_gen_ortho_uniform() and piglit_ortho_uniform(), which can be used to set up an orthographic projection when the legacy function glOrtho() is not available. The functions work exactly like piglit_gen_ortho_projection() and piglit_ortho_projection(), except that instead of programming the legacy projection matrix, they program an arbitrary uniform matrix. Reviewed-by: Brian Paul <brianp@vmware.com>
2013-01-09Test that loop unrolling properly infers loop bounds.Paul Berry
This patch introduces new vs and fs tests to provoke a bug in Mesa which caused loop bounds to be inferred incorrectly when the loop condition was expressed in an unusual way (e.g. "4 > i" instead of "i < 4"). Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-01-08Test that loop unrolling properly infers loop bounds.Paul Berry
This patch introduces new vs and fs tests to provoke a bug in Mesa which caused loop bounds to be inferred incorrectly when the loop condition was expressed in an unusual way (e.g. "4 > i" instead of "i < 4"). Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-01-07arb_es2_compatibility-releaseshadercompiler-ge7: test ↵Brian Paul
glReleaseShaderCompiler crash This tests exercises a Mesa crash found with Google Earth v7. Specifically, Google Earth is calling glReleaseShaderCompiler() between glCompileShader() and glLinkProgram(). It appears that glReleaseShaderCompiler() is freeing some data structures that are needed later by the linker. The test passes with NVIDIA's driver. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>