[Piglit] [PATCH 3/4] fp-indirections2: limit max_samples to 256

2014-09-19 Thread Brian Paul
So that llvmpipe can run in a reasonable amount of time. --- tests/shaders/fp-indirections2.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/shaders/fp-indirections2.c b/tests/shaders/fp-indirections2.c index 0b1ee28..5cf09eb 100644 ---

[Piglit] [PATCH 2/4] fs-texelFetchOffset-2D: use default window size

2014-09-19 Thread Brian Paul
--- tests/spec/glsl-1.30/execution/fs-texelFetchOffset-2D.c |3 --- 1 file changed, 3 deletions(-) diff --git a/tests/spec/glsl-1.30/execution/fs-texelFetchOffset-2D.c b/tests/spec/glsl-1.30/execution/fs-texelFetchOffset-2D.c index 1905900..f461d58 100644 ---

[Piglit] [PATCH 1/4] fs-discard-exit-2: use default window size

2014-09-19 Thread Brian Paul
To fix Windows run. --- tests/spec/glsl-1.30/execution/fs-discard-exit-2.c | 19 --- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/tests/spec/glsl-1.30/execution/fs-discard-exit-2.c b/tests/spec/glsl-1.30/execution/fs-discard-exit-2.c index 2a003fe..e9b6cd2

Re: [Piglit] [PATCH piglit v2] teximage-color: Fix un_to_float for 32-bit builds

2014-09-18 Thread Brian Paul
On 09/18/2014 04:24 AM, Neil Roberts wrote: Ilia Mirkin imir...@alum.mit.edu writes: Just bikeshedding here, but isn't the common way of doing this to just have (1ULL bits) - 1 ? Yes, that's probably more clear. One advantage of doing the shift in the other direction is if we ever end up

Re: [Piglit] [PATCH] fp-indirections: limit to 1024 indirections

2014-09-18 Thread Brian Paul
Reviewed-by: Brian Paul bri...@vmware.com Just a minor suggestion below (in 2 places). On 09/18/2014 08:09 AM, srol...@vmware.com wrote: From: Roland Scheidegger srol...@vmware.com The test takes ages (somewhere in the order of an hour) on llvmpipe, because the driver announces support

[Piglit] [PATCH] teximage-colors: fix divide by zero issue

2014-09-17 Thread Brian Paul
Not exactly sure why, but the max = ~(~0ul bits) assignment resulted in max=0 when bits==32 with MinGW. This caused us to do a divide by zero and many of the tests failed. Special-case the 32-bit case and change the arithmetic to be a little simpler (to me at least). Change sn_to_float() to be

Re: [Piglit] [PATCH] teximage-colors: fix divide by zero issue

2014-09-17 Thread Brian Paul
Ugh, I see this has already been covered today. I don't have a strong preference for which fix is used. -Brian On 09/17/2014 11:14 AM, Brian Paul wrote: Not exactly sure why, but the max = ~(~0ul bits) assignment resulted in max=0 when bits==32 with MinGW. This caused us to do a divide

[Piglit] [PATCH] asmparsertest: add new SWZ test to exercise Mesa bug/assertion

2014-09-16 Thread Brian Paul
The Mesa program optimizer was failing some assertions because of the SWZ 0, 1 terms. --- tests/all.py|1 + tests/asmparsertest/shaders/ARBfp1.0/swz-08.txt |8 2 files changed, 9 insertions(+) create mode 100644

Re: [Piglit] [PATCH v3] polygon-line-aa test case added.

2014-09-09 Thread Brian Paul
Two comments below. -Brian On 09/09/2014 03:23 AM, Iago Toral Quiroga wrote: This has been hanging here for a while, so if nobody says otherwise I'd like to push this next week. Iago On jue, 2014-06-12 at 09:00 +0200, Iago Toral Quiroga wrote: This tests correct rendering of polygons using

Re: [Piglit] [PATCH] glsl-1.20: new test for a GLSL scoping bug in Mesa

2014-09-09 Thread Brian Paul
. There is no way to access the hidden name or +// make it unhidden, without exiting the scope that hid it. + +#version 120 + +struct Name { +float a; +}; + +void main() +{ +vec4 Name = vec4(1.0); +gl_Position = Name; +} + Reviewed-by: Brian Paul bri...@vmware.com

[Piglit] [PATCH] s3tc-errors: check GL_ARB_compressed_texture_pixel_storage errors

2014-09-04 Thread Brian Paul
Basic checking that the SKIP_PIXELS, SKIP_ROWS parameters are multiples of the block size. And check that if a GL error is generated, the glCompressedTexSubImage2D() call is no-op'd (to exercise a Mesa bug.) --- tests/texturing/s3tc-errors.c | 78 + 1

[Piglit] [PATCH 1/2] ext_timer_query: add Windows support in time-elapsed.c

