[Piglit] [PATCH] fbo-drawbuffers-maxtargets: use different colors for different buffers

2013-11-07 Thread Brian Paul
Before, the test always drew green rects for all the target buffers. Now we draw a different color into each buffer to be more thorough. Plus, replace 16 with MAX_TARGETS, add some comments, etc. Note: the test now fails with Mesa's swrast because swrast errantly writes the same color to all

Re: [Piglit] [PATCH 2/4] ARB_viewport_array: Validity test for depth range index/first/count params

2013-11-07 Thread Brian Paul
Just some formatting issues on this one and the same for patch 3/4. On 11/01/2013 04:51 PM, Jon Ashburn wrote: Tests GL_ARB_viewport_array validity for indices. Use both valid and invalid parameters (index, first, count) for all these new API entry points: glDepthRangeArrayv,

Re: [Piglit] [PATCH 4/4] ARB_viewport_array: Test validity of bounds for viewport, depthRange, scissor

2013-11-07 Thread Brian Paul
with Nvidia Quadro 600. All tests pass except Scissor Box with a negative height fails to return a gl error. Reviewed-by: Brian Paul bri...@vmware.com Signed-off-by: Jon Ashburn j...@lunarg.com --- tests/all.tests | 1 + tests/spec/arb_viewport_array

Re: [Piglit] [PATCH 9/9 v2] ARB_viewport_array: Rendering test with multiple scissor rectangles/enables

2013-11-07 Thread Brian Paul
Typos below. On 11/04/2013 08:15 AM, Jon Ashburn wrote: Tests rendering into a single framebuffer surface with multiple viewports via a geometry shader. Scissoring is used to restrict quads to a smaller area on the surface. Confirm that each area of the surface delineated by a scissor

[Piglit] [PATCH] glsl-1.10: test that redeclaring a variable with a different type is illegal

2013-11-06 Thread Brian Paul
This passes w/ Mesa but crashes NVIDIA's driver. --- .../declarations/bad-variable-redeclaration.frag | 29 1 file changed, 29 insertions(+) create mode 100644 tests/spec/glsl-1.10/compiler/declarations/bad-variable-redeclaration.frag diff --git

Re: [Piglit] [PATCH] update the HACKING file's Coding style section

2013-11-04 Thread Brian Paul
On 11/02/2013 09:02 PM, Dylan Baker wrote: Could you add a note about python code? Just something like: All python code should conform to python's PEP8 standard, using only spaces and no tabs would be great. Go for it! -Brian ___ Piglit mailing

[Piglit] [PATCH] update the HACKING file's Coding style section

2013-11-01 Thread Brian Paul
I've tried to describe Piglit's coding style and conventions in more detail. Hopefully, new contributors will read this and it'll save some some time and effort for the reviewers. Please feel free to add/update this info. --- HACKING | 57

Re: [Piglit] [PATCH] Fix occlusion query test to expect succesful Gen/DeleteQueries while active

2013-10-31 Thread Brian Paul
+ in the progress of another.); pass = false; } } Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman

[Piglit] [PATCH 1/2] cubemap-getteximage-pbo: Tests reading cube faces into a PBO

2013-10-31 Thread Brian Paul
Exercises an NVIDIA driver bug. --- tests/all.tests |1 + tests/texturing/CMakeLists.gl.txt |1 + tests/texturing/cubemap-getteximage-pbo.c | 157 + 3 files changed, 159 insertions(+) create mode 100644

[Piglit] [PATCH 2/2] arb_texture_view-getteximage-srgb: test sRGB texture views

2013-10-31 Thread Brian Paul
Exercises an NVIDIA driver bug related to glGetTexImage and sRGB texture views. --- tests/all.tests|1 + tests/spec/arb_texture_view/CMakeLists.gl.txt |1 + tests/spec/arb_texture_view/getteximage-srgb.c | 119 3 files changed,

Re: [Piglit] [PATCH] triangle-rasterization: increase the precision of the test

2013-10-29 Thread Brian Paul
On 10/28/2013 05:53 PM, Zack Rusin wrote: Increase the subpixel precision to 8 bits. This requires changing some of the code to 64 bits to avoid overflows. Signed-off-by: Zack Rusin za...@vmware.com --- Reviewed-by: Brian Paul bri...@vmware.com

Re: [Piglit] [PATCH 5/7] ARB_texture_view: Test for rendering various targets in texture view

2013-10-29 Thread Brian Paul
On 10/28/2013 12:16 PM, Jon Ashburn wrote: Tests GL_ARB_texture_view rendering with various texture targets. Creates texture maps with different solid colors for each level or layer reads the framebuffer to ensure the rendered color is correct. Tested on Nvidia Quadro 600, all subtests pass.

Re: [Piglit] [PATCH 1/9] ARB_viewport_array: Validity test for viewport index/first/count params

