aboutsummaryrefslogtreecommitdiff
path: root/tests/texturing
AgeCommit message (Collapse)Author
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-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-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-04getteximage-targets: test glGetTexImage with all texture targets (v2)Marek Olšák
2013-01-01copyteximage: test packed depth stencil formatsMarek Olšák
2012-12-19getteximage-formats: print keyboard usage when not running in auto modeBrian Paul
2012-12-13getteximage-formats: Set pass to true for unsupported formats.Vinson Lee
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-12-11texelFetch: Ensure offset_arg is initialized.Vinson Lee
Fixes uninitialized pointer read defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-12-11max-texture-size: Fix memory leak.Vinson Lee
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-12-09texwrap: Add default cases with asserts.Vinson Lee
Fixes uninitialized pointer read defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-12-09getteximage-formats: Ensure texel is initialized.Vinson Lee
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-12-09texelFetch: Ensure level_image is initialized.Vinson Lee
Fixes uninitialized pointer read defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-12-09max-texture-size: Do not allocate memory for an unexpected target.Vinson Lee
Fixes uninitialized scalar variable defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-12-10texelFetch: fix to run on gl 3.1 / core contexts.Dave Airlie
ported from textureSize Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-30util/gl: Kill shader wrapper functionsChad Versace
This patch kills the wrapper functions defined in piglit-shader.h for GL. They are rendered obsolete by piglit-dispatch. A subset of the wrappers are kept for GLES1 and GLES2. - All GLES1 wrappers are kept and are renamed to match the core GL names. That is, piglit_$func is renamed to gl$func. As before, the wrappers simply raise an assertion failure because GLES1 does not suppport shaders. - The subset of GLES2 wrappers that raise an assertion, because the function is not supported on GLES2, are also kept and likewise renamed. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
2012-11-16teximage-errors: remove config.window_width/height linesBrian Paul
So the test isn't skipped (with "warn" result) on Windows.
2012-11-14textureSize: Add support for running with core GL.Eric Anholt
This lets the textureSize tests for TBOs run on i965. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-14util: Kill macro glewInitChad Versace
No test actually called glewInit(), because piglit-dispatch #define'd it to piglit_dispatch_default_init(). This patch removes the macro and replaces each call to glewInit() with piglit_dispatch_default_init(). Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-09cubemap-shader: add a cubemap test that checks for lod related issuesDave Airlie
While adding cube map arrays to r600g I noticed no test actually tested whether the explicit lod or lod bias on cubemaps was actually being used. This test is a variant on the cubemap test that contains 3 variants, plain cubemap with shader, cubemap sampling with lod bias cubemap sampling with explicit lod. This test currently fails on r600g due to the bug, which I shall fix soon. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-11-06texturing: remove config.window_width/height assignmentsBrian Paul
Use the default window size. No regressions seen with new size. Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-11-06lodclamp-between: set window size to 200x200Brian Paul
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-31crossbar: Replace strtof with strtod.Vinson Lee
MSVC does not have strtof. Signed-off-by: Vinson Lee <vlee@freedesktop.org>
2012-10-31cmake: Build crossbar on all platforms.Vinson Lee
crossbar was converted to piglit framework in commit 968fb70497d37cf0a51fa9d8485287b63d33bf7e. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-26texwrap: require ARB_texture_float for float RG formatsMarek Olšák
2012-10-25tex3d-depth1: require GL 1.3Marek Olšák
2012-10-25tex-border-1: require GL 1.3Marek Olšák
2012-10-15texwrap: Avoid FLOAT/UINT/INT symbols.José Fonseca
As these clash with symbols from windows.h. Quick fix to get Windows builds going again.
2012-10-15texwrap: rework the testMarek Olšák
- test all formats in an extension category in the automatic mode like the fbo tests do unless it's overriden on the command line, e.g.: ./texwrap GL_ARB_texture_float GL_RGBA32F THE INTERACTIVE MODE IS STILL IMPORTANT FOR THE OTHER OPTIONS THOUGH!!! - divide the border color test entries in all.tests into the unswizzled and swizzled ones - remove testing of the deprecated texture border - reindent the code - test sRGB texture formats (the compressed ones too) - test all integer formats (EXT_texture_integer, ARB_texture_rg, ARB_texture_rgb10_a2ui) - test the texture border color with integer formats
2012-10-09util: Add fields to piglit_gl_test_config for listing supported GL flavors (v2)Chad Versace
This patch has 3 interrelated components. 1) Add the following fields to piglit_gl_test_config: supports_gl_core_version supports_gl_compat_version supports_gl_es1 supports_gl_es2 These allow a test to specify what GL flavors under which it can run. For details, see the documentation for struct piglit_gl_test_config. 2. In tests/util/piglit-framework-gl, implement support for the new fields. 3. In each GL test source, add one of the new fields to the PIGLIT_GL_TEST_CONFIG_BEGIN/END block. For GLES1 tests, add `supports_gl_es1 = true`. For GLES2 tests, add `supports_gl_es2 = true`. For desktop GL tests, add `supports_gl_compat_version = 10`. For an explanation of why version 1.0 is used for desktop GL tests, see the documentation for supports_gl_compat_version. No tests yet require a GL core context. v2: Replace silly sum of booleans with a logical conjuction. For Anholt. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> 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-09util: Convert GL tests to use PIGLIT_GL_CONFIG_BEGIN/ENDChad Versace
This patch has two components. 1. In tests/util/piglit-framework-gl.h, replace the definition of PIGLIT_GL_TEST_MAIN with the macro block PIGLIT_GL_CONFIG_BEGIN/END. The macro PIGLIT_GL_TEST_MAIN was very restrictive. It was a fixed-arity macro function that allowed a test to set only set 3 values: window width, height, and visual. It would have been difficult to shoehorn optional test attributes into such a fixed-arity macro function. Allowing optional attributes is an essential feature because a following commit adds optional fields to struct piglit_gl_test_config. The macro block PIGLIT_GL_TEST_CONFIG_BEGIN/END is more flexible. Within it the test is allowed to arbitrarilty modify the piglit_gl_test_config structure. 2. In each GL test source, replace PIGLIT_GL_TEST_MAIN with a PIGLIT_GL_TEST_CONFIG_BEGIN/END block. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> 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-09tests: Remove direct includes of piglit-framework.hChad Versace
This prepares for the next commit, which renames piglit-framework.h. All modified files included piglit-framework.h transitively. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-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-09util,tests: Replace GLUT visual enums with PIGLTI_GL_VISUAL enums (v2)Chad Versace
I'm trying to transition Piglit from using GLUT to using Waffle. That requires either killing or wrapping all GLUT code. Define enum piglit_gl_visual in piglit-framework.h, of which each value matches its corresponding GLUT visual enum. Do the following substitution in all util and test sources: GLUT_RGB -> PIGLIT_GL_VISUAL_RGB GLUT_RGBA -> PIGLIT_GL_VISUAL_RGBA GLUT_DOUBLE -> PIGLIT_GL_VISUAL_DOUBLE GLUT_ACCUM -> PIGLIT_GL_VISUAL_ACCUM GLUT_ALPHA -> PIGLIT_GL_VISUAL_ALPHA GLUT_DEPTH -> PIGLIT_GL_VISUAL_DEPTH GLUT_STENCIL -> PIGLIT_GL_VISUAL_STENCIL v2: Remove GLUT_INDEX, for Ken. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-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-09tests,util: Wrap glutKeyboardFunc with piglit_set_keyboard_funcChad Versace
I'm trying to transition Piglit from using GLUT to using Waffle. This requires killing all uses of GLUT functions, one-by-one. This patch replaces all-but-one instance of glutKeyboardFunc with a new wrapper, piglit_set_keyboard_func. The one remaining test that uses glutKeyboardFunc is windowoverlap; but that tests doesn't use piglit-framework, anyway. Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-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-09tests,util: Wrap glutPostRedisplay with piglit_post_redisplayChad Versace
I'm trying to transition Piglit from using GLUT to using Waffle. This requires killing all uses of GLUT functions, one-by-one. This patch replaces all-but-one instance of glutPostRedisplay with a new wrapper, piglit_post_redisplay. The sole remaining test that uses glutPostRedisplay is windowoverlap; but that test doesn't use piglit-framework, anyway. Since piglit_escape_exit_key() calls piglit_post_redisplay() which is defined in piglitutil_gl*, we must now link piglitutil_gl into piglitglxutil to prevent link errors. Acked-by: Eric Anholt <eric@anholt.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Paul Berry <stereotype441@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-09tests: Remove all uses of glutBitmapCharacterChad Versace
I'm trying to transition Piglit from using GLUT to using Waffle. This requires killing all uses of GLUT functions, one-by-one. Only three tests used glutBitmapCharacter, texturing/getteximage-formats texturing/texture-packed-formats texturing/texwrap and the test results were not affected by the function. It was used only in non-auto mode to print information about the texture format to the window. These tests were removed from the build when using Waffle, since glut_waffle does not implement glutBitmapCharacter. This patch returns them to the build. Acked-by: Eric Anholt <eric@anholt.net> Tested-by: Paul Berry <stereotype441@gmail.com> Reviewed-and-tested-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-10depth-cube-map: remove useless glFinish and piglit_report_resultMarek Olšák
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-03s3tc-errors: add additional texture size checksBrian Paul
Zero-sized tex images and sub images should not generate an error. Full images which are not multiples of the block size should also be legal. Verified w/ NVIDIA's driver.
2012-10-03compressedteximage: use new piglit compressed texture helpersBrian Paul
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-03s3tc-errors: use new piglit compressed texture helpersBrian Paul
Reviewed-by: Eric Anholt <eric@anholt.net>
2012-09-29teximage-errors: fix a couple mistakes, add two new test casesBrian Paul
Fix incorrect texture height (16, not 15). Fix incorrect width, height for glCopyTexSubImage2D() test. Add two new SubImage tests for non-existant mipmap levels.
2012-09-29teximage-errors: use piglit_check_gl_error() helperBrian Paul
2012-09-25s3tc-errors: test GL error checking with s3tc texturesBrian Paul
Check for expected OpenGL errors related to texture compression. For example, glCompresedTexSubImage2D() offset/size values must be multiples of four. This test could be expanded to cover other compression formats in the future. Also, this test contains some texture compression helper functions that could be made into piglit utility functions. Verified with NVIDIA's driver. One error found in Mesa, to be fixed soon.
2012-09-24Clean up depth-tex-modes-glsl a bit.Kenneth Graunke
1. It doesn't use sampler2DRect, so don't require ARB_texture_rectangle 2. Remove pointless glFinish() before piglit_present_results() 3. Use Piglit utility functions for compiling/linking shaders. 4. Print the description of what you're seeing in *non*-automatic mode. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-09-22textureSize: add GL_ARB_texture_cube_map_array support.Dave Airlie
This one is wierd since you give glTexImage3D layers * 6, but textureSize reports back layers on its own. Tested and passes on nvidia 295.59. Signed-off-by: Dave Airlie <airlied@redhat.com>
2012-09-18copytexsubimage: print GL enum strings instead of hex valuesBrian Paul
2012-09-18max-texture-size: remove unnecessary GL callsBrian Paul
2012-09-11max-texture-size: asst. formatting, etc. fixesBrian Paul
2012-09-11max-texture-size-level: don't try to create maxSize x maxSize texturesBrian Paul
We might not have enough memory for a texture that large. Use width or height = 1 instead. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-09-10Convert simple if(piglit_get_gl_version() < N) { SKIP } to requireChris Forbes
Generated from the following semantic patch: @@ expression VER; expression MSG; @@ - if (piglit_get_gl_version() < VER) { - printf(MSG); - piglit_report_result(PIGLIT_SKIP); ( - exit(1); | ) - } + piglit_require_gl_version(VER); Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
2012-09-05max-texture-size-level: test per-level max texture size error checkingBrian Paul