[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 error

[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 b/tests/spec/arb_internalf

[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 --- a/tests/spec/ext_texture_array/c

[Piglit] [PATCH] builtin_functions.py: tweak integer constants

2013-09-13 Thread Brian Paul
This fixes some misleading fs-op-div-* failures when the driver does integer arithmetic with floating point. When we compute the reciprocal of some integers we wind up with inexact floating point results. So expressions like X/X result in 0. or such. This patch tweaks the generator code to u

[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 @@ ShaderAPITest::test_uniform_neg_location

[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 1006

[Piglit] [PATCH 2/5] fbo-gl_pointcoord: clean up shader formatting

2013-09-27 Thread Brian Paul
--- tests/fbo/fbo-gl_pointcoord.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/fbo/fbo-gl_pointcoord.c b/tests/fbo/fbo-gl_pointcoord.c index b2a1ccf..e5392d1 100644 --- a/tests/fbo/fbo-gl_pointcoord.c +++ b/tests/fbo/fbo-gl_pointcoord.c @@ -42,14 +42,16

[Piglit] [PATCH 5/5] max-texture-size: improve error message info

2013-09-27 Thread Brian Paul
--- tests/texturing/max-texture-size.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/texturing/max-texture-size.c b/tests/texturing/max-texture-size.c index cb0c399..7b6b3fc 100644 --- a/tests/texturing/max-texture-size.c +++ b/tests/texturing/max-texture-size.c @

[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 b/tests/spec/arb_texture_storage/texture-

Re: [Piglit] [RFC 1/3] hack: enable shader runner on 4.2.0 NVIDIA 304.88

2013-10-15 Thread Brian Paul
On 10/15/2013 05:49 AM, Topi Pohjolainen wrote: Signed-off-by: Topi Pohjolainen --- tests/shaders/shader_runner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index ba76cd0..5731985 100644 --- a/tests/shaders

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

2013-10-17 Thread Brian Paul
On 10/16/2013 05:37 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", "nu

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 + te

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 + tests/s

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

2013-10-17 Thread Brian Paul
On 10/17/2013 12:42 PM, Ian Romanick wrote: On 10/17/2013 07:29 AM, Brian Paul wrote: On 10/16/2013 05:37 PM, Jon Ashburn wrote: +/* skip compressed internal formats for now including extensions */ +assert(format_class == GL_VIEW_CLASS_128_BITS || + format_class

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

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", "nu

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 6

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

2013-10-19 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. s/object/query/ ?? 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

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 ___ 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
texture_view"); + piglit_require_extension("GL_EXT_texture_integer"); + piglit_require_extension("GL_ARB_texture_float"); + piglit_require_extension("GL_EXT_texture_array"); + + X(invalid_texture_param(), "Invalid texture or origtexture"); + X(invalid_layer_param(GL_TEXTURE_1D_ARRAY), "Invalid layer param 1D"); + X(invalid_layer_param(GL_TEXTURE_2D_ARRAY), "Invalid layer param 2D"); + X(invalid_level_param(), "Invalid level param"); + X(levels_clamping(), "Minlevel range and numlevel clamp"); + X(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 ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

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 color

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

2013-10-24 Thread Brian Paul
_arrays(GLenum *valid, GLenum *invalid, +unsigned int numInvalid, ... ) unsigned int update_valid_arrays(GLenum *valid, GLenum *invalid, unsigned int numInvalid, ... ) Same thing in header file. OK otherwise. Reviewed-by: Brian Paul ___

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] 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 Tested-by: Brian Paul 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 ___ Piglit mailing list P

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 --- Reviewed-by: Brian Paul ___ Piglit mailing list Piglit

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. S

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

2013-10-29 Thread Brian Paul
On 10/28/2013 12:16 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. Signed-off-by: Jon Ashburn --- tests/al

Re: [Piglit] [PATCH 7/9] ARB_viewport_array: Rendering test with multiple viewports

2013-10-29 Thread Brian Paul
+ piglit_require_extension("GL_ARB_viewport_array"); + + program = piglit_build_simple_program_multiple_shaders( + GL_VERTEX_SHADER, vsSource, + GL_GEOMETRY_SHADER, gsSource, + GL_FRAGMENT_SHADER, fsSource, + 0); + glUseProgram(program); + colorLoc = glGetUniformLocation(program, "color"); + vpIndexLoc = glGetUniformLocation(program, "idx"); +} With above fixes: Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

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

2013-10-29 Thread Brian Paul
\ + } while (0) Insert a couple blank lines here. +void +piglit_init(int argc, char **argv) +{ + bool pass= true; + GLint maxVP; + + piglit_require_extension("GL_ARB_viewport_array"); + + glGetIntegerv(GL_MAX_VIEWPORTS, &maxVP); +

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 w

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 viewport

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
+ +void +piglit_init(int argc, char **argv) +{ + GLuint program; + + piglit_require_extension("GL_ARB_viewport_array"); + + program = piglit_build_simple_program_multiple_shaders( + GL_VERTEX_SHADER, vsSource, +

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

2013-10-29 Thread Brian Paul
printf("mismatched valf and vali for %s\n", + piglit_get_gl_enum_name(indexedTokens[i])); + printf("valf[0-3]= %f %f %f %f\n", valf[0], valf[1], +

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

2013-10-31 Thread Brian Paul
+ reportError("Error generated when DeleteQueries called " + "in the progress of another."); pass = false; } } Reviewed-by: Brian Paul __

[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 tests/texturing/cubemap

[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, 121

[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] 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] 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 a/tests/spec/glsl-1.10/

[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 rend

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, glDepthRangeInde

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

2013-11-07 Thread Brian Paul
th, height). Tested with Nvidia Quadro 600. All tests pass except Scissor Box with a negative height fails to return a gl error. Reviewed-by: Brian Paul Signed-off-by: Jon Ashburn --- tests/all.tests | 1 + tests/spec/arb_viewport_array/CMakeLists.gl.txt | 1

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 rectangl

Re: [Piglit] [PATCH] ARB_texture_view: Add multisample texture target testing

2013-11-11 Thread Brian Paul
On 11/08/2013 01:40 PM, Jon Ashburn wrote: The "targets" test is extended to include testing of GL_TEXTURE_2D_MULTISAMPLE and GL_TEXTURE_2D_MULTISAMPLE_ARRAY. This will test making valid and invalid texture views of these two multisample targets and ensuring the correct GL error is set. --- te

Re: [Piglit] [PATCH] multi-draw-elements-base-vertex: Require GLSL 1.30.

2013-11-12 Thread Brian Paul
extension("GL_ARB_draw_elements_base_vertex"); > } Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH v2] ARB_texture_view: Add multisample texture target testing

2013-11-12 Thread Brian Paul
ror is set. Reviewed-by: Brian Paul Signed-off-by: Jon Ashburn --- tests/spec/arb_texture_view/targets.c | 53 +++ 1 file changed, 41 insertions(+), 12 deletions(-) diff --git a/tests/spec/arb_texture_view/targets.c b/tests/spec/arb_texture_view/targets.c index 2c2e5c

Re: [Piglit] [PATCH] Add a "Contributing Patches" section to the HACKING file.

2013-11-13 Thread Brian Paul
ter discussed in real time, many piglit +developers can also be found in the #dri-devel channel on Freenode +IRC. Thanks, Paul! Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] piglit: don't report fail for WAFFLE_ERROR_BUILT_WITHOUT_SUPPORT

2013-11-18 Thread Brian Paul
If we build waffle w/out ES support and we run all.tests, quick.tests, etc. we get lots of 'fail' results for the ES tests. This change causes those tests to be reported as 'skip' instead. --- tests/util/piglit-util-waffle.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a

Re: [Piglit] [PATCH 2/2] core: don't report warn if stderr is not empty

2013-11-18 Thread Brian Paul
On 11/18/2013 04:02 PM, Dylan Baker wrote: On Monday, November 18, 2013 03:33:34 PM Marek Olšák wrote: From: Marek Olšák The usefulness of this is questionable to say the least. --- framework/core.py | 72 --- framework/exectest.py | 2 --

[Piglit] [PATCH] genmipmap-errors: require GL 3.0, fix incorrect extension check

2013-11-18 Thread Brian Paul
Since the test is in the spec/gl-3.0/ directory, we should probably require GL 3.0 or later. The check for GL_ARB_texture_float for GL_DEPTH32F_STENCIL8 was incorrect. The format is part of GL 3.0, not GL_ARB_texture_float. --- tests/spec/gl-3.0/api/genmipmap-errors.c |4 ++-- 1 file changed

Re: [Piglit] [PATCH] draw-range-elements-base-vertex: Require GLSL 1.30.

2013-11-19 Thread Brian Paul
**argv) if (piglit_get_gl_version() < 32) { piglit_require_extension("GL_ARB_draw_elements_base_vertex"); + piglit_require_GLSL_version(130); } /* Create program */ Reviewed-b

[Piglit] [PATCH] genmipmap-errors: fix/add extension checks

2013-11-19 Thread Brian Paul
GL_DEPTH24_STENCIL8 is defined by GL_EXT_packed_depth_stencil. GL_DEPTH32F_STENCIL8 is from GL_ARB_depth_buffer_float, not GL_ARB_texture_float. --- tests/spec/gl-3.0/api/genmipmap-errors.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/gl-3.0/api/genmipmap-e

Re: [Piglit] [PATCH] genmipmap-errors: require GL 3.0, fix incorrect extension check

2013-11-19 Thread Brian Paul
On 11/19/2013 11:54 AM, Eric Anholt wrote: Brian Paul writes: Since the test is in the spec/gl-3.0/ directory, we should probably require GL 3.0 or later. The check for GL_ARB_texture_float for GL_DEPTH32F_STENCIL8 was incorrect. The format is part of GL 3.0, not GL_ARB_texture_float. Or

Re: [Piglit] [PATCH] piglit: don't report fail for WAFFLE_ERROR_BUILT_WITHOUT_SUPPORT

2013-11-20 Thread Brian Paul
On 11/18/2013 01:59 PM, Brian Paul wrote: If we build waffle w/out ES support and we run all.tests, quick.tests, etc. we get lots of 'fail' results for the ES tests. This change causes those tests to be reported as 'skip' instead. --- tests/util/piglit-util-waffle.c

[Piglit] [PATCH 1/4] piglit: run glean tests with --quick option

2013-11-20 Thread Brian Paul
To get more reasonable run times. --- framework/gleantest.py |1 + 1 file changed, 1 insertion(+) diff --git a/framework/gleantest.py b/framework/gleantest.py index 88432e0..7bfc62e 100644 --- a/framework/gleantest.py +++ b/framework/gleantest.py @@ -35,6 +35,7 @@ class GleanTest(ExecTest):

[Piglit] [PATCH 2/4] glean/blendFunc: use larger test stride for --quick option

2013-11-20 Thread Brian Paul
--- tests/glean/tblend.cpp |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/glean/tblend.cpp b/tests/glean/tblend.cpp index 6611729..a0f67b7 100644 --- a/tests/glean/tblend.cpp +++ b/tests/glean/tblend.cpp @@ -800,7 +800,7 @@ BlendFuncTest::runOne(BlendFuncResult& r, Wi

[Piglit] [PATCH 4/4] glean/pointatten: use test stride of 5 for --quick option

2013-11-20 Thread Brian Paul
--- tests/glean/tpointatten.cpp | 16 1 file changed, 16 insertions(+) diff --git a/tests/glean/tpointatten.cpp b/tests/glean/tpointatten.cpp index 08076ca..0dee922 100644 --- a/tests/glean/tpointatten.cpp +++ b/tests/glean/tpointatten.cpp @@ -169,11 +169,19 @@ PointAttenuation

[Piglit] [PATCH] arb_viewport_array: add test to check for a MacOS AMD bug

2013-11-20 Thread Brian Paul
NG + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +/** + * Check for a glScissorIndexed() bug found in MacOS AMD driver. + * Passes with NVIDIA's Linux driver. + * + * Brian Paul and others at VMware + * 15 Nov 2013 + */ + + +

[Piglit] [PATCH] rendermode-feedback: add static, const qualifiers

2013-11-20 Thread Brian Paul
--- tests/spec/gl-1.0/rendermode-feedback.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/spec/gl-1.0/rendermode-feedback.c b/tests/spec/gl-1.0/rendermode-feedback.c index 8691c96..eb48bce 100644 --- a/tests/spec/gl-1.0/rendermode-feedback.c +++ b/tests/

[Piglit] [PATCH 3/4] glean/pixelformats: use test stride of 13 for --quick option

2013-11-20 Thread Brian Paul
--- tests/glean/tpixelformats.cpp | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/tests/glean/tpixelformats.cpp b/tests/glean/tpixelformats.cpp index 3518ed1..27881bf 100644 --- a/tests/glean/tpixelformats.cpp +++ b/tests/glean/tpixelformats.cpp @@ -156

[Piglit] [PATCH] s3tc-errors: fix bad call to glPixelStorei()

2013-11-20 Thread Brian Paul
Passing a negative value for GL_UNPACK_SKIP_PIXELS raises a GL error that we don't want. Just pass 0 for both SKIP_PIXELS and SKIP_ROWS. --- tests/texturing/s3tc-errors.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/texturing/s3tc-errors.c b/tests/texturing/s3t

[Piglit] [PATCH] shader_runner: check for no GLSL program in setup_ubos()

2013-11-20 Thread Brian Paul
If we're running an ARB_vertex/fragment_program test, there will be no GLSL shader program and 'prog' will be zero. Return early to avoid generating an error from the GL_ACTIVE_UNIFORM_BLOCKS query. --- tests/shaders/shader_runner.c |5 + 1 file changed, 5 insertions(+) diff --git a/test

[Piglit] piglit-run.py regression

2013-11-20 Thread Brian Paul
On two Mint systems I'm seeing this problem: $ ./piglit-run.py -t kil tests/all.tests results/kil Traceback (most recent call last): File "./piglit-run.py", line 148, in main() File "./piglit-run.py", line 118, in main json_writer.write_dict_item(key, value) File "/home/brian/pigli

Re: [Piglit] [PATCH] bugzilla 71822: Fix regression introduced to piglit-run.py

2013-11-20 Thread Brian Paul
try: Tested-by: Brian Paul Thanks, Dylan! -Brian ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] gl-1.0/long-dlist: add test of long display lists

2013-11-23 Thread Brian Paul
--- tests/all.tests |1 + tests/spec/gl-1.0/CMakeLists.gl.txt |1 + tests/spec/gl-1.0/long-dlist.c | 92 +++ 3 files changed, 94 insertions(+) create mode 100644 tests/spec/gl-1.0/long-dlist.c diff --git a/tests/all.tests b/tests

Re: [Piglit] [PATCH] ARB_texture_view: Add format test case for formats not in VIEW_CLASS table

2013-12-04 Thread Brian Paul
Looks OK to me. Tested on NVIDIA (fails some cases due to apparent driver bug). Pushed with minor whitespace change. -Brian On 12/02/2013 10:15 AM, Jon Ashburn wrote: Can anyone review this patch from a week ago? Thanks, Jon Ashburn On 11/25/13, 5:43 PM, Jon Ashburn wrote: Add test case f

Re: [Piglit] [PATCH] arb_base_instance: Include OpenGL directories.

2013-12-05 Thread Brian Paul
@@ +include_directories ( + ${GLEXT_INCLUDE_DIR} + ${OPENGL_INCLUDE_PATH} +) + link_libraries ( piglitutil_${piglit_target_api} ${OPENGL_gl_LIBRARY} Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org

[Piglit] [PATCH] gl-3.2-depth-tex-sampling: test OpenGL 3.2 core depth texture sampling

2013-12-05 Thread Brian Paul
ion, page 332: + * "Depth texture mode - DEPTH_TEXTURE_MODE. Section 3.8.15 is to be + * changed so that r is returned to texture samplers directly, and + * the OpenGL Shading Language 1.30 Specification is to be changed + * so that (r,r,r,1) is alwa

Re: [Piglit] [PATCH 1/3] clearbuffer-display-lists: GL_BACK_is not allowed as drawbuffer

2013-12-05 Thread Brian Paul
On 12/05/2013 10:55 AM, Marek Olšák wrote: From: Marek Olšák Only 0 to MAX_DRAW_BUFFERS-1 is allowed. If you want to clear GL_BACK, call glDrawBuffers(GL_BACK) and then glClearBuffer(GL_COLOR, 0, ..). --- For the series: Reviewed-by: Brian Paul

Re: [Piglit] [PATCH 1/2] Fix piglit syle in GL_ARB_sync/sync-initialize.

2013-12-06 Thread Brian Paul
On 12/05/2013 06:56 PM, Eric Anholt wrote: --- tests/spec/arb_sync/sync-initialize.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http

Re: [Piglit] [PATCH] for gles v1 extension oes_query_matrix

2013-12-12 Thread Brian Paul
On 12/12/2013 07:42 AM, Huang Jun wrote: --- tests/all.tests|4 + tests/spec/CMakeLists.txt |1 + tests/spec/oes_query_matrix/CMakeLists.gles1.txt |7 + tests/spec/oes_query_matrix/CMakeLists.txt |1 + te

Re: [Piglit] [PATCH V2 1/2] ARB_clear_buffer_object: Add bunch of tests

2013-12-16 Thread Brian Paul
On 12/14/2013 10:02 AM, Pi Tabred wrote: - clear-buffer-sub: test if buffer subregions are correctly cleared - clear-buffer: test if entire buffer is correctly cleared - negative-already-mapped: test if buffer or buffer range is already mapped - negative-bad-format-type: test - combinat

Re: [Piglit] [PATCH] for gles v1 extension oes_query_matrix

2013-12-18 Thread Brian Paul
On 12/17/2013 07:06 PM, Huang, JunX A wrote: Hi Paul, Thanks for your correcting! But I still can not follow your following saying, could you be more specific? "Also, maybe it should be structured so that the floating point matrix is first constructed from the mantisa & exponent arrays first.

Re: [Piglit] [PATCH 1/7] depthstencil-render-miplevels: Add missing extension checks

2013-12-19 Thread Brian Paul
On 12/19/2013 12:37 PM, Ian Romanick wrote: From: Ian Romanick Signed-off-by: Ian Romanick --- tests/texturing/depthstencil-render-miplevels.cpp | 5 + 1 file changed, 5 insertions(+) For the series, quick review, LGTM. Reviewed-by: Brian Paul

Re: [Piglit] [PATCH] util: Do not define asprintf for MinGW.

2013-12-20 Thread Brian Paul
be on the alert for any regressions here. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] util: Fix GCC format-security warnings.

2013-12-21 Thread Brian Paul
est_result(subtest_result, "%s", all_subtests[i].name); piglit_merge_result(&result, subtest_result); Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] ext_transform_feedback-api-errors: Silence _GNU_SOURCE redefined warning.

2013-12-21 Thread Brian Paul
i-errors.c @@ -48,7 +48,9 @@ * implementation is not overly aggressive in flagging errors. */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif #include "piglit-util-gl-common.h" PIGLIT_GL_TEST_CONFIG_BEGIN Reviewed-by: Brian Paul ___

Re: [Piglit] [PATCH] util: Do not define asprintf for MinGW.

2013-12-21 Thread Brian Paul
On 12/20/2013 04:33 PM, Brian Paul wrote: On 12/19/2013 05:39 PM, Vinson Lee wrote: MinGW provides asprintf in stdio.h. Bugzilla: https://urldefense.proofpoint.com/v1/url?u=https://bugs.freedesktop.org/show_bug.cgi?id%3D72556&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp

Re: [Piglit] [PATCH] gl-3.2-depth-tex-sampling: test OpenGL 3.2 core depth texture sampling

2013-12-22 Thread Brian Paul
On 12/21/2013 05:01 PM, Marek Olšák wrote: This test is wrong. The section 3.8.7 (page 160) of the GL 3.2 core specification says: "Depth textures and the depth components of depth/stencil textures can be treated as RED textures during texture filtering and application (see section 3.8.15). The

[Piglit] [PATCH] gl-3.2-depth-tex-sampling: fix the test to expect "red" depth samples

2013-12-22 Thread Brian Paul
xtures and the depth components of depth/stencil textures can + * be treated as RED textures during texture filtering and application + * (see section 3.8.15). The initial state for depth and depth/stencil + * textures treats them as RED textures." * * Brian Paul * 5 Dec 2013 @@ -181,14 +175

Re: [Piglit] [PATCH] gl-3.2-depth-tex-sampling: test OpenGL 3.2 core depth texture sampling

2013-12-22 Thread Brian Paul
On 12/21/2013 05:01 PM, Marek Olšák wrote: This test is wrong. The section 3.8.7 (page 160) of the GL 3.2 core specification says: "Depth textures and the depth components of depth/stencil textures can be treated as RED textures during texture filtering and application (see section 3.8.15). The

Re: [Piglit] [PATCH] cmake: Check for asprintf.

2013-12-22 Thread Brian Paul
1BIlLLqw%3D%3D%0A&r=lGQMzzTgII0I7jefp2FHq7WtZ%2BTLs8wadB%2BiIj9xpBY%3D%0A&m=B9FQT9xPZisThoztsRIIsb2v4JD4DAjsVwrD7xgTBvg%3D%0A&s=4d821799162f254b69415e626d846674a60f45ae0fc42617cc5a630985b94365 #ifndef INFINITY That seems to work on my system.

Re: [Piglit] [PATCH 1/8] tests/util: Link with rt if PIGLIT_HAS_POSIX_CLOCK_MONOTONIC

2014-01-06 Thread Brian Paul
L_INCLUDES ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} Thanks. This fixes a problem I saw on one of my systems. I'll push this patch soon. Tested-by: Brian Paul ___ Piglit mailing list Piglit@lists.freed

Re: [Piglit] [PATCH] fbo-generatemipmap-formats: Fix uninitialized variable warnings.

2014-01-06 Thread Brian Paul
basetype) type = GL_FLOAT; } else { assert(0); + format = GL_NONE; + type = GL_NONE; } } else { tex = piglit_rgbw_

Re: [Piglit] [PATCH] fbo-incomplete: Fix GCC format-security warnings.

2014-01-06 Thread Brian Paul
exture_cube_map_array") && piglit_get_gl_version() < 40) { - piglit_report_subtest_result(PIGLIT_SKIP, subtest_name); + piglit_report_subtest_result(PIGLIT_SKIP, "%s", subtest_name); return true; } Reviewed

Re: [Piglit] [PATCH] tests/util: Link with rt only if librt exists.

2014-01-07 Thread Brian Paul
xt index df2ea70..6745a2f 100644 --- a/tests/util/CMakeLists.txt +++ b/tests/util/CMakeLists.txt @@ -1,6 +1,6 @@ add_definitions(-DSOURCE_DIR="${piglit_SOURCE_DIR}/") -if(PIGLIT_HAS_POSIX_CLOCK_MONOTONIC) +if(PIGLIT_HAS_POSIX_CLOCK_MONOTONIC AND HAVE_LIBRT) link_libraries(rt) endi

Re: [Piglit] [PATCH] fbo-drawbuffers-none: test drawbuffer configurations with GL_NONE

2014-01-08 Thread Brian Paul
Just minor nits below but looks good otherwise. Reviewed-by: Brian Paul On 01/08/2014 10:17 AM, Marek Olšák wrote: From: Marek Olšák --- tests/all.tests| 8 + .../spec/arb_framebuffer_object/CMakeLists.gl.txt | 1 + .../arb_framebuffer_object/fbo

Re: [Piglit] [PATCH] fbo-rg: Silence uninitialized variable warning.

2014-01-11 Thread Brian Paul
t_init(int argc, char **argv) { - GLenum internal_format; + GLenum internal_format = GL_NONE; const char *fmt; if ((argc == 1) || (strncmp(argv[1], "GL_R", 4) != 0)) This and the other 6 piglit patches look fine to me. Rev

Re: [Piglit] [PATCH] array-texture: fail if any of the subtests fail rather than the last

2014-01-13 Thread Brian Paul
Reviewed-by: Brian Paul On 01/13/2014 02:34 PM, Ilia Mirkin wrote: ping^2? On Fri, Dec 20, 2013 at 3:04 PM, Ilia Mirkin wrote: ping? On Sun, Dec 8, 2013 at 2:48 AM, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin --- tests/texturing/array-texture.c | 12 1 file changed

Re: [Piglit] [PATCH] tex3d-maxsize: Silence uninitialized variable warnings.

2014-01-17 Thread Brian Paul
TexImage3D(GL_TEXTURE_3D, 0, GL_RGBA8, width, height, depth, 0, For both: Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] cubemap-getteximage-pbo: Silence NUMCOLORS redefined warning on MinGW.

2014-01-17 Thread Brian Paul
bo.c +++ b/tests/texturing/cubemap-getteximage-pbo.c @@ -38,6 +38,7 @@ PIGLIT_GL_TEST_CONFIG_BEGIN PIGLIT_GL_TEST_CONFIG_END +#undef NUMCOLORS #define NUMCOLORS7 #define TEX_WIDTH32 #define TEX_HEIGHT 32 Reviewed-by:

Re: [Piglit] [PATCH] gl-3.2-depth-tex-sampling: Check piglit_check_gl_error return value.

2014-01-20 Thread Brian Paul
pass = piglit_check_gl_error(GL_NO_ERROR) && pass; return pass ? PIGLIT_PASS : PIGLIT_FAIL; } For all six patches: Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] util: Silence WIN32_LEAN_AND_MEAN redefined warning.

2014-01-25 Thread Brian Paul
#define WIN32_LEAN_AND_MEAN +#endif #include #endif All 7 patches look OK to me. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] gl-3.2-depth-tex-sampling: Check return value of piglit_check_gl_error.

2014-01-30 Thread Brian Paul
eck_gl_error(GL_NO_ERROR); > + if (!piglit_check_gl_error(GL_NO_ERROR)) { > + piglit_report_result(PIGLIT_FAIL); > + } > > return vbo; > } > I think I had those calls in there just as sanity checks during development. They coul

Re: [Piglit] [PATCH 00/11] max-texture-size test overhaul

2014-02-02 Thread Brian Paul
ite this test too but never carried through on it. Reviewed-by: Brian Paul One issue I recall is the width*height*depth calculation overflowing a 32-bit int/size_t somewhere, causing invalid results on 32-bit systems. That might still need to be addressed. -Brian ___

  1   2   3   4   5   6   7   8   9   10   >