2013-10-29 Thread Brian Paul
On 10/29/2013 03:55 PM, Jon Ashburn wrote: Tests GL_ARB_viewport_array regarding the validity for the indices. Use both valid and invalid parameters (index, first, count) for these new API entry points: glViewportArrayv, glViewportIndexedf, glViewportIndexedfv, glGetFloati_v. Also test that

Re: [Piglit] [PATCH 9/9] ARB_viewport_array: Rendering test with multiple scissor rectangles/enables

2013-10-29 Thread Brian Paul
On 10/29/2013 03:55 PM, Jon Ashburn wrote: Tests rendering into a single framebuffer surface with multiple viewports via a geometry shader. Scissoring is used to restrict quads to a smaller area on the surface. Confirm that each area of the surface delineated by a scissor rectangle for

Re: [Piglit] [PATCH 6/9] ARB_viewport_array: Test min/max values for new implementation constants

2013-10-29 Thread Brian Paul
On 10/29/2013 03:55 PM, Jon Ashburn wrote: Tested GLenums are GL_MAX_VIEWPORT_DIMS, GL_MAX_VIEWPORTS, GL_VIEWPORT_SUBPIXEL_BITS, GL_VIEWPORT_BOUNDS_RANGE, GL_LAYER_PROVOKING_VERTEX, GL_VIEWPORT_INDEX_PROVOKING_VERTEX. Tested on Nvidia Quadro 600, test passes. --- tests/all.tests

Re: [Piglit] [PATCH 8/9] ARB_viewport_array: Rendering test with multiple depthranges

2013-10-29 Thread Brian Paul
); + vpIndexLoc = glGetUniformLocation(program, idx); +} With above fixes: Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 5/9] ARB_viewport_array: Test validity for glGetFloati_v and glGetDoublei_v

2013-10-29 Thread Brian Paul
], + vali[2], vali[3]); + } + } + pass = piglit_check_gl_error(GL_NO_ERROR) pass; + + piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); +} Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list

Re: [Piglit] [PATCH] Add new test for calling glGenQueries/glDeleteQueries with an active query

2013-10-28 Thread Brian Paul
query does generate an error). Reviewed-by: Brian Paul bri...@vmware.com Tested-by: Brian Paul bri...@vmware.com NVIDIA's 325.15 driver fails on the error check on line 96, but that looks like their bug. Thanks for making all the changes, Carl. -Brian

Re: [Piglit] [PATCH 5/7] ARB_texture_view: Test for rendering various targets in texture view

2013-10-25 Thread Brian Paul
On 10/25/2013 10:41 AM, Jon Ashburn wrote: RE your comment: +config.window_width = 128; +config.window_height = 128; Is 128 special? Can you just go with the defaults? In the past we've had trouble on Windows when the width is 130 or so pixels. Long story. 128 isn't special

Re: [Piglit] [PATCH 7/7] ARB_texture_view: Test texture view format changes and lifetimes

2013-10-24 Thread Brian Paul
On 10/24/2013 03:49 PM, Jon Ashburn wrote: Tests texture views with data format changes. 1D textures only. Uses multiple simultaneous views with different lifetimes and check results via glGetTexImage(). Tested on Nvidia Quadro 600, all subtests pass. --- tests/all.tests

Re: [Piglit] [PATCH 6/7] ARB_texture_view: Test for rendering various levels and layers in texture view

2013-10-24 Thread Brian Paul
Another quick review. Minor things below. On 10/24/2013 03:49 PM, Jon Ashburn wrote: Tests GL_ARB_texture_view rendering with various layers and levels. Creates texture maps with different solid colors for each level or layer, reads the framebuffer to ensure the rendered color is correct.

Re: [Piglit] [PATCH 3/7] ARB_texture_view:Test valid and invalid targets for TextureView

2013-10-24 Thread Brian Paul
In the subject, space after colon. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 1/7] ARB_texture_view: Test for API coverage of subset of input params

2013-10-24 Thread Brian Paul
(layers_clamping(), Minlayer range and numlayer clamp); + + pass = piglit_check_gl_error(GL_NO_ERROR) pass; + piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); +} With those changes, Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing

Re: [Piglit] [PATCH 5/7] ARB_texture_view: Test for rendering various targets in texture view

2013-10-24 Thread Brian Paul
I didn't really study this test, but some things jumped out... On 10/24/2013 03:49 PM, Jon Ashburn wrote: Tests GL_ARB_texture_view rendering with various texture targets. Creates texture maps with different solid colors for each level or layer reads the framebuffer to ensure the rendered

Re: [Piglit] [PATCH 1/4] ARB_texture_view: Test for API coverage of subset of input params