2014-09-04 Thread Brian Paul
From: Meng-Lin Wu mengl...@vmware.com Reviewed-by: Brian Paul bri...@vmware.com --- tests/spec/ext_timer_query/CMakeLists.gl.txt |5 +-- tests/spec/ext_timer_query/time-elapsed.c| 58 +++--- 2 files changed, 44 insertions(+), 19 deletions(-) diff --git a/tests/spec

[Piglit] [PATCH 2/2] arb_timer_query: add Windows support for timestamp-get.c

2014-09-04 Thread Brian Paul
From: Meng-Lin Wu mengl...@vmware.com And silence MinGW compiler warnings when printing 64-bit ints. Reviewed-by: Brian Paul bri...@vmware.com --- tests/spec/arb_timer_query/CMakeLists.gl.txt |4 +--- tests/spec/arb_timer_query/timestamp-get.c | 32 -- 2 files

Re: [Piglit] [PATCH 1/2] ext_timer_query: add Windows support in time-elapsed.c

2014-09-04 Thread Brian Paul
to do that too. But the two get time functions in the two test aren't identical (one returns float, the other int64, for example) and I don't have time right now to unify things. I'd like to commit these as-is for the time being. -Brian Cheers, Emil On 04/09/14 20:34, Brian Paul wrote

Re: [Piglit] [PATCH 1/2] ext_timer_query: add Windows support in time-elapsed.c

2014-09-04 Thread Brian Paul
On 09/04/2014 03:07 PM, Emil Velikov wrote: On 04/09/14 21:56, Brian Paul wrote: On 09/04/2014 02:25 PM, Emil Velikov wrote: Hi Brian, Wouldn't it be better if we add a couple of wrapper functions: piglit_get_time and piglit_sleep ? This way we'll be able to keep the tests clean and OS

Re: [Piglit] [PATCH] arb_explicit_attrib_location: Remove unnecessary dependence on GL_ARB_blend_func_extended

2014-08-20 Thread Brian Paul
: GL_ARB_explicit_attrib_location // [end config] // // While the GL_ARB_explicit_attrib_location specification does not say Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] maxuniformblocksize: fix vs/fsexceed test index

2014-08-15 Thread Brian Paul
For the exceed test, we create an array in a UBO that's one vector larger than what's supposed to be supported. The shader program is allowed to link or not link in this situation. But if it does link, the behavior of indexing beyond the UBO size probably isn't well defined. Instead of

Re: [Piglit] Default window sizes and NPOT

2014-08-15 Thread Brian Paul
On 08/15/2014 08:52 AM, Ilia Mirkin wrote: Brian, You recently went on a campaign against setting .window_width/height in piglit tests, in order to fix issues on Windows I guess? I noticed that a bunch of failures on a NV17 card (GeForce4 MX 440) are due to the fact that the window sizes are

[Piglit] [PATCH] s3tc-errors: check GL_ARB_compressed_texture_pixel_storage errors

2014-08-15 Thread Brian Paul
Basic checking that the SKIP_PIXELS, SKIP_ROWS parameters are multiples of the block size. And check that if a GL error is generated, the glCompressedTexSubImage2D() call is no-op'd (to exercise a Mesa bug.) --- tests/texturing/s3tc-errors.c | 78 + 1

Re: [Piglit] Support for waffle WGL and related cleanups

2014-08-13 Thread Brian Paul
if you have any doubts though. See my other replies for a few minor nits. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 10/12] HACK: cmake: link in waffle's third_party static libraries

2014-08-13 Thread Brian Paul
On 08/12/2014 11:18 AM, Emil Velikov wrote: For some bizzare reason the MSVC build fails with unresolved symbols without these two set in. I'm suspecting that something fishy is happening with waffle and/or cmake + MSVC. Until we have that one resolved, this helps us get through with the build.

Re: [Piglit] [PATCH 06/12] c99: resolve MSVC 2013 builds

2014-08-13 Thread Brian Paul
On 08/12/2014 11:18 AM, Emil Velikov wrote: MSVC 2013 provides _MSC_VER 1800 and __STDC_VERSION__ 199901L. As such the preprocessor tries ot evaluate the undefined symbol __GNUC__, s/ot/to/ agrees that is less than 3 and we end up with the following error message:

Re: [Piglit] [PATCH 04/12] utils: add initial WAFFLE_WGL support

2014-08-13 Thread Brian Paul
On 08/12/2014 11:18 AM, Emil Velikov wrote: This will allow up to use waffle with it's upcoming WGL support for s/up/us/ s/it's/its/ Windows. With that done, the final step to removing glut is to convert piglit to use waffle for MacOS. Current implementation does not have input

Re: [Piglit] [PATCH v2] glsl-1.50-geometry-tri-strip-ordering-with-prim-restart: Fix typo.

2014-08-08 Thread Brian Paul
) == 0) prim_restart_index = 0xff; 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/fragdepth: add new, simple test of gl_FragDepth

