summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-07-10igt: use piglit.conf instead of a symlinkDylan Baker1-7/+5
Instead of symlinking igt into the bin/ directory, edit piglit.conf and set the path key in the igt section to the root of intel-gpu-tools v2: - change config key 'bindir' to 'path' (chadv) Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-07-10xts.py: Use piglit.conf to set suite location instead of symlinkDylan Baker1-2/+3
Instead of symlinking a directory into bin/ for xts, edit the path entry under the xts section to point at the root xts directory. v2: - replace config file key 'bindir' with 'path' (chadv) Reviewed-by: Chad Versace <chad.versace@linux.intel.com> Signed-off-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-07-10glsl-1.10: Test reductions of integer vectorsIan Romanick1-0/+28
Mesa has an optimization that converts expressions like "v.x + v.y + v.z + v.w" into dot(v, 1.0). And therein lies the rub: the other operand to the dot-product is always a float... even if the vector is an ivec or uvec. The result is not pretty: shader_runner: ../../src/glsl/ir_builder.cpp:257: ir_expression* ir_builder::dot(ir_builder::operand, ir_builder::operand): Assertion `a.val->type == b.val->type' failed. Aborted (core dumped) This was fixed on Mesa master by commit 316dafa. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Matt Turner <mattst88@gmail.com>
2014-07-08glean/glsl1: Delete duplicated gl_FrontFacing tests.Matt Turner2-24/+0
Tested by tests/shaders/glsl-fs-frontfacing.shader_test. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-08glean/glsl1: Delete duplicated uniform/varying tests.Matt Turner2-82/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-08glean/glsl1: Delete duplicated indexing tests.Matt Turner2-220/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-08glean/glsl1: Delete duplicated conditional expressions tests.Matt Turner2-26/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-07ext_framebuffer_multisample: Add NORETURN attribute to print_usage_and_exit.Vinson Lee1-1/+1
Silence clang sometimes-uninitialized warning. accuracy.cpp:130:13: warning: variable 'test_type' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] } else if (strcmp(argv[2], "depth_resolve") == 0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ accuracy.cpp:135:21: note: uninitialized use occurs here test = create_test(test_type, num_samples, small, ^~~~~~~~~ accuracy.cpp:130:9: note: remove the 'if' if its condition is always true } else if (strcmp(argv[2], "depth_resolve") == 0) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ accuracy.cpp:119:2: note: variable 'test_type' is declared here test_type_enum test_type; ^ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-07-06glean/glsl1: Delete duplicated discard tests.Matt Turner2-46/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glean/glsl1: Delete duplicated assignment operators test.Matt Turner2-15/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glean/glsl1: Delete duplicated float literal tests.Matt Turner2-17/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glean/glsl1: Delete duplicated integer literal tests.Matt Turner2-16/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glean/glsl1: Delete duplicated empty block/statement tests.Matt Turner2-14/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glean/glsl1: Delete duplicated fp precision tests.Matt Turner2-37/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glean/glsl1: Delete duplicated loop tests.Matt Turner2-209/+0
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glean/glsl1: Delete duplicated gl_*Color tests.Matt Turner2-43/+1
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glsl-1.20: Add test for literal floats with exponent and suffix.Matt Turner1-0/+12
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glsl-1.10: Add tests for literal floats with exponents.Matt Turner2-0/+18
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glsl-1.10/glsl-1.20: Add tests for literal float suffixes.Matt Turner4-0/+38
The GLSL 1.10 tests currently fail (we accept floating-point suffixes regardless of language version). Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glsl-1.10: Add octal/hex integer literal tests.Matt Turner6-26/+36
And throw out the glslparsertests. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-06glsl-1.10: Add tests for empty block and statements.Matt Turner2-0/+18
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-05ARB_explicit_attrib_location: Remove commas from require_extensions line.Matt Turner2-2/+2
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Reviewed-by: Dylan Baker <baker.dylan.c@gmail.com>
2014-07-05util/gl: Remove GLES case from piglit_rgbw_texture()Chad Versace1-5/+16
In GLES, piglit_rgbw_texture() ignored the data type parameter and assumed it was GL_UNSIGNED_BYTE. Remove the GLES-specific assumption and respect the parameter on GL and GLES. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05oes_draw_texture: Fix piglit_rgbw_texture() callChad Versace1-1/+2
Specify the data type, s/0/GL_UNSIGNED_BYTE/. The call worked because piglit_rgbw() ignores the type parameter on GLES. Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Move the remaining piglit-util-gl functions into piglit-util-gl-commonJosh Triplett3-279/+241
Drop the now-empty piglit-util-gl.c. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Unify piglit_rgbw_texture between GL and GLES; drop piglit-util-gles.cJosh Triplett6-299/+209
With the image generation factored out to piglit_rgbw_image and piglit_rgbw_image_ubyte, the remainder of the implementation becomes common between GL and GLES. This eliminates the last helper function from piglit-util-gles.c, so drop it. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Move piglit_miptree_texture to GL common codeJosh Triplett2-40/+39
This doesn't need to remain in the GL-specific utility library. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Factor out image generation from GLES piglit_rgbw_texture into a helperJosh Triplett1-37/+45
This moves the GLES implementation of piglit_rgbw_texture much closer to the GL version. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Unify piglit_checkerboard_texture between GL and GLESJosh Triplett3-170/+110
In the GLES implementation, factor out the conversion of the white and black pixel values from float to ubyte outside the loop. That then unifies the loop between the two implementations. Update the documentation to note that piglit_checkerboard_texture sets GL_CLAMP_TO_EDGE on GLES, not GL_CLAMP_TO_BORDER as it does on GL. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Move piglit_draw_triangle* helper functions to GL common codeJosh Triplett2-40/+40
These don't need to remain in the GL-specific utility library. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Move piglit program helper functions to GL common codeJosh Triplett2-82/+81
These don't need to remain in the GL-specific utility library. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Move remaining piglit_probe_* functions to GL common codeJosh Triplett2-115/+116
These don't need to remain in the GL-specific utility library. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Move piglit_probe_texel_* functions to GL common codeJosh Triplett2-183/+183
These don't need to remain in the GL-specific utility library. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Unify piglit_escape_exit_key between GL and GLESJosh Triplett3-25/+14
Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Unify piglit_probe_image_* functions between GL and GLESJosh Triplett3-210/+210
Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Unify piglit_probe_pixel_* and piglit_probe_rect_* between GL and GLESJosh Triplett3-385/+280
Introduce a new internal helper, piglit_read_pixels_float, that always returns floats. On GL it just calls glReadPixels with GL_FLOAT; on GLES it uses GL_UNSIGNED_BYTE and converts. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Unify projection utility functions across GL and GLESJosh Triplett3-91/+58
piglit_gen_ortho_projection and piglit_ortho_projection already had a similar implementation for GL and GLES1; common it up and remove the ifdefs. Move piglit_frustum_projection out of GL-only code as well, and add support for GLES1 using glFrustumf. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Move piglit_get_luminance_intensity_bits to GL common codeJosh Triplett2-102/+102
This doesn't need to remain in the GL-specific utility library. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Unify piglit_num_components between GL and GLESJosh Triplett3-47/+26
The unified implementation handles all the GLenum values expected by either. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-05util/gl: Fix piglit_is_gles to return true for "OpenGL ES-CM 1.1 ..."Josh Triplett1-1/+1
Piglit looked for a GL_VERSION starting with "OpenGL ES ", which did not match "OpenGL ES-CM 1.1 Mesa 10.2.1". Stop requiring the trailing space. Signed-off-by: Josh Triplett <josh@joshtriplett.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-04cl: Fix out-of-bounds write in get-num-groupsLars-Dominik Braun1-4/+12
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2014-07-03cl-api-get-platform-ids: Initialize variable.Vinson Lee1-1/+1
Fix clang sometimes-uninitialized warning. get-platform-ids.c:62:5: warning: variable 'platforms' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if(!piglit_cl_check_error(errNo, CL_SUCCESS)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ get-platform-ids.c:93:30: note: uninitialized use occurs here errNo = clGetPlatformIDs(0, platforms, NULL); ^~~~~~~~~ get-platform-ids.c:62:2: note: remove the 'if' if its condition is always false if(!piglit_cl_check_error(errNo, CL_SUCCESS)) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ get-platform-ids.c:56:27: note: initialize the variable 'platforms' to silence this warning cl_platform_id* platforms; ^ = NULL Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
2014-07-02amd_vertex_shader_viewport_index: add render testIlia Mirkin5-0/+169
This is a copy of the render_viewport ARB_viewport_array test. I didn't think that it was worth it to copy the scissor/depth tests, since they basically test the same thing but making sure that scissor/depth are applied correctly. If that works for ARB_viewport_array, it really should work here too. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-02cl: Add __attribute__(work_group_size_hint(..)) testAaron Watry1-0/+39
Currently, this test triggers an llvm error on r600g/radeonsi. Signed-off-by: Aaron Watry <awatry@gmail.com> CC: Tom Stellard <thomas.stellard@amd.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76223
2014-07-02arb_uniform_buffer_object: add a test that uses persistent buffersIlia Mirkin3-0/+228
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
2014-07-01egl-create-surface: Remove unused variable.Vinson Lee1-6/+0
Fix clang unused-const-variable warning. egl-create-surface.c:40:21: warning: unused variable 'pixmap_attribs' [-Wunused-const-variable] static const EGLint pixmap_attribs[] = { ^ Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2014-07-01arb_uniform_buffer_object/maxuniformblocksize: fix printf messageBrian Paul1-1/+1
So the usage/help info agrees with the actual command line argument. Trivial.
2014-06-30util/wfl: Re-enable GL 3.1 log messages in debug pathsChad Versace1-6/+2
Commit 1fdb953 removed some noisy debug messages with preprocessor guards. This patch re-enables them, but only if the environment variable PIGLIT_DEBUG is "1" or "true". Fixes some unused variable warnings. Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-06-30util/log: Add function piglit_logd()Chad Versace2-0/+43
The function logs a debug message if environment variable PIGLIT_DEBUG is "1" or "true". Signed-off-by: Chad Versace <chad.versace@linux.intel.com> Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
2014-06-30util/wfl: remove log prints in success pathsIlia Mirkin1-0/+4
Commit 04c9e870 introduced some debugging prints on success that make it clearer what's going on. However having these output for ever test seems unnecessary. Hide them behind compilation guards. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>