2013-10-18 Thread Brian Paul
On 10/18/2013 05:06 PM, Jon Ashburn wrote: Tests GL_ARB_texture_view and validity of input parameters. Use both valid and invalid parameters, although mostly invalid parameters are tested since other tests will use valid parameters. Only the parameters texture, origtexture, minlevel,

Re: [Piglit] [PATCH 2/4] arb_texture_view: Test valid and invalid formats

2013-10-18 Thread Brian Paul
The same formatting nitpicks from patch 1 apply to this patch and #3. More below. On 10/18/2013 05:06 PM, Jon Ashburn wrote: When calling glTextureView() only certain formats are valid based on the format of the original texture. This tests valid/invalid combinations. Tested on Nvidia Quadro

Re: [Piglit] [PATCH 2/3] arb_texture_view: Test valid and invalid formats

2013-10-17 Thread Brian Paul
On 10/16/2013 05:37 PM, Jon Ashburn wrote: When calling glTextureView() only certain formats are valid based on the format of the original texture. This tests valid/invalid combinations. Tested on Nvidia Quadro 600, all tests pass. --- tests/all.tests | 1 +

Re: [Piglit] [PATCH 3/3] ARB_texture_view:Test valid and invalid targets for TextureView

2013-10-17 Thread Brian Paul
On 10/16/2013 05:37 PM, Jon Ashburn wrote: The new target supplied with textureView must be compatible with the original textures target. This tests valid and invalid combinations. Tested on Nvidia Quadro 600, all tests pass. --- tests/all.tests | 1 +

Re: [Piglit] [PATCH] Add new test for calling glGenQueries/glDeleteQueries with an active query

2013-10-17 Thread Brian Paul
On 10/17/2013 12:14 PM, Carl Worth wrote: It is legal to gen and delete a new object while another object is active. It is also legal to delete the currently active object. Ensure that both of these operations can be performed without any error. --- tests/all.tests

[Piglit] [PATCH] arb_texture_storage: add some cube map error tests

2013-10-14 Thread Brian Paul
Test error checking for width != height and depth % 6 != 0 for cube arrays. --- tests/spec/arb_texture_storage/texture-storage.c | 66 ++ 1 file changed, 66 insertions(+) diff --git a/tests/spec/arb_texture_storage/texture-storage.c

[Piglit] [PATCH] fbo-alphatest-formats: silence piglit_report_subtest_result() format warnings

2013-09-27 Thread Brian Paul
silences tests/fbo/fbo-alphatest-formats.c:184:3: warning: format not a string literal and no format arguments [-Wformat-security] --- A number of tests are generating this warning. If there's no objection, I'll clean up the other tests too. --- tests/fbo/fbo-alphatest-formats.c |6 +++---

[Piglit] [PATCH 1/5] piglit: silence piglit_report_subtest_result() format warnings

2013-09-27 Thread Brian Paul
silences a bunch of warnings such as: tests/fbo/fbo-alphatest-formats.c:184:3: warning: format not a string literal and no format arguments [-Wformat-security] --- tests/fbo/fbo-alphatest-formats.c|6 +++--- tests/fbo/fbo-blending-formats.c |

[Piglit] [PATCH 3/5] glean: silence unused var compiler warning

2013-09-27 Thread Brian Paul
--- tests/glean/tshaderapi.cpp |1 + 1 file changed, 1 insertion(+) diff --git a/tests/glean/tshaderapi.cpp b/tests/glean/tshaderapi.cpp index 5111c30..fcd6547 100644 --- a/tests/glean/tshaderapi.cpp +++ b/tests/glean/tshaderapi.cpp @@ -440,6 +440,7 @@

[Piglit] [PATCH 4/5] layered-2d-texture-render: add const qualifiers to silence warnings

2013-09-27 Thread Brian Paul
--- tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c b/tests/spec/amd_vertex_shader_layer/layered-2d-texture-render.c index 88a2bfa..71fc249

[Piglit] genmipmap-errors test

2013-09-13 Thread Brian Paul
Anuj, Your genmipmap-errors test checks if glGenerateMipmaps raises GL_INVALID_OPERATION for integer and depth/stencil texture formats. Can you tell me which version of the GL spec or extension describes this? genmipmap-errors fails with NVIDIA's OpenGL 4.2 since it does not raise any

[Piglit] [PATCH] arb_internalformat_query-minmax: add more version/ext checking

2013-09-13 Thread Brian Paul
The valid_formats[] list includes formats supported either by GL 3.0 or GL_EXT_texture_float and GL_EXT_texture_rg. --- tests/spec/arb_internalformat_query/minmax.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/tests/spec/arb_internalformat_query/minmax.c

[Piglit] [PATCH] ext_texture_array/compressed: check for GL_EXT_texture_array