2014-08-08 Thread Brian Paul
On 08/07/2014 04:17 PM, Anuj Phogat wrote: On Tue, Aug 5, 2014 at 3:07 PM, Brian Paul bri...@vmware.com wrote: --- tests/all.py |1 + tests/spec/glsl-1.10/execution/CMakeLists.gl.txt |1 + tests/spec/glsl-1.10/execution/fragdepth.c | 115

Re: [Piglit] [PATCH] arb_shader_atomic_counters-unique-id: Fix memory leak.

2014-08-07 Thread Brian Paul
not unique.\n); +free(frequency); return false; } } Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http

Re: [Piglit] [PATCH] glsl-1.50-geometry-tri-strip-ordering-with-prim-restart: Remove dead code.

2014-08-07 Thread Brian Paul
On 08/06/2014 07:23 PM, Vinson Lee wrote: tests is a static array. Fixes Coverity Array compared against 0 defect. Signed-off-by: Vinson Lee v...@freedesktop.org --- .../glsl-1.50/execution/geometry/tri-strip-ordering-with-prim-restart.c | 2 -- 1 file changed, 2 deletions(-) diff --git

Re: [Piglit] [PATCH 3/3] oes_compressed_etc2_texture-miptree: fix the R11 test

2014-08-07 Thread Brian Paul
); } + if (draw_red_only) + glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); + pass = piglit_probe_rect_halves_equal_rgba(0, 0, window_width, window_height); piglit_present_results(); For the series: Reviewed-by: Brian Paul bri...@vmware.com

Re: [Piglit] [PATCH] Add test to verify glTexSubImage2D() with depth formats

2014-08-07 Thread Brian Paul
On 08/07/2014 11:34 AM, Anuj Phogat wrote: On Wed, Aug 6, 2014 at 5:53 AM, Brian Paul bri...@vmware.com wrote: On 08/05/2014 08:07 PM, Anuj Phogat wrote: This test verifies the bug fix in i965 drivers in mesa commit 984a02b. Reproduces another bug in the driver with GL_DEPTH_COMPONENT16

Re: [Piglit] [PATCH 3/3] ext_texture_array: add simple 1D/2D array rendering tests

2014-08-07 Thread Brian Paul
... On Fri, Aug 1, 2014 at 11:07 AM, Brian Paul bri...@vmware.com wrote: Check that we're sampling from the expected array slices. --- .../render-1darray-1slice.shader_test | 35 +++ .../ext_texture_array/render-1darray.shader_test | 45

Re: [Piglit] [PATCH] Add test to verify glTexSubImage2D() with depth formats

2014-08-06 Thread Brian Paul
); + } + } + piglit_present_results(); + return pass ? PIGLIT_PASS : PIGLIT_FAIL; +} Looks good otherwise. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org

Re: [Piglit] [PATCH 1/3] util: add piglit_array_texture() function

2014-08-05 Thread Brian Paul
On 08/05/2014 10:49 AM, Roland Scheidegger wrote: Am 01.08.2014 17:07, schrieb Brian Paul: For creating 1D/2D array textures. Each slice of the array is a solid color (red, green, blue, white, etc.) --- tests/util/piglit-util-gl.c | 97 --- tests

[Piglit] [PATCH] glsl-1.10/fragdepth: add new, simple test of gl_FragDepth

