aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
AgeCommit message (Collapse)Author
2012-12-31glean: Drop TIFF (and PNG and ZLIB) dependencies.José Fonseca
Not actually necessary. rgbTriStrip test used it but it was just a proof of concept, never part of any test list. This greatly simplifies building piglit for Windows. Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-11-30gles2: Remove directory tests/gles2Chad Versace
This directory contained a single test, gles2_shader_runner, that was never used. It was a failed artifact from the time when we were scrambling to discover how to support GLES2 in piglit. Instead, GLES functionality has been added to the real shader runner, tests/shaders/shader_runner.c. In the future, any tests specific to GLES2 should go into the directory tests/spec/gles-2.0, just as we do for all other GL versions. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-09cmake: Prefix cmake options and feature macros with PIGLITChad Versace
Some cmake options and features macros had form USE_${feature}, others BUILD_${category}_TESTS. This patch consistently prefixes all such options and macros with PIGLIT. Piglit, be a good code citizen. Namespace your variables. This patch was created with find . -type f | xargs sed -i \ -e 's/\(^\|[^_]\)\(USE_\(GLX\|GLUT\|WAFFLE\|OPENGL\|OPENGL_ES1\|OPENGL_ES2\)\)\($\|[^_]\)/\1PIGLIT_\2\4/g' \ -e 's/\(^\|[^_]\)\(BUILD_\(CL\|GLX\|GLES1\|GLES2\)_TESTS\)\($\|[^_]\)/\1PIGLIT_\2\4/g' \ Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Tested-by: Paul Berry <stereotype441@gmail.com> Acked-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-09texline: Remove testChad Versace
The texline test did not probe any pixels and was not listed in all.tests. It was not a test at all. This patch also removes directory tests/mesa, because the utility functions defined there were only used by texline. CC: Eric Anholt <eric@anholt.net> Reviewed-by: Brian Paul <brianp@vmware.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-09-05cmake: Build OpenCL testsBlaž Tomažič
Build OpenCL tests to binaries with 'cl-' prefix. Each test type adds another prefix to it, for example Custom test has a 'cl-custom-' prefix. Signed-off-by: Blaž Tomažič <blaz.tomazic@gmail.com>
2012-06-28security/initialized-texmemory - test contents of unitialized texture memoryBrian Paul
This is the first of a new category of piglit tests that exercise things related to security. The first test, initialized-texmemory, creates a texture image with unspecified contents (pixels=NULL). We draw a polygon with the texture and see what we get. Ideally, we'd get a constant/black image and not some random VRAM data from another application or another user (like a window image). The OpenGL spec doesn't say that texture memory should be initialized in this situation so if the test fails we return "WARN" rather than "FAIL". Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-03-03don't write generated header to the source directoryDylan Noblesmith
It was impossible to have the source directory read-only. Also add the include_directories() directive for tests/util in just one place, under tests/, so that all subdirectories inherit it. A bunch of CMakeLists.txt files duplicate it, so delete those redundant include flags: sed -i -e "/^\t\${piglit_SOURCE_DIR}\/tests\/util/ d" \ `grep piglit_SOURCE_DIR -rl tests/ | grep "CMakeLists\.gl"`
2011-10-26oes_draw_texture: Basic functionality tests for this extensionChia-I Wu
This is the first GLESv1 tests. GL_OES_draw_texture is a GLESv1 specific extension. The tests are added to the newly created all_es1.tests. Changes since v1: - rename the file name to oes_draw_texture.c - rename the static variable glDrawTexiOES to piglit_glDrawTexiOES - add all_es1.tests for this (and future) GLESv1 tests Changes since v2: - Put the test in tests/spec/oes_draw_texture instead of tests/gles1. - Minor fixes to all_es1.tests Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2011-09-09cmake: add gles1 as a valid target APIChia-I Wu
This commit adds the infrastructure for writing GLES1 specific tests. Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
2011-05-13Make TIFF an optional dependency.José Fonseca
It's only used by glean, so no need to force linking against it everywhere.
2011-04-28hiz: Add utility functions for creating HiZ testsChad Versace
Eventually there will be over a dozen HiZ tests, so placing common functionality in a library will reduce a good hunk of code. Reviewed-By: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25gles2_shader_runner: Re-enable build of executableChad Versace
Apply fixes to gles2_shader_runner.c to get it to build. Then enable build in CMake files. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25piglit: Add header <piglit/gl_wrap.h>Chad Versace
A convenience header that includes the actual OpenGL headers, which are chosen according to the macro definitions USE_OPENGL and USE_OPENGL_ES2. Note: This belongs to a series that adds GLES2 support to Piglit. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25cmake: Temporarily disable building GLES2 targetsChad Versace
In order to add proper GLES2 support to the build system, the CMake files must undergo significant change. Disabling GLES2 targets is necessary in order to prevent breaking the build during that CMake upheaval. Note: This belongs to a series that adds GLES2 support to Piglit. Signed-off-by: Chad Versace <chad.versace@intel.com>
2011-02-25Add gles2parsertest to ease OpenGL ES 2.0 test case developmentShuang He
2011-02-25Add gles2_shader_runner to ease OpenGL ES 2.0 test case developmentShuang He
2010-08-30New testsuite for ARB_color_buffer_float (v2)Luca Barbieri
This in an updated version of the test I posted, now split into 8 tests sharing a common header file. It now features testing of multiple render targets and fog. Test output logs and results on GeForce 8xxx, GTX 2xx or ideally GTX 4xx with the proprietary drivers would be really welcome. The files are put in "spec/arb_color_buffer_float" with the idea of starting a convention of writing testsuites for each new extension to be implemented in Mesa, putting it in "spec/<extension_name>". The tests now fail on any bugs in the default mode. If "-xfail" is passed, then known bugs on ATI and nVidia will be ignored, and all tests will then succeed. The driver bugs don't seem due (solely) to hardware limitations, but may be due to software fallbacks being improperly implemented. There are two areas where the specification seems unclear, as far as I understand it. I'm not sure what the process to ask for clarification is, and suggestions would be welcome here. This first issue is whether, when fragment clamping is set to FIXED_ONLY and the FBO has some fixed-point and some floating-point buffers attached, gl_FragData[n] is never clamped, or is clamped only for the fixed point buffers. Note that while blending on fixed-point clamps the color anyway, alpha test and polygon smoothing happen before blending, and should be affected by whether gl_FragData[n] is clamped or not. From the OpenGL 4.1 spec, it seems that the intent is that fragment clamping does not depend on the target, especially because it can be bound dynamically due to user-defined varyings. None of the hardware I have access to supports such dishomogeneous FBOs, so I have no idea what the proprietary drivers do. Current nVidia cards might shed light on this. The second issue is whether disabling fragment clamping disables the clamping done before fog application in fragment shaders with ARB_fog_* options (or whether this is undefined) This happens in the fixed pipeline, but making it happen for shaders too would contradict the rationale of adding ARB_fog_* to shaders, which is to avoid recompilation. All the hardware I have access to has fixed function fog (all existing Radeons seem to have it), and here the disabling applies to fragment programs too, as a "naive" implementation would result in. Again, current nVidia cards might shed light on this.
2010-05-14Make EGL tests conditionalKristian Høgsberg
If EGL is not found, don't run the tests.
2010-05-14Add the start of an EGL test suite and a EGL_NOK_swap_region testKristian Høgsberg
2010-01-15glx-multithread: New test for GLX multithreaded rendering.Eric Anholt
2010-01-08CMake: Build mesa tests only on Linux.Vinson Lee
The mesa tests currently do not build under MSVC or on Mac OS.
2009-07-16Tests and framework for exercising the assembly shader compilerIan Romanick
2009-04-30Add a GLSL parser test runner.Eric Anholt
2009-04-23Add a test for drawing to and glReadPixels()ing from FBOs of various formats.Eric Anholt
2008-06-29New test: general/texgenNicolai Haehnle
2008-03-19Add a test for ARB_texture_cube_mapEric Anholt
This test has seen only limited testing. The GM945 driver fails in the expected way from code inspection. More concerning is that Mesa software appears to select a mipmap one level smaller than it should.
2008-02-21Move FindLine to shared code instead of cargo-culting it around.Eric Anholt
2007-03-24Initial commitNicolai Hähnle