AgeCommit message (Collapse)Author
2013-03-29arb_texture_query_lod: Test textureQueryLOD with lod-biasing.Matt Turner
v2: Use textureQueryLOD instead of textureQueryLOD.
2013-03-29shader_runner: Add lod_bias option to texparameter.Matt Turner
2013-03-29arb_texture_query_lod: Test textureQueryLOD with no mipmapping.Matt Turner
v2: Use textureQueryLOD instead of textureQueryLOD.
2013-03-29arb_texture_query_lod: Test textureQueryLOD with nearest filtering.Matt Turner
v2: Use textureQueryLOD instead of textureQueryLOD.
2013-03-29shader_runner: Add 'draw rect tex'Matt Turner
Same as draw rect but allows you to pass tex coordinates.
2013-03-29glsl-4.00/ARB_texture_query_lod: Generate compiler tests for built-in functionsMatt Turner
For each sampler data type, generate a test for (vertex, fragment) shader; (glsl-4.00, glsl-1.30 + ARB_texture_query_lod). The vertex shader tests confirm that textureQueryLOD is not available in the the vertex shader. v2: Generate textureQueryLOD if api is ARB_texture_query_lod.
2013-03-28arb_texture_multisample: add new negative-max-samples testChris Forbes
This covers the sample count limits for both renderbuffers and multisample textures, when ARB_texture_multisample is supported. Skips if ARB_internalformat_query is supported, since that extension allows the overall sample count limits to be exceeded on a per-internalformat basis. V2: - Emit a useful message when skipping. V3: - Style nits Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-03-28ext_framebuffer_multisample: skip negative-max-samplesChris Forbes
If ARB_texture_multisample or ARB_internalformat_query are supported, the limits and/or errors generated are different, so skip this test. V2: - Emit a useful message when skipping. V3: - Indentation Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-03-26primgen: new test for PRIMITIVES_GENERATED queryMarek Olšák
v2: cosmetic changes as suggested by Eric
2013-03-25util: move #define GLXBadProfileARB from .c file to .h fileBrian Paul
Some of the ES tests check for this error code. If the installed glxproto.h file isn't new enough this symbol may be missing and compilation will fail. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-03-24glsl-fs-main-return-conditional: Test for using return in mainRoland Scheidegger
Similar to glsl-fs-main-return (and glsl-vs-main-return), this is testing using return in main. Contrary to the these other tests, this hits both the cases where the return path is and is NOT taken (the gallivm code got it wrong and always did an early exit which got unnoticed by the existing tests, see https://bugs.freedesktop.org/show_bug.cgi?id=62357). v2: use mod() instead of integer arithmetic suggested by Ian Romanick. This gets rid of the glsl 1.30 requirement. And do minor simplifications. Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2013-03-22shader_runner: remove explicit #version from outerProduct generated tests.Stuart Abercrombie
It will be added based on the GLSL requirement instead. Also make it clearer that these shader_test files are automatically generated. Same number of passes on Sandy Bridge running all.tests without glean. v2: Add missing comment # Signed-off-by: Stuart Abercrombie <sabercrombie@chromium.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-22glsl-1.50: add complex VS+FS interface blocks execution testJordan Justen
This test provides a complex test of using interface blocks. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
2013-03-22glsl-1.50: add more negative tests for interface block linkingJordan Justen
A few tests to make sure that interface blocks are defined the same during intrastage and interstage linking. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Stuart Abercrombie <sabercrombie@chromium.org>
2013-03-22texelFetch: require ALPHA in the visualDave Airlie
VISUAL_RGBA is apparantly lies
2013-03-20glsl-1.40: Add a simple test of math on uniform buffer loads.Eric Anholt
Catches an assertion failure/rendering failure in i965.
2013-03-20GL_ARB_fragment_program/sparse-samplers: Test for a bug in i965.Eric Anholt
2013-03-20Add tests/spec/glsl-es-1.00/execution/maximums shader testsTom Gall
Adds gl_MaxCombinedTextureImageUnits.shader_test gl_MaxDrawBuffers.shader_test gl_MaxFragmentUniformVectors.shader_test gl_MaxTextureImageUnits.shader_test gl_MaxVaryingVectors.shader_test gl_MaxVertexAttribs.shader_test gl_MaxVertexTextureImageUnits.shader_test gl_MaxVertexUniformVectors.shader_test These check the built-in constants of the same name from section 7.4 of the glsl es 1.0.17 spec. v2: squash patch, address one by one spec reference. Signed-off-by: Tom Gall <tom.gall@linaro.org> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-03-20glx_arb_create_context: Remove unused variables.Rico Schüller
Signed-off-by: Brian Paul <brianp@vmware.com>
2013-03-20glean/tfpexceptions: disable unused print_float() functionRico Schüller
It's only called from main(), which was already disabled. Signed-off-by: Brian Paul <brianp@vmware.com>
2013-03-19glx-query-drawable: Remove unused window variable.Rico Schüller
Signed-off-by: Brian Paul <brianp@vmware.com>
2013-03-19Fix etc2 test for format=COMPRESSED_R11_EACAnuj Phogat
waffles-decompressed-etc2-r11-64x32-miptree.ktx contains per pixel RGBA data generated by ericsson's etcpack tool. While generating decompressed image for COMPRESSED_R11_EAC format, RED color data for each pixel is copied to GREEN and BLUE channels as well. Using this image for texturing in OpenGL ES 3.0 (internalFormat=GL_R8) causes GL_INVALID_OPERATION. This is because glTexImage2D() in GL ES 3.0 doesn't allow internalFormat = GL_R8 with format= GL_RGBA. To workaround this issue use internalFormat = GL_RGBA and mask all color channels except Red. Other option is to edit the waffles-decompressed-etc2-r11-64x32-miptree.ktx file and set all GREEN, BLUE components to zero. Considering the hassle involved in editing image file, I won't prefer that. This fixes the piglit failure on gles3 with COMPRESSED_R11_EAC format. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
2013-03-19fbo-clear-formats: clean up error handlingBrian Paul
Use piglit_check_gl_error(). Note: we're getting an INVALID_OPERATION error from glBlitFramebuffer() with NVIDIA's driver. That'll be investigated/fixed separately. At least the test now reports FAIL instead of dying on an assertion. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-19rg-teximage: remove large stack allocationsBrian Paul
Don't allocate 1MB arrays on the stack. Use heap allocations instead. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-19texunits: clean-up GL error checking codeBrian Paul
Use piglit_check_gl_error(). Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-19texunits: increase size of arrays to fix crashBrian Paul
NVIDIA's later GPUs/drivers report 192 combined texture units. This causes us to read outside the too-small arrays and segfault. Increase the array sizes and add a check for the future. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2013-03-18add Python Mako module to the list of prerequisitesBrian Paul
2013-03-14depthstencil-render-miplevels: Add test for size 273.Paul Berry
When a mipmapped depth texture's size satisfies size > 1 and (size % 16) == 1, this causes miplevel 1 to have a size that is a multiple of 8, but not to be aligned on a multiple of 8 boundary. This turns out to be an important corner case for the i965 driver. Note: in an ideal world, I'd modify depthstencil-render-miplevels to simply test every possible buffer size from 1 to some reasonably large size (perhaps 256), but this would produce an impractically large number of test cases. So instead I'm just testing the sizes that have been known to cause problems.
2013-03-14Eliminate code duplication in all.tests for depthstencil-render-miplevelsPaul Berry
No functional change. Reviewed-by: Eric Anholt <eric@anholt.net>
2013-03-12Plug the built-in test generator to the CL test list [v2]Aaron Watry
v2: - Generate tests in the generated_tests directory tree at compile time
2013-03-12Add a python generator for integer builtin function tests [v2]Aaron Watry
Functions tested: abs, abs_diff, add_sat, hadd, rhadd, clz, clamp, mad_hi, mad_sat, max, min, mul_hi, rotate, sub_sat, upsample, mad24, mul24 Data Types tested: char, uchar, short, ushort, int, uint, long, ulong Sizes tested: Scalar, Vector sizes 2/4/8/16 v2: - Move file into generated_tests and rename to generate-cl-int-builtins.py - Generate tests in cl/builtin/int (creating dir if necessary)
2013-03-11fbo-maxsize: use piglit_get_gl_enum_name()Brian Paul
2013-03-11fbo-maxsize: minor test improvementsBrian Paul
Clear the large FBO to a non-black color and probe for it in the final test. This uncovers a bug in Mesa's llvmpipe driver where we ran out of bin commmand memory and skipped some tiles, leaving them black. Setting the clear color to white (and actually clearing the FBO) helps to detect that.
2013-03-11framework: document return value of ExecTest::run()Brian Paul
2013-03-11framework: add a few more stderr strings to ignoreBrian Paul
2013-03-10Move re.compile for regex into CoreDylan Baker
Move the re.compile into the core.Enivironment constructor, which reduces code duplication. It also allows us to pass environment data on initilization of the object, rather that having edit it's attributes individually. V2: - Does not remove deprecated options, only marks them as such V3: - Fixes deperecated warning for tests from V2 always being triggered Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-10Replaces getopt with argparseDylan Baker
This change gets us cleaner, more readable argument parsing code. Another advantage of this approach is that it automatically generates help menus, which means options will not be implemented without a help entry (like --resume) V2: - Does not remove deprecated options, only marks them as deprecated V3: - Fixes deprecated warning for tests from V2 always being triggered Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-10Bumps python required version to 2.7Dylan Baker
This change is in preparation for the next patch that replaces getopt with argparse. Argparse is only available in python 2.7+ and 3.2+. One concern with this change is the availability of Python 2.7 on non-Linux platforms, however: - OSX 10.8 ships with python 2.7.2 - OSX 10.7.4 ships with python 2.7.1 - 2.7.3 is available for windows V2: - Splits this change from the next patch (Replaces getopt with argparse) Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-10piglit-print-commands.py: Drop dead resume codeDylan Baker
This program does not support resume, but has some code copied from piglit-run.py for resuming interupted runs, so drop it. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-10piglit-run.py: Add --resume to the help menuDylan Baker
This option was implemented, however, it was not added to the help menu, meaning that a user needed to know that it existed before they could even attempt to use it. Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-10piglit-run.py: Replace Piglit's --concurent flag with --no-concurrencyDylan Baker
Since piglit defaults to using concurrency, and since concurrency is generally the desired behavior, it seems more appropriate to have a flag that turns off concurrency than one that takes an argument to set it on or off. V2: - Leaves --concurrency option, but marks it as deprecated Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-10Change --tests to --include-testsDylan Baker
Excluding tests already uses a similar syntax (--exclude-tests), so this is more consistent. V2: - Leaves --tests option, but marks it as deprecated Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-03-09oes_compressed_etc2_texture-miptree: Fix build.José Fonseca
Mimic others CMakeLists.gl.txt
2013-03-08Enable etc2 tests on gl contexts that support GL_ARB_ES3_compatibility extensionAnuj Phogat
V2: Enable the test to choose core/compat GL context at run time. Add GL version of test to all.tests. Use VAO to enable the test run on core context. Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-03-08glx_arb_create_context: Add current-no-framebuffer testAdam Jackson
Signed-off-by: Adam Jackson <ajax@redhat.com>
2013-03-06glsl-1.30: add basic test for testing textureOffset functionality.Roland Scheidegger
This is pretty rough and doesn't really test all that much (just textureOffsetLod, but there's other texturing functions with offsets), doesn't test different wrap modes, NPOT sizes etc., but there's no other test using "ordinary" texture opcodes and texel offsets, so it's a start (and in fact it exposed a bug in the mesa state tracker). Tested with llvmpipe (pass) and softpipe (fail) which is as expected - hopefully the math is ok... Inspired from fs-texelFetchOffset. v2: some minor comment and code fixes Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-03-03arb_texture_multisample: Avoiding C99-style struct initializers.José Fonseca
In order to fix the build on MSVC, which does not support them.
2013-03-03arb_texture_multisample: add new test for errorsChris Forbes
Tests that glFramebufferTextureLayer produces the correct error for layer < 0 when used with GL_TEXTURE_2D_MULTISAMPLE_ARRAY. This was overlooked in the initial mesa implementation of ARB_texture_multisample, and crashed deep in the driver instead. V3: - Don't set the window size, we don't care. V4: - Add missing copyright notice. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
2013-03-03arb_texture_multisample: add new targets to texelFetchChris Forbes
Allows verification of texelFetch with all six flavors of MS sampler. - Put lod/sample_index in the fourth channel of the texture, so we can verify that the correct lod/sample was sampled. - For multisample targets, render the test pattern rather than uploading it. GL won't let us do a direct upload into these texture targets, and the alternative (upload to a staging texture; copy to target) is even messier. - Accept sample count as an extra parameter after sampler - Add existing swizzle option to usage string - Use smaller formats for multisample tests, to avoid running into some hardware limits. This replaces the earlier arb_texture_multisample-texel-fetch-execution and arb_texture_multisample-texel-fetch-execution-array tests, and is much more thorough (it showed Gen7 was still messed up :( !) V3: - Increase window height so we can test 8x. - Don't break the format-based extension checks. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
2013-03-03arb_texture_multisample: add new sampler targets to textureSizeChris Forbes
Covers use of the textureSize() glsl builtin with multisample samplers Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>