2014-08-05 Thread Brian Paul
OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +/** + * Test GLSL gl_FragDepth output. + * We draw overlapping red and green quads. The red quad is at Z=0 + * while the green quad's fragment depths vary from left to right. + * Should see intersecting quads. + * + * Brian Paul + * 5 August

[Piglit] [PATCH 1/3] util: add piglit_array_texture() function

2014-08-01 Thread Brian Paul
For creating 1D/2D array textures. Each slice of the array is a solid color (red, green, blue, white, etc.) --- tests/util/piglit-util-gl.c | 97 --- tests/util/piglit-util-gl.h |1 + 2 files changed, 92 insertions(+), 6 deletions(-) diff --git

[Piglit] [PATCH 2/3] shader_runner: add support for rgbw 1D/2DArray texture setup

2014-08-01 Thread Brian Paul
And remove the previous glEnable(GL_TEXTURE_2D_ARRAY) call. It's never legal. --- tests/shaders/shader_runner.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 2069fdf..398745f 100644 ---

[Piglit] [PATCH 3/3] ext_texture_array: add simple 1D/2D array rendering tests

2014-08-01 Thread Brian Paul
Check that we're sampling from the expected array slices. --- .../render-1darray-1slice.shader_test | 35 +++ .../ext_texture_array/render-1darray.shader_test | 45 .../render-2darray-1slice.shader_test | 34 +++

[Piglit] [PATCH 2/2] shader_runner: fix 1D array depth texture setup

2014-08-01 Thread Brian Paul
The second parameter should be the number of 1D slices, not the 3rd. As it was, piglit_depth_texture() was only initializing the first slice's data and not the other slices. --- tests/shaders/shader_runner.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[Piglit] [PATCH 1/2] util: don't minify height for 1D textures in piglit_depth_texture()

2014-08-01 Thread Brian Paul
This was never hit since no callers create 1D mipmapped depth textures. But fix it anyway. --- tests/util/piglit-util-gl.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index bbea519..caeb564 100644 ---

[Piglit] [PATCH 1/3] util: add piglit_2darray_texture() function

2014-07-31 Thread Brian Paul
Each slice of the 2D array is a solid color (red, green, blue, white, etc.) --- tests/util/piglit-util-gl.c | 79 +++ tests/util/piglit-util-gl.h |1 + 2 files changed, 74 insertions(+), 6 deletions(-) diff --git a/tests/util/piglit-util-gl.c

[Piglit] [PATCH 2/3] shader_runner: add support for rgbw 2DArray texture setup

2014-07-31 Thread Brian Paul
And remove the previous glEnable(GL_TEXTURE_2D_ARRAY) call. It's never legal. --- tests/shaders/shader_runner.c |8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 2069fdf..e4607ae 100644 ---

[Piglit] [PATCH 3/3] ext_texture_array: add a simple rendering test

2014-07-31 Thread Brian Paul
Check that we're sampling from the expected array slices. --- tests/spec/ext_texture_array/render.shader_test | 44 +++ 1 file changed, 44 insertions(+) create mode 100644 tests/spec/ext_texture_array/render.shader_test diff --git

Re: [Piglit] [PATCH] ext_framebuffer_multisample: Add NORETURN attribute to print_usage_and_exit.

2014-07-28 Thread Brian Paul
print_usage_and_exit(char *prog_name) { printf(Usage: %s num_samples blit_type\n Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] arb_uniform_buffer_object/maxblocks: use larger window, set viewport

2014-07-18 Thread Brian Paul
Commit 42d2fdf changed the test to use the default window size. But even before that, the window was too small for common values of GL_MAX_VERTEX/FRAGMENT/COMBINED_UNIFORM_BLOCKS so we skipped some testing. Now use a larger window and call glViewport() so that if we resize the window we don't

[Piglit] [PATCH] arb_vertex_type_2_10_10_10_rev/array_types: test vertex arrays

2014-07-18 Thread Brian Paul
using + * glVertexAttribPointer. We test all combinations of GL_INT_2_10_10_10_REV + * vs. GL_UNSIGNED_INT_2_10_10_10_REV and 4 vs. GL_BGRA and normalized vs. + * unnormalized. + * + * Authors: Meng-Lin Wu, Brian Paul + */ + + +#include piglit-util-gl.h + + +PIGLIT_GL_TEST_CONFIG_BEGIN

Re: [Piglit] [PATCH] glean/texCombine: Remove unused variables.

2014-07-17 Thread Brian Paul
CountCrossbarCombinations() const; bool RunCrossbarTest(glmachine machine, BasicResult r, Window w); - PFNGLACTIVETEXTUREARBPROC p_glActiveTextureARB; - PFNGLMULTITEXCOORD2FARBPROC p_glMultiTexCoord2fARB; - }; // class TexCombineTest } // namespace GLEAN Reviewed-by: Brian

Re: [Piglit] [PATCH] glsl-1.10/glsl-1.20: Rename tests to make case-insensitive filesystems work

2014-07-17 Thread Brian Paul
/spec/glsl-1.20/compiler/literals/valid-float-suffix-F.vert create mode 100644 tests/spec/glsl-1.20/compiler/literals/valid-float-suffix-capital-f.vert Yeah, there's failures in this area on Windows but I never investigated why. Reviewed-by: Brian Paul bri...@vmware.com

[Piglit] [PATCH] vertex-attrib-pointer-type-size-match: use a VAO for core profiles

2014-07-17 Thread Brian Paul
With core profile contexts, all vertex arrays must be in a vertex array object. This fixes the test with Mesa. v2: test for core profile instead of gl version --- .../vertex-attrib-pointer-type-size-match.c |6 ++ 1 file changed, 6 insertions(+) diff --git

Re: [Piglit] [PATCH] vertex-attrib-pointer-type-size-match: use a VAO for GL 3.0 and later.

2014-07-17 Thread Brian Paul
On 07/17/2014 12:36 PM, Matt Turner wrote: On Thu, Jul 17, 2014 at 6:26 AM, Brian Paul bri...@vmware.com wrote: With GL 3.0 and later, all vertex arrays must be in a vertex array object. This fixes the test with Mesa. Isn't it 3.1 (i.e., specifically core profiles) and later

[Piglit] [PATCH] framework: fix duplicated TEST_BIN_DIR for cygwin

2014-07-16 Thread Brian Paul
The GLSLParserTest, ShaderTest and GleanTest subclasses of the Test class were prepending the TEST_BIN_DIR variable onto the executable name (such as glslparsertest, shader_runner, and glean). But the Test class itself also does that so we were prepending TEST_BIN_DIR twice. With unix paths,