2013-09-13 Thread Brian Paul
We obviously should require this extension. --- tests/spec/ext_texture_array/compressed.c |1 + 1 file changed, 1 insertion(+) diff --git a/tests/spec/ext_texture_array/compressed.c b/tests/spec/ext_texture_array/compressed.c index c964fd7..7f87b62 100644 ---

Re: [Piglit] [PATCH v2] KHR_debug: test ObjectLabel(), GetObjectLabel(), ObjectPtrLabel() and GetObjectPtrLabel()

2013-08-26 Thread Brian Paul
in piglit. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] glsl-1.10 / glsl-1.20: Relax precision requirements of variable indexing tests

2013-08-22 Thread Brian Paul
On 08/21/2013 09:44 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com Many of these tests fail on older GPU such as Intel i915 due to the precision requirement. This is because many GPUs in this class only use 24-bit floats. Many also implement many instructions cheaply

Re: [Piglit] [PATCH 12/18] arb_geometry_shader4: Test that adjacent vertices are ignored when no geometry shader is active.

2013-06-11 Thread Brian Paul
is not too common in piglit. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 04/18] shader_runner: Draw instanced rectangles using triangle strips instead of quads.

2013-06-11 Thread Brian Paul
(GL_VERTEX_ARRAY); } Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 07/18] arb_geometry_shader4: Test valid vertices out count.

2013-06-11 Thread Brian Paul
On 06/07/2013 12:30 PM, Fabian Bieler wrote: Test that glProgramParameter() triggers the required errors. The value of GEOMETRY_VERTICES_OUT is limited by the implementation dependend constants MAX_GEOMETRY_OUTPUT_VERTICES and MAX_VERTEX_VARYING_COMPONENTS. From the ARB_geometry_shader4 spec

Re: [Piglit] [PATCH 4/7] gl-3.2: Add testing for the minimum maximums.

2013-05-17 Thread Brian Paul
On May 16, 2013, at 9:28 AM, Eric Anholt e...@anholt.net wrote: --- tests/all.tests | 2 + tests/spec/CMakeLists.txt | 1 + tests/spec/gl-3.2/CMakeLists.gl.txt | 14 +++ tests/spec/gl-3.2/CMakeLists.txt| 1 + tests/spec/gl-3.2/minmax.c | 177

Re: [Piglit] [PATCH] max-samplers: use the maximum number of textures in every shader

2013-05-09 Thread Brian Paul
On 05/08/2013 07:27 PM, Marek Olšák wrote: On Thu, May 9, 2013 at 1:16 AM, Brian Paulbri...@vmware.com wrote: BTW, I tried to test this with NVIDIA's driver but it appears that piglit can't create a GL 3.1 context: $ bin/gl-3.1-max-samplers -auto piglit: info: Failed to create GL 3.1 core

Re: [Piglit] [PATCH 2/4] util: Make an even simpler interface for building simple shaders.

2013-05-08 Thread Brian Paul
a program from optional VS and FS sources, + * throwing PIGLIT_FAIL on error. + */ +GLint +piglit_build_simple_program(const char *vs_source, const char *fs_source) How would you feel about adding a gs_source for geometry shaders too? Otherwise, Reviewed-by: Brian Paul bri...@vmware.com

Re: [Piglit] [PATCH v2] amd_performance_monitor: Fix multi-statement macro 'report'.

2013-05-07 Thread Brian Paul
) /**/ Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] amd_performance_monitor: Add braces around report macro.

2013-05-06 Thread Brian Paul
On 05/05/2013 12:11 AM, Vinson Lee wrote: The macro 'report' expands to multiple statements. Add braces to nest all statements in expanded macro within if-statement. Fixes Nesting level does not match indentation defect reported by Coverity. Signed-off-by: Vinson Leev...@freedesktop.org ---

[Piglit] [PATCH] framework: improve the TestProfile::remove_test() method

2013-05-02 Thread Brian Paul
The previous implementation didn't really work too well. If you tried something like profile.remove_test(spec/!OpenGL 3.1/primitive-restart-xfb generated) you'd just get a Python exception and die. Also, it was painful to remove whole categories of tests, such as spec/!OpenGL 3.1/. The new

[Piglit] RFC: rename test/all.tests to tests/all_tests.py

2013-05-02 Thread Brian Paul
I'd like to rename tests/all.tests (and the others) to something like tests/all_tests.py. The contents of all.tests is Python code so putting the .py suffix on it makes sense. Then, I'd like to be able to import that code into another test spec file where I do blacklisting. For example,

[Piglit] [PATCH] s3tc-errors: add more glTex[Sub]Image2D() error checking tests

2013-04-26 Thread Brian Paul
Two new things: 1. Test small mipmap level sizes (width,height=1,2,4) 2. Test NPOT textures Passes with NVIDIA's driver. Checks for a Mesa bug. --- tests/texturing/s3tc-errors.c | 104 - 1 files changed, 103 insertions(+), 1 deletions(-) diff --git

