Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
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>
|
|
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>
|
|
|
|
Reviewed-by: Paul Berry <stereotype441@gmail.com>
|
|
Reviewed-by: Paul Berry <stereotype441@gmail.com>
|
|
Reviewed-by: Paul Berry <stereotype441@gmail.com>
|
|
Reviewed-by: Paul Berry <stereotype441@gmail.com>
|
|
v2: changed +1 to +4 per Paul Berry's review.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
|
|
This mode is supported by R300-R500 GPUs.
Reviewed-by: Paul Berry <stereotype441@gmail.com>
|
|
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>
|
|
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
|
|
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>
|
|
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>
|
|
Fixes logically dead code defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Allows tests to run on Windows.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
Allows tests to run on Windows.
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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.
|
|
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>
|
|
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>
|
|
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>
|
|
Reviewed-by: José Fonseca <jfonseca@vmware.com>
|
|
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.]
|
|
Fixes dead assignment bugs reported by Clang Static Analyzer.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
|
|
|
|
Fixes dead assignment bugs reported by Clang Static Analyzer.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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.
|
|
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
|
|
|
|
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.
|
|
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.
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|