[Piglit] [PATCH] framework: fix duplicated TEST_BIN_DIR for cygwin

2014-07-16 Thread Brian Paul
The GLSLParserTest and ShaderTest subclasses of the PiglitTest class were prepending the TEST_BIN_DIR variable onto the executable name (such as glslparsertest and shader_runner). But the PiglitTest class itself also does that so we were prepending TEST_BIN_DIR twice. With unix paths,

[Piglit] [PATCH] shader_runner: wrap strtod() to parse inf with MSVC

2014-07-15 Thread Brian Paul
MSVC's strtod() function does not parse inf or -inf so add a wrapper function to do that. Several generated shader tests use inf uniforms. --- tests/shaders/shader_runner.c | 35 +-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git

Re: [Piglit] [PATCH] gl-3.0: add a test to stress the bound resource limits

2014-07-14 Thread Brian Paul
On 07/11/2014 04:30 PM, Matthew McClure wrote: Okay fixed. If approved, I am new to the project and do not have commit access so I will need help checking this in. Thanks, Matthew LGTM. I'll put my R-b on it and push it soon. -Brian ___ Piglit

[Piglit] [PATCH] polygon-offset: limit line width to 12 pixels

2014-07-14 Thread Brian Paul
12 is somewhat arbitrary, but it avoids total failure if the max line width is something large (like 255 in llvmpipe). --- tests/general/polygon-offset.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/general/polygon-offset.c b/tests/general/polygon-offset.c index

Re: [Piglit] [PATCH]tests/all.py: Fix built-in-constants* tests to use fullpath to shaders.

2014-07-10 Thread Brian Paul
different than the build and I had to fix a number of issues along these lines a while back. That said, this looks OK to me. It's doing basically the same thing as we do for shader_runner tests. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit

Re: [Piglit] [PATCH 0/4] Fix some compiler warnings

2014-07-09 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] [PATCH 08/16] util/gl: Unify extension detetction between GL and GLES

2014-07-09 Thread Brian Paul
detection On 07/09/2014 03:56 PM, Chad Versace wrote: Now that piglit-dispatch supports every OpenGL API, there is no longer a need to provide separate implementations for GL and GLES. This patch is safe for GLES because glGetStringi() is available in OpenGL ES 3.0. This patch brings us one

Re: [Piglit] [PATCH 00/16] util: Unify more stuff between GL and GLES

2014-07-09 Thread Brian Paul
against master 5c1760e on - Intel Ivybridge - mesa-10.2.2 - piglit run -p gbm -x glean -x glx tests/quick.py I did a quick read-through and the series looks good to me. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list

Re: [Piglit] [PATCH] gl-3.0: add a test to stress the bound resource limits

2014-07-09 Thread Brian Paul
On 07/09/2014 03:10 PM, Matthew McClure wrote: I reproduced Brian's issue with the NVIDIA drivers. Below is a list of the configurations I ran: GeForce GTX 650 * Ubuntu NVIDIA 304.88 - Allocation of Variable[GL_MAX_VARYING_FLOATS] succeeded, VBO usage succeeds. * Ubuntu NVIDIA 331.89 -

Re: [Piglit] [PATCH] gl-3.0: add a test to stress the bound resource limits

2014-07-08 Thread Brian Paul
On 07/07/2014 07:51 AM, Matthew McClure wrote: With this patch, we add a test that will stress the bound resource limits as determined by the GL API getInteger values. The bound resources are populated with floats given a table of primes. Each contribution is multiplied into the final

[Piglit] GL_ARB_explicit_attrib_location requirements

2014-07-08 Thread Brian Paul
The spec for GL_ARB_explicit_attrib_location says it requires OpenGL 2.0 or GL_ARB_vertex_shader and it's written against the OpenGL 3.2 core spec / GLSL 1.50. The extension spec says nothing about how the extension would work in GLSL before 1.50. Note that this extension adds a new layout

Re: [Piglit] [PATCH] gl-3.0: add a test to stress the bound resource limits

2014-07-08 Thread Brian Paul
On 07/08/2014 11:01 AM, Matthew McClure wrote: I ran this on Ubuntu 12.04.3 with: OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: GeForce GTX 650/PCIe/SSE2 OpenGL version string: 4.2.0 NVIDIA 304.116 OpenGL shading language version string: 4.20 NVIDIA via Cg compiler OpenGL

[Piglit] [PATCH] arb_texture_multisample: add new fetch-texel test

2014-07-08 Thread Brian Paul
, using fetchTexel() + * to grab a particular sample. We read back the colors to a temporary image. + * Finally, we check that the colors in the temp images are different for at + * least some of the pixels/samples. + * + * Brian Paul + * July 2014 + */ + + +#include piglit-util-gl-common.h

[Piglit] [PATCH] clipflat: fix 0/2 index typo