[Piglit] [PATCH] gl-1.0-dlist-shademodel: test glShadeModel() inside a display list

2013-04-25 Thread Brian Paul
This is pretty trivial, but it's useful for debugging a Mesa display list optimization. --- tests/all.tests |1 + tests/spec/gl-1.0/CMakeLists.gl.txt |1 + tests/spec/gl-1.0/dlist-shademodel.c | 101 ++ 3 files changed, 103

[Piglit] [PATCH] dlist-beginend: test some tricky glBegin/glEnd display list corner cases

2013-04-25 Thread Brian Paul
These are some special cases not covered by the beginend-coverage test. In particular, we do some drawing/probing. --- tests/all.tests |1 + tests/spec/gl-1.0/CMakeLists.gl.txt |1 + tests/spec/gl-1.0/dlist-beginend.c | 358 +++ 3

[Piglit] [PATCH 1/2] gl-1.0-begend-coverage: remove unneeded #include minmax-test.h

2013-04-25 Thread Brian Paul
--- tests/spec/gl-1.0/beginend-coverage.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/tests/spec/gl-1.0/beginend-coverage.c b/tests/spec/gl-1.0/beginend-coverage.c index 22d0034..1e8dd7d 100644 --- a/tests/spec/gl-1.0/beginend-coverage.c +++

[Piglit] [PATCH 2/2] gl-1.0-beginend-coverage: fix FBO-related failures when using GLUT

2013-04-25 Thread Brian Paul
When Piglit's configured to use GLUT instead of Waffle we don't have full support for the -fbo option. So in beginend-coverage we now check if we really have a FBO bound in order to compute the right fbo_attachment value. --- tests/spec/gl-1.0/beginend-coverage.c |9 +++-- 1 files

Re: [Piglit] [PATCH] Primitive restart: Test in every possible draw mode.

2013-04-25 Thread Brian Paul
= piglit_check_gl_error(GL_NO_ERROR) pass; + piglit_present_results(); + return pass ? PIGLIT_PASS : PIGLIT_FAIL; +} Otherwise LGTM. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http

Re: [Piglit] [PATCH] add new piglit-summary.py script for printing summaries of results file(s)

2013-04-20 Thread Brian Paul
On 04/19/2013 09:54 PM, Dylan Baker wrote: I have some concerns with this patch: 1) It has two imports that are not being used: cgi, os (not os.path) I'll fix that. 2) getopt: I've been trying to get rid of getopt and replace it with argparse (I have a patch set ready to go to replace the

Re: [Piglit] [PATCH] add new --ignoreStderr option to piglit-run.py

2013-04-19 Thread Brian Paul
On 04/19/2013 04:33 AM, Jose Fonseca wrote: Yes, assuming stderr messages are driver warnings seems a bit pedantic. We could do the other way around -- have a whitelist of warning regular expressions that we do known that are worrisome. Yeah, that's an idea. But I think the only ones that

[Piglit] [PATCH] add new --ignoreStderr option to piglit-run.py

2013-04-18 Thread Brian Paul
Normally, if anything unexpected is printed to stderr we report 'warn' for the test result. The list of expected/allowed stderr message is found at the end of core.py. It's a PITA to update this list and if you've temporarily inserted extra debug code in Mesa/gallium it causes piglit to just

[Piglit] [PATCH] add a simple glinfo test program

2013-04-18 Thread Brian Paul
the + * results file will have all the pertinant info for the GL driver + * that was tested. + * + * Note that the piglit framework tries to run glxinfo/wglinfo and + * put the output in the results file, but sometimes those programs + * aren't installed. + * + * Brian Paul + * April 2013 + */ + + +#include

[Piglit] [PATCH] add new piglit-summary.py script for printing summaries of results file(s)

2013-04-18 Thread Brian Paul
). +# When multiple result files are specified, compare the results +# of each test run to look for differences/regressions. +# +# Brian Paul +# April 2013 + + +from getopt import getopt, GetoptError +import cgi +import os, os.path +import sys +import string + +sys.path.append(os.path.dirname

Re: [Piglit] Requiring Python 3.x for Piglit?

2013-04-17 Thread Brian Paul
On 04/17/2013 03:48 AM, Kenneth Graunke wrote: Does anyone object to porting to Python 3.x (and dropping 2.x support)? Some useful data points: - Debian stable has 3.1, testing/unstable have 3.2 - Fedora 18 and Arch Linux have 3.3 - Windows installers for 3.3 are available on python.org - Mac

Re: [Piglit] [PATCH 5/5] gl-1.0: use default window size to fix Windows run