2014-07-08 Thread Brian Paul
Spotted by Meng-Lin Wu. --- tests/general/clipflat.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/general/clipflat.c b/tests/general/clipflat.c index 37a40af..03a069c 100644 --- a/tests/general/clipflat.c +++ b/tests/general/clipflat.c @@ -295,7 +295,7 @@

Re: [Piglit] [PATCH] gl-3.0: add a test to stress the bound resource limits

2014-07-08 Thread Brian Paul
On 07/08/2014 04:49 PM, Matthew McClure wrote: Update to reflect feedback from Brian Paul. The update includes documentation for each function and removal of the flat qualifier, since this version of the test is using GLSL 1.30. Verified on: Ubuntu 12.04.3 OpenGL vendor string: NVIDIA

Re: [Piglit] [PATCH] ext_framebuffer_multisample: Add NORETURN attribute to print_usage_and_exit.

2014-07-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] cmake: Require Mako = 0.7

2014-07-07 Thread Brian Paul
I'm having trouble with Mako since the requirement bump. I had an older version of Mako installed. I tried upgrading with sudo pip install --user --upgrade Mako but that didn't seem to work. Then I uninstalled Mako and tried installing again. The installation had some warnings but seems

Re: [Piglit] [PATCH] cmake: Require Mako = 0.7

2014-07-07 Thread Brian Paul
On 07/07/2014 09:26 AM, Brian Paul wrote: I'm having trouble with Mako since the requirement bump. I had an older version of Mako installed. I tried upgrading with sudo pip install --user --upgrade Mako but that didn't seem to work. Then I uninstalled Mako and tried installing again

[Piglit] [PATCH 1/2] arb_blend_func_extended: require GL 3.0

2014-07-03 Thread Brian Paul
Since the test shaders require GLSL 1.30 --- .../arb_blend_func_extended/execution/fbo-extended-blend-explicit.c |2 +- tests/spec/arb_blend_func_extended/execution/fbo-extended-blend.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[Piglit] [PATCH 2/2] arb_provoking_vertex/xfb-before-flatshading: use default window size

2014-07-03 Thread Brian Paul
--- tests/spec/arb_provoking_vertex/xfb-before-flatshading.c |2 -- 1 file changed, 2 deletions(-) diff --git a/tests/spec/arb_provoking_vertex/xfb-before-flatshading.c b/tests/spec/arb_provoking_vertex/xfb-before-flatshading.c index 67cc581..6d168ea 100644 ---

Re: [Piglit] [PATCH 1/3] spec/ARB_copy_image: Add a simple ARB_copy_image test

2014-06-30 Thread Brian Paul
On 06/30/2014 10:49 AM, Jason Ekstrand wrote: On Sat, Jun 28, 2014 at 6:28 AM, Brian Paul bri...@vmware.com mailto:bri...@vmware.com wrote: On 06/27/2014 05:31 PM, Jason Ekstrand wrote: This is a simple sanity test for the ARB_copy_image extension. This tests

Re: [Piglit] [PATCH 1/3] spec/ARB_copy_image: Add a simple ARB_copy_image test

2014-06-28 Thread Brian Paul
]); + + return pass ? PIGLIT_PASS : PIGLIT_FAIL; +} Looks good otherwise. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 2/3] ARB_copy_image: Add a test for testing different texture target combinations

2014-06-28 Thread Brian Paul
On 06/27/2014 05:31 PM, Jason Ekstrand wrote: This tests all of the possible different combinations of texture targets such as GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP, GL_TEXTURE_1D_ARRAY, etc. The only targets not tested are GL_TEXTURE_2D_MULTISAMPLE and GL_TEXTURE_2D_MULTISAMPLE_ARRAY but those

Re: [Piglit] [PATCH 3/3] ARB_copy_image: Test different combinations of texture formats

2014-06-28 Thread Brian Paul
On 06/27/2014 05:31 PM, Jason Ekstrand wrote: This tests glCopyTexSubImage on all of the allowed combinations of internal texture formats. Signed-off-by: Jason Ekstrand jason.ekstr...@intel.com --- tests/all.py| 77 +++

[Piglit] [PATCH 2/2] gl-3.0/integer-errors: do more glTexImage parameter error checking

2014-06-27 Thread Brian Paul
Instead of spot checking a few internalFormat/format/type combinations test all of them. And only test the core profile formats. The ext_texture_integer-errors test hits the other legacy/compat formats. Remove the tests for glDrawPixels, glReadPixels, etc. since that's covered in the new

Re: [Piglit] [PATCH] glsl-fs-color-matrix: Remove unused variable.

2014-06-26 Thread Brian Paul
}; For all 6 unused-var-removal patches: Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] util/framework/glut: check if we have a core profile

2014-06-25 Thread Brian Paul
For the GLUT framework, check the context version and whether GL_ARB_compatibility is supported to determine if we should set piglit_is_core_profile. Fixes some issues when running GL 3.1 and later on Windows. --- tests/util/piglit-framework-gl/piglit_glut_framework.c |8 1 file