2013-04-06 Thread Brian Paul
On 04/06/2013 03:21 AM, Jose Fonseca wrote: Brian, Series looks alright, but it looks to me this is a pervasive issue, and not just a few isolated cases: piglit $ git grep config.window_width | wc -l 461 So I wonder if there isn't a more definite solution. For example, could we simply

[Piglit] [PATCH 1/5] arb_sampler_objects: use default window size to fix Windows run

2013-04-05 Thread Brian Paul
--- tests/spec/arb_sampler_objects/framebufferblit.c |2 -- tests/spec/arb_sampler_objects/srgb-decode.c |2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/tests/spec/arb_sampler_objects/framebufferblit.c b/tests/spec/arb_sampler_objects/framebufferblit.c index

[Piglit] [PATCH 2/5] arb_shader_objects: use default window size to fix Windows run

2013-04-05 Thread Brian Paul
--- .../bindattriblocation-scratch-name.c |2 -- tests/spec/arb_shader_objects/clear-with-deleted.c |2 -- tests/spec/arb_shader_objects/delete-repeat.c |2 -- .../arb_shader_objects/getactiveuniform-beginend.c |2 -- tests/spec/arb_shader_objects/getuniform.c

[Piglit] [PATCH 3/5] arb_framebuffer_object: use default window size to fix Windows run

2013-04-05 Thread Brian Paul
--- .../framebuffer-blit-levels.c |2 -- .../get-renderbuffer-internalformat.c |2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/tests/spec/arb_framebuffer_object/framebuffer-blit-levels.c

[Piglit] [PATCH 4/5] arb_vertex_buffer_object: use default window size to fix Windows run

2013-04-05 Thread Brian Paul
--- .../elements-negative-offset.c |2 -- .../mixed-immediate-and-vbo.c |2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/tests/spec/arb_vertex_buffer_object/elements-negative-offset.c

[Piglit] [PATCH 5/5] gl-1.0: use default window size to fix Windows run

2013-04-05 Thread Brian Paul
--- tests/spec/gl-1.0/edgeflag-quads.c |2 -- tests/spec/gl-1.0/edgeflag.c |2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/tests/spec/gl-1.0/edgeflag-quads.c b/tests/spec/gl-1.0/edgeflag-quads.c index 12ad289..702513d 100644 ---

[Piglit] [PATCH 1/3] draw-pixels: display results when there's a failure

2013-04-05 Thread Brian Paul
--- tests/general/draw-pixels.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tests/general/draw-pixels.c b/tests/general/draw-pixels.c index 383f335..0506ead 100644 --- a/tests/general/draw-pixels.c +++ b/tests/general/draw-pixels.c @@ -871,6 +871,10 @@

[Piglit] [PATCH 2/3] draw-pixels: use better test values

2013-04-05 Thread Brian Paul
As it was, many of the generated / expected pixel values were all zeros. Use better values that actually fit in the given datatype. For example, we were trying to store 0x23 (6 - j) in a GLbyte. --- tests/general/draw-pixels.c | 36 +++- 1 files changed, 7

[Piglit] [PATCH 3/3] draw-pixels: use default window size, for Windows

2013-04-05 Thread Brian Paul
And set the pixel unpack alignment to 1 so that we don't fail if the window width isn't a multiple of four. --- tests/general/draw-pixels.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/general/draw-pixels.c b/tests/general/draw-pixels.c index 26fd121..33a1eb0

Re: [Piglit] [PATCH] arb_shader_texture_lod-texgradcube: Test explicit derivatives for cube maps

2013-04-03 Thread Brian Paul
; +} It looks like you're building a complete mipmap but only testing the 0th mipmap level. Could you hit those other levels by drawing some smaller quads? Otherwise looks good. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit

[Piglit] [PATCH] provoking-vertex: also test clockwise triangles

2013-03-29 Thread Brian Paul
in addition to the counter-clockwise triangles. Plus minor clean-ups. --- tests/general/provoking-vertex.c | 58 +++-- 1 files changed, 42 insertions(+), 16 deletions(-) diff --git a/tests/general/provoking-vertex.c b/tests/general/provoking-vertex.c index

[Piglit] Feature request: indirect rendering

2013-03-28 Thread Brian Paul
I happened to find a bug in NVIDIA's driver with indirect GLX rendering. I was going to write a piglit test for it but found that we have no way to request an indirect GLX context in piglit. We could either: 1. add a PIGLIT_GL_VISUAL_INDIRECT bit/flag 2. add a bol

Re: [Piglit] [PATCH] Rework the PIGLIT_GL_VISUAL flags, fix RGB vs RGBA vs ALPHA confusion

2013-03-27 Thread Brian Paul
On 03/26/2013 11:13 AM, Marek Olšák wrote: Hi, would anyone like to comment on this? Or is it still stuck in the moderation queue? I can't find the patch you're referring to. Repost? -Brian ___ Piglit mailing list Piglit@lists.freedesktop.org

[Piglit] [PATCH] st/wgl: fix handling of minimized windows

2013-03-27 Thread Brian Paul
If a window is redrawn while minimized we were emitting an invalid size when doing SwapBuffers. With the VMware SVGA driver it meant we were emitting invalid dimensions for the SurfaceCopy command. -- I've been running with this patch for a few days and haven't seen any regressions. Tested in

Re: [Piglit] [PATCH] Rework the PIGLIT_GL_VISUAL flags, fix RGB vs RGBA vs ALPHA confusion

2013-03-27 Thread Brian Paul
Looks OK to me but you might want to wait for other feedback. Reviewed-by: Brian Paul bri...@vmware.com On 03/27/2013 05:00 PM, Marek Olšák wrote: The patch seems to be too large for a mailing list. It's here: http://cgit.freedesktop.org/~mareko/piglit/commit/?id

[Piglit] [PATCH] util: move #define GLXBadProfileARB from .c file to .h file

2013-03-21 Thread Brian 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. --- tests/util/piglit-glx-util.c |4 tests/util/piglit-glx-util.h |4 2 files changed, 4 insertions(+), 4 deletions(-) diff

Re: [Piglit] [PATCH 1/2] glean: Disable unused print_float function.

2013-03-20 Thread Brian Paul
On 03/20/2013 02:11 AM, Rico Schüller wrote: Hi, this patch disables the print_float function, which is only used in the already disabled main function. Cheers Rico --- Thanks. I'll push these patches soon, after cleaning up the commit messages a bit. -Brian

Re: [Piglit] [PATCH 4/4] fbo-clear-formats: clean up error handling

2013-03-19 Thread Brian Paul
On 03/19/2013 05:14 AM, Jose Fonseca wrote: Series looks good to me. Reviewed-by: Jose Fonsecajfons...@vmware.com Thanks. BTW, I'm fixing my tabs vs. spaces indentation errors before committing. -Brian ___ Piglit mailing list

Re: [Piglit] [PATCH 1/1] glx-query-drawable: Remove unused window variable.

2013-03-19 Thread Brian Paul
On 03/19/2013 03:04 AM, Rico Schüller wrote: --- tests/glx/glx-query-drawable.c | 1 - 1 file changed, 1 deletion(-) Pushed. Thanks. -Brian ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH 1/4] texunits: increase size of arrays to fix crash

2013-03-18 Thread Brian 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. --- tests/general/texunits.c | 13 ++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff

[Piglit] [PATCH 2/4] texunits: clean-up GL error checking code

2013-03-18 Thread Brian Paul
Use piglit_check_gl_error(). --- tests/general/texunits.c | 46 ++ 1 files changed, 14 insertions(+), 32 deletions(-) diff --git a/tests/general/texunits.c b/tests/general/texunits.c index e419bde..6eca7b5 100644 --- a/tests/general/texunits.c +++

[Piglit] [PATCH 4/4] fbo-clear-formats: clean up error handling

2013-03-18 Thread Brian 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. --- tests/fbo/fbo-clear-formats.c | 19 +++

Re: [Piglit] [PATCH] arb_texture_view/gles3: Test TEXTURE_IMMUTABLE_LEVELS parameter.

2013-03-12 Thread Brian Paul
. + + glDeleteTextures(3, tex); + + piglit_report_result(PIGLIT_PASS); + return 0; +} + +void +piglit_init(int argc, char **argv) +{ +#if defined(PIGLIT_USE_OPENGL) + piglit_require_extension(GL_ARB_texture_view); +#endif +} Looks good otherwise. Reviewed-by: Brian Paul bri...@vmware.com

Re: [Piglit] [PATCH] glsl-1.30: add basic test for testing textureOffset functionality.

2013-03-05 Thread Brian Paul
On 03/05/2013 11:03 AM, Roland Scheidegger wrote: Am 05.03.2013 17:05, schrieb Brian Paul: On 03/05/2013 08:37 AM, srol...@vmware.com wrote: From: Roland Scheideggersrol...@vmware.com This is pretty rough and doesn't really test all that much (just textureOffsetLod, but there's other

[Piglit] [PATCH] fbo-maxsize: minor test improvements

2013-03-04 Thread Brian 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.

Re: [Piglit] [PATCH] Add missing piglit_get_prim_name() for gles3.

2013-02-25 Thread Brian Paul
; + case GL_TRIANGLE_STRIP: + return GL_TRIANGLE_STRIP; + case GL_TRIANGLE_FAN: + return GL_TRIANGLE_FAN; + default: + return (unrecognized enum); + } +} Reviewed-by: Brian Paul bri...@vmware.com