Re: [Piglit] [PATCH] util/framework/glut: check if we have a core profile

2014-06-25 Thread Brian Paul
...@lists.freedesktop.org on behalf of Brian Paul bri...@vmware.com Sent: Wednesday, June 25, 2014 8:45 AM To: piglit@lists.freedesktop.org Subject: [Piglit] [PATCH] util/framework/glut: check if we have a core profile For the GLUT framework, check the context version and whether GL_ARB_compatibility is supported

[Piglit] [PATCH 1/2] piglit-dispatch: fix get_core_proc_address() for Windows

2014-06-25 Thread Brian Paul
Even for functions such as glGetStringi() which are in OpenGL 3.0, we call get_core_proc_address() with gl_10x_version = 10 (seems to be a larger problem in the dispatch code generation). That means we try GetProcAddress(OPENGL32.DLL) and fail. Now, if GetProcAddress() fails, try

[Piglit] [PATCH 2/2] util/framework/glut: do more core/compat profile checking

2014-06-25 Thread Brian Paul
Check if actually got a core profile. Then, if the tests requires a compat profile, skip the test. --- .../piglit-framework-gl/piglit_glut_framework.c| 22 1 file changed, 22 insertions(+) diff --git a/tests/util/piglit-framework-gl/piglit_glut_framework.c

[Piglit] [PATCH] arb_uniform_buffer_object-minmax: divide block size by 4 to get components

2014-06-25 Thread Brian Paul
GL_MAX_UNIFORM_BLOCK_SIZE is in bytes. A component is regarded as being four bytes in size. So to compute the number of components, divide the block size by 4. With this change, nvidia's driver passes the test. Found by Kai Ninomiya of VMware. --- tests/spec/arb_uniform_buffer_object/minmax.c

[Piglit] [PATCH] gl-3.0-render-integer: add a new test for rendering to integer textures

2014-06-19 Thread Brian Paul
OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +/** + * Test OpenGL 3.0 rendering to integer texture formats. + * Brian Paul + * 19 June 2014 + */ + +#include piglit-util-gl-common.h + +PIGLIT_GL_TEST_CONFIG_BEGIN + config.supports_gl_compat_version = 30; + config.window_visual

Re: [Piglit] [PATCH 3/4] pbo-readpixels-small: use default window size

2014-06-18 Thread Brian Paul
at this I assumed it was the glReadPixels(w=2,h=2) that was significant. I'll post a fix-up patch... -Brian On 06/08/2014 03:16 PM, Brian Paul wrote: --- tests/general/pbo-readpixels-small.c |3 --- 1 file changed, 3 deletions(-) diff --git a/tests/general/pbo-readpixels-small.c b

[Piglit] [PATCH] pbo-readpixels-small: restore 2x2 window size, report SKIP for other sizes

2014-06-18 Thread Brian Paul
This test requires a 2x2 window size- it's not just the glReadPixels(2x2) that matters. --- tests/general/pbo-readpixels-small.c |9 + 1 file changed, 9 insertions(+) diff --git a/tests/general/pbo-readpixels-small.c b/tests/general/pbo-readpixels-small.c index 900a929..9f2f338

Re: [Piglit] [PATCH] fbo-generatemipmap-1d: Remove unused variables.

2014-06-16 Thread Brian Paul
Reviewed-by: Brian Paul bri...@vmware.com On Fri, Jun 13, 2014 at 11:03 PM, Vinson Lee v...@freedesktop.org wrote: Fix clang unused-const-variable warnings. tests/fbo/fbo-generatemipmap-1d.c:44:20: warning: unused variable 'red' [-Wunused-const-variable] static const float red[] = {1, 0

Re: [Piglit] [PATCH v2] fbo: test that swizzle doesn't affect mipmap generation

2014-06-16 Thread Brian Paul
good otherwise. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] gl-3.0-vertexattribipointer: add argv support for running single tests

2014-06-16 Thread Brian Paul
--- tests/spec/gl-3.0/vertexattribipointer.c | 43 +++--- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/tests/spec/gl-3.0/vertexattribipointer.c b/tests/spec/gl-3.0/vertexattribipointer.c index b69e731..633b881 100644 ---

Re: [Piglit] [PATCH] framework/summary/html: Prevent forward slashes in URLs.

2014-06-12 Thread Brian Paul
Just to be clear, I think forward slash is / while backward slash is \. -Brian On 06/12/2014 06:22 AM, jfons...@vmware.com wrote: From: José Fonseca jfons...@vmware.com It's fine for URLs to have forward slash directory separators when viewing the HTML on Windows. But if one moves the HTML

Re: [Piglit] [PATCH] Hook up two new EXT_packed_depth_stencil tests added recently

2014-06-11 Thread Brian Paul
'] = concurrent_test('ext_packed_depth_stencil-readdrawpixels') oes_packed_depth_stencil = {} spec['OES_packed_depth_stencil'] = oes_packed_depth_stencil Reviewed-by: Brian Paul bri...@vmware.com Hmm, I did that but somehow it didn't make it into my patch. Thanks. -Brian