[Piglit] [PATCH 1/3] piglit: add piglit_get_prim_name() helper

2013-02-21 Thread Brian Paul
--- tests/util/piglit-util-gl-common.h | 12 ++ tests/util/piglit-util-gl-enum.c | 41 2 files changed, 53 insertions(+), 0 deletions(-) diff --git a/tests/util/piglit-util-gl-common.h b/tests/util/piglit-util-gl-common.h index 336953d..accf1f3

[Piglit] [PATCH 2/3] longprim: use piglit_get_prim_name() function

2013-02-21 Thread Brian Paul
--- tests/general/longprim.c | 16 ++-- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git a/tests/general/longprim.c b/tests/general/longprim.c index f5a0bd7..b4344f2 100644 --- a/tests/general/longprim.c +++ b/tests/general/longprim.c @@ -54,19 +54,6 @@ static const

[Piglit] [PATCH 3/3] shader_runner: use piglit_get_prim_name()

2013-02-21 Thread Brian Paul
--- tests/shaders/shader_runner.c | 22 -- 1 files changed, 4 insertions(+), 18 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 0ae9e0c..582c85c 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@

[Piglit] [PATCH] degenerate-prims: test that prims with too few vertices don't draw anything

2013-02-21 Thread Brian Paul
in Mesa. + * + * Brian Paul + * Feb 2013 + */ + + +#include piglit-util-gl-common.h + +PIGLIT_GL_TEST_CONFIG_BEGIN + config.supports_gl_compat_version = 10; + config.window_visual = PIGLIT_GL_VISUAL_RGB | PIGLIT_GL_VISUAL_DOUBLE; +PIGLIT_GL_TEST_CONFIG_END + + +/** + * Test a specific

[Piglit] [PATCH] polygon-mode-offset: test glPolygonMode + glPolygonOffset

2013-02-21 Thread Brian Paul
OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + + +/** + * Test glPolygonMode + glPolygonOffset. + * + * Brian Paul + * Feb 2013 + */ + + +#include piglit-util-gl-common.h

Re: [Piglit] [PATCH 3/3] util/waffle: More wisely handle compat context versions 1.0

2013-02-20 Thread Brian Paul
. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] degenerate-prims: test that prims with too few vertices don't draw anything

2013-02-19 Thread Brian Paul
OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + + +/** + * Test drawing primitives with too few vertices. In particular, + * GL_QUADS and GL_QUAD_STRIP with 3 verts seems to regress every + * once in a while in Mesa. + * + * Brian Paul + * Feb 2013

[Piglit] [PATCH] remove glean scissor test

2013-02-11 Thread Brian Paul
Replaced by new piglit scissor-polygon test. --- tests/all.tests |1 - tests/glean/CMakeLists.gl.txt |1 - tests/glean/tscissor.cpp | 180 - tests/glean/tscissor.h| 52 4 files changed, 0 insertions(+), 234

Re: [Piglit] [PATCH 1/2] port ttexrect.cpp to piglit from glean

2013-02-08 Thread Brian Paul
On 02/07/2013 10:45 PM, Tom Gall wrote: This ported test goes into tests/spec/arb_texture_rectangle. It tests the ARB_texture_rectangle extension. Create a 255x127 texture of varying colors and bind it as a GL_ARB_texture_recangle target. Draw that rectangle to the window, and check that the

Re: [Piglit] Fwd: [PATCH 1/2] port ttexrect.cpp to piglit from glean

2013-02-07 Thread Brian Paul
LGTM. Are you asking for another review or do you need someone to commit/push it for you? -Brian On 02/06/2013 03:38 PM, Tom Gall wrote: It was a little over two weeks ago when v2 of these 2 patches to port ttexrect to piglit and remove it from glean were posted. It has a Reviewed-by: Brian

Re: [Piglit] [PATCH] getteximage-formats: test GetTexImage after rendering to textures

2013-02-07 Thread Brian Paul
-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] Fwd: [PATCH 1/2] port ttexrect.cpp to piglit from glean

2013-02-07 Thread Brian Paul
OK, I thought you had git-write ability. I'll commit/push soon. -Brian On 02/07/2013 08:23 AM, Tom Gall wrote: Hi Brian, It has your reviewed by. Ideally I was looking for it to be committed unless of course there's something egregious about it that we both missed. On Thu, Feb 7, 2013 at

Re: [Piglit] Fwd: [PATCH 1/2] port ttexrect.cpp to piglit from glean

2013-02-07 Thread Brian Paul
On 02/07/2013 08:35 AM, Brian Paul wrote: OK, I thought you had git-write ability. I'll commit/push soon. Actually, I found a few more issues with the code. The piglit_swap_buffers() call should be moved after the probing code. And you should use piglit_present_results() instead. After

<    5   6   7   8   9   10   11   12   >