[Piglit] [PATCH] arb_uniform_buffer_object: add new rendering test

2014-06-11 Thread Brian Paul
Add a test that actually draws something with uniform buffer objects along the lines of what an application might do. --- tests/all.py |1 + .../arb_uniform_buffer_object/CMakeLists.gl.txt|1 + tests/spec/arb_uniform_buffer_object/rendering.c |

Re: [Piglit] [PATCH] framework/exectest.py: Set returncode to 0 when executable is missing.

2014-06-10 Thread Brian Paul
Test executable not found.\n) err = -returncode = None +returncode = 0 else: raise e Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list

[Piglit] [PATCH 4/4] remove glean depthstencil test

2014-06-09 Thread Brian Paul
IN THE SOFTWARE. -// -// END_COPYRIGHT - -// tdepthstencil.h: Test GL_EXT_packed_depth_stencil extension. -// Brian Paul 1 October 2005 - - -#include cassert -#include cmath -#include cstring -#include tdepthstencil.h -#include rand.h -#include image.h -#include piglit-util-gl-common.h - -namespace GLEAN

[Piglit] [PATCH 1/4] remove glean/tbufferobject test

2014-06-09 Thread Brian Paul
IN THE SOFTWARE. -// -// END_COPYRIGHT - -// tbufferobject.c - test various buffer object features/extensions -// Author: Brian Paul - - -#define GL_GLEXT_PROTOTYPES -#include cassert -#include cmath -#include cstring -#include stdlib.h -#include tbufferobject.h - - -namespace GLEAN

[Piglit] [PATCH 2/4] ext_packed_depth_stencil: new errors test

2014-06-09 Thread Brian Paul
. + * Based on an original Glean test written by Brian Paul. + */ + +#include piglit-util-gl-common.h + +PIGLIT_GL_TEST_CONFIG_BEGIN + config.supports_gl_compat_version = 12; + config.window_visual = (PIGLIT_GL_VISUAL_RGBA | + PIGLIT_GL_VISUAL_DEPTH

[Piglit] [PATCH 3/4] ext_packed_depth_stencil: new glRead/DrawPixels test

2014-06-09 Thread Brian Paul
DEALINGS + * IN THE SOFTWARE. + */ + +/** + * Test GL_EXT_packed_depth_stencil with glRead/DrawPixels + * Based on an original Glean test written by Brian Paul. + */ + +#include piglit-util-gl-common.h + +PIGLIT_GL_TEST_CONFIG_BEGIN + config.supports_gl_compat_version = 12

Re: [Piglit] [PATCH 1/4] util: Ensure that stdout and stderr are flushed on exceptions.

2014-06-09 Thread Brian Paul
); return EXCEPTION_CONTINUE_SEARCH; } The series looks OK to me, AFAICT. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 3/7] Test GL_ARB_clear_texture using a range of base formats

2014-06-06 Thread Brian Paul
On 06/05/2014 09:38 AM, Neil Roberts wrote: This adds a test for glClearTexSubImage when clearing a sub-region of a 2D texture using a range of formats that are supported in basic GL. A utility function is added to test a format combination so that further tests can be added with other formats

Re: [Piglit] [PATCH 5/7] Test GL_ARB_clear_texture using a range of sized formats

2014-06-06 Thread Brian Paul
On 06/05/2014 09:38 AM, Neil Roberts wrote: This adds a test for glClearTexSubImage when clearing a sub-region of a texture using a range of sized internal formats. --- tests/all.py | 1 + tests/spec/arb_clear_texture/CMakeLists.gl.txt | 1 +

Re: [Piglit] [PATCH 7/7] Test GL_ARB_clear_texture using 1- and 2- component textures

2014-06-06 Thread Brian Paul
On 06/05/2014 09:38 AM, Neil Roberts wrote: This adds a test for glClearTexSubImage when clearing a sub-region of textures using an internal format of GL_RED and GL_RG. --- tests/all.py | 1 + tests/spec/arb_clear_texture/CMakeLists.gl.txt | 1 +

Re: [Piglit] [PATCH v2 1/7] Test GL_ARB_clear_texture using 3D textures

2014-06-06 Thread Brian Paul
are then rendered to the window and probed for the correct results. --- Overall, the series looks good to me. Just a few nits that I posted. Reviewed-by: Brian Paul bri...@vmware.com ___ Piglit mailing list Piglit@lists.freedesktop.org http

Re: [Piglit] [PATCH 3/3] ext_transform_feedback: use default window size

2014-06-05 Thread Brian Paul
On 06/05/2014 05:51 AM, Jose Fonseca wrote: Looks ok. Though I still wonder if it wouldn't be to do as I suggested in another similar review request -- to treat config.window_width/height as minimum values, as opposed to maximum values. That is, something along the lines of diff --git

<    2   3   4   5   6   7   8   9   10   11   >