Re: [Piglit] [PATCH] Clean up depth-tex-modes-glsl a bit.

2012-09-24 Thread Brian Paul
new one. So I started by cleaning it up a bit. In the end I decided to write a new test anyway (already reviewed on the list), but figured the cleanups are worthwhile anyway. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freed

Re: [Piglit] [PATCH] glsl-fs-shadow2D-clamp-z: test clamping of Z in shadow2D

2012-09-24 Thread Brian Paul
1.0, 1.0, 1.0) Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] Test that sRGB-related blits are allowed and do not do encoding/decoding.

2012-09-25 Thread Brian Paul
On 09/24/2012 05:35 PM, Paul Berry wrote: The behaviour specified by OpenGL for blits involving sRGB is self-contradictory--it is unclear whether blits should perform sRGB encoding/decoding, and if so, whether this encoding/decoding should be dependent upon the setting of the GL_FRAMEBUFFER_SRGB

[Piglit] [PATCH 1/2] teximage-errors: use piglit_check_gl_error() helper

2012-09-27 Thread Brian Paul
From: Brian Paul --- tests/texturing/teximage-errors.c | 60 +--- 1 files changed, 22 insertions(+), 38 deletions(-) diff --git a/tests/texturing/teximage-errors.c b/tests/texturing/teximage-errors.c index 5f0497d..a5acc56 100644 --- a/tests/texturing

[Piglit] [PATCH 2/2] teximage-errors: fix a couple mistakes, add two new test cases

2012-09-27 Thread Brian Paul
From: Brian Paul Fix incorrect texture height (16, not 15). Fix incorrect width, height for glCopyTexSubImage2D() test. Add two new SubImage tests for non-existant mipmap levels. --- tests/texturing/teximage-errors.c | 15 +-- 1 files changed, 13 insertions(+), 2 deletions

[Piglit] to-do item: clean up GL error checks

2012-09-28 Thread Brian Paul
If someone's looking for something simple to do in piglit... There's about 150 instances of this in the tests: assert(glGetError() == 0); I think that quite a few of them should be replaced with: if (!piglit_check_gl_error(GL_NO_ERROR)) fail; Some seem to be development sanity checks but s

[Piglit] [PATCH 1/3] piglit: add compressed texture helper functions

2012-09-29 Thread Brian Paul
--- tests/util/piglit-util-gl-common.c | 85 tests/util/piglit-util-gl-common.h | 13 ++ 2 files changed, 98 insertions(+), 0 deletions(-) diff --git a/tests/util/piglit-util-gl-common.c b/tests/util/piglit-util-gl-common.c index 03d7420..7a5b2c7 1006

[Piglit] [PATCH 3/3] compressedteximage: use new piglit compressed texture helpers

2012-09-29 Thread Brian Paul
--- tests/texturing/compressedteximage.c | 52 ++--- 1 files changed, 22 insertions(+), 30 deletions(-) diff --git a/tests/texturing/compressedteximage.c b/tests/texturing/compressedteximage.c index dd83a7b..7bcac9f 100644 --- a/tests/texturing/compressedteximage.c

[Piglit] [PATCH 2/3] s3tc-errors: use new piglit compressed texture helpers

2012-09-29 Thread Brian Paul
--- tests/texturing/s3tc-errors.c | 90 +++-- 1 files changed, 15 insertions(+), 75 deletions(-) diff --git a/tests/texturing/s3tc-errors.c b/tests/texturing/s3tc-errors.c index 2f6ef89..8a6546d 100644 --- a/tests/texturing/s3tc-errors.c +++ b/tests/texturing

Re: [Piglit] to-do item: clean up GL error checks

2012-10-01 Thread Brian Paul
s are accepted by certain API functions. Those are the cases where piglit_check_gl_error() would be a better choice. -Brian On 09/30/2012 08:42 PM, Chris Forbes wrote: Hi Brian, I'll take this. Patches shortly. -- Chris On Sat, Sep 29, 2012 at 1:45 AM, Brian Paul wrote: If someone

[Piglit] [PATCH] s3tc-errors: add additional texture size checks

2012-10-02 Thread Brian Paul
Zero-sized tex images and sub images should not generate an error. Full images which are not multiples of the block size should also be legal. Verified w/ NVIDIA's driver. --- tests/texturing/s3tc-errors.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletio

Re: [Piglit] [PATCH] Add a test for GLES2 using GL_EXT_unpack_subimage with GL_BGRA_EXT

2012-10-03 Thread Brian Paul
On 10/02/2012 09:37 AM, Neil Roberts wrote: Hi, Rob Bradford was discussing a bug in Mesa where the fast path code for uploading texture data to BGRA textures on Sandybridge does not work with a subregion of the buffer using GL_UNPACK_SKIP_*. Here is a test for Piglit that exposes this bug on GL

[Piglit] [PATCH 1/3] piglit: add const qualifier for filename param for piglit_compile_shader()

2012-10-03 Thread Brian Paul
--- tests/util/piglit-shader.c |2 +- tests/util/piglit-shader.h |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/util/piglit-shader.c b/tests/util/piglit-shader.c index f097512..d04247d 100644 --- a/tests/util/piglit-shader.c +++ b/tests/util/piglit-shader.c @@

[Piglit] [PATCH 2/3] piglit: rename FindLine() to piglit_find_line()

2012-10-03 Thread Brian Paul
--- tests/util/piglit-util-gl.c |2 +- tests/util/piglit-util.c|2 +- tests/util/piglit-util.h|2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index 96f6258..cb697d8 100644 --- a/tests/util/piglit-ut

[Piglit] [PATCH 3/3] piglit: put 'void' in piglit_is_gles() and piglit_get_gl_version() decls

2012-10-03 Thread Brian Paul
--- tests/util/piglit-util-gl-common.c |4 ++-- tests/util/piglit-util-gl-common.h |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/util/piglit-util-gl-common.c b/tests/util/piglit-util-gl-common.c index a447a0f..62b5312 100644 --- a/tests/util/piglit-util-gl-

Re: [Piglit] [PATCH] Replace more if(piglit_get_gl_version() < N)...

2012-10-04 Thread Brian Paul
l_version()< 15) { - fprintf(stderr, "OpenGL 1.5 required.\n"); - piglit_report_result(PIGLIT_SKIP); - } + piglit_require_gl_version(15); piglit_require_GLSL(); piglit_require_transform_feedback(); Reviewed-by

Re: [Piglit] [PATCH] Use piglit_check_gl_error() instead of block with [f]printf.

2012-10-04 Thread Brian Paul
(!piglit_check_gl_error(GL_NO_ERROR)) piglit_report_result(PIGLIT_FAIL); - } piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); } Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 02/23] texline: Remove test

2012-10-04 Thread Brian Paul
/util/writeimg.h LGTM. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 1/3] depth-cube-map: remove useless glFinish and piglit_report_result

2012-10-07 Thread Brian Paul
; pass; > piglit_present_results(); > - piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); > return pass ? PIGLIT_PASS : PIGLIT_FAIL; > } For the series, Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] piglit-util-gl-common: fix ES1 / ES2 build error

2012-10-08 Thread Brian Paul
On Mon, Oct 8, 2012 at 6:17 PM, Jordan Justen wrote: > Signed-off-by: Jordan Justen > Cc: Brian Paul > Cc: Chad Versace > --- > tests/util/piglit-util-gl-common.c |7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/tests/util/piglit-util-gl-common.c &g

Re: [Piglit] [PATCH] draw-vertices-2101010: init color in piglit_draw

2012-10-09 Thread Brian Paul
].test; i++) { glBindBuffer(GL_ARRAY_BUFFER, 0); Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] all.tests: remove glean/teapot

2012-10-10 Thread Brian Paul
a performance test (several glean tests are perf tests). The focus of piglit has been correctness but I think it would be nice to develop a suite of performance measurement tests too. But that's a whole other discussion. I'm fine with this patch though. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] piglit-util-gl-common: fix ES1 / ES2 build error

2012-10-10 Thread Brian Paul
On 10/10/2012 12:27 PM, Chad Versace wrote: On 10/08/2012 06:23 PM, Brian Paul wrote: On Mon, Oct 8, 2012 at 6:17 PM, Jordan Justen wrote: Signed-off-by: Jordan Justen Cc: Brian Paul Cc: Chad Versace --- tests/util/piglit-util-gl-common.c |7 +++ 1 file changed, 7 insertions

Re: [Piglit] [PATCH] piglit-util-gl-common: fix ES1 / ES2 build error

2012-10-10 Thread Brian Paul
On 10/10/2012 01:26 PM, Chad Versace wrote: On 10/10/2012 12:00 PM, Brian Paul wrote: On 10/10/2012 12:27 PM, Chad Versace wrote: On 10/08/2012 06:23 PM, Brian Paul wrote: On Mon, Oct 8, 2012 at 6:17 PM, Jordan Justen wrote: Signed-off-by: Jordan Justen Cc: Brian Paul Cc: Chad Versace

Re: [Piglit] [PATCH] util: Add include guards in piglit_gl_framework.h.

2012-10-11 Thread Brian Paul
e +#ifndef PIGLIT_GL_FRAMEWORK_H +#define PIGLIT_GL_FRAMEWORK_H #include @@ -80,3 +82,5 @@ piglit_gl_framework_init(struct piglit_gl_framework *gl_fw, void piglit_gl_framework_teardown(struct piglit_gl_framework *gl_fw); + +#endif /* PIGLIT_GL_FRAMEWORK_H */ Reviewed-by:

Re: [Piglit] [PATCH] texturing: Add test unpack-teximage2d

2012-10-12 Thread Brian Paul
L_UNPACK_BUFFER, TEX_DATA_SIZE, tex_data, + GL_STATIC_DRAW); + } + + if (!piglit_check_gl_error(GL_NO_ERROR)) + piglit_report_result(PIGLIT_FAIL); +} + +enum piglit_result +piglit_display(void) +{ + bool pass = true; + const int num_subtests = 256; + int i; + + /* We reset the random seed for each call to piglit_display() so that +* the testrun is consistent. +*/ + srand(rand_seed); + + for (i = 0; i< num_subtests; ++i) { + logd("subtest %d:\n", i); + pass&= run_subtest(); + } + + return pass ? PIGLIT_PASS : PIGLIT_FAIL; +} Looks good. The comments are very helpful. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH v2] piglit-dispatch: patch glDraw{Arrays, Elements}InstancedARB dispatch to accept ARB_instanced_arrays.

2012-10-12 Thread Brian Paul
previous conditions were satisfied, then # the given dispatch set is not supported by the implementation, # so we want to call the unsupported() function. I'm not too familiar with this code but this looks OK to me. Reviewed-by: Brian Paul _

Re: [Piglit] arb_texture_multisample V2

2012-10-15 Thread Brian Paul
On 10/13/2012 08:55 PM, Chris Forbes wrote: Updated for new test config macros; added all.tests plumbing. Just a couple style comments- Piglit generally used tab-8 indentation. Some function calls have extra spaces, ex: "f( x )" instead of "f(x)". -Brian _

Re: [Piglit] [PATCH] tests/fbo-blit-stretch: add a 1x1 -> nxm stretch test case

2012-10-15 Thread Brian Paul
, DSTYMIN + 7, // stretch x y + GL_NEAREST, + }, + + + /* * Clip */ Looks OK to me. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo

Re: [Piglit] [Mesa-dev] [ANNOUNCE] waffle-1.1.0

2012-10-15 Thread Brian Paul
On 10/15/2012 02:37 AM, Chad Versace wrote: Waffle 1.1.0 is now available. Downloads and documentation are available at http://people.freedesktop.org/~chadversary/waffle/releases.html#1.1.0 Waffle is a cross-platform library that allows one to defer selection of GL API and of window system

[Piglit] [PATCH] piglit: fix crashes when using original GLUT

2012-10-15 Thread Brian Paul
The glutInit() function in the original GLUT expects argv[0] to be the program name (as from main()), not a NULL pointer. A strrchr() call crashes on NULL. For now, set argv[0]="piglit". Previously, glutInit would get the program path/name and it would appear in the window title. This seems to

Re: [Piglit] [PATCH] fbo-clear-format: test stencil glClear

2012-10-15 Thread Brian Paul
On 10/15/2012 11:10 AM, Marek Olšák wrote: The test visualizes the stencil buffer (unlike some other tests), which is very useful for debugging. Unfortunately, it doesn't work with Mesa. There seems to be a bogus GL error. The problem can be reproduced by running: ./fbo-clear-formats GL_EXT_pac

Re: [Piglit] [PATCH] piglit: fix crashes when using original GLUT

2012-10-15 Thread Brian Paul
On 10/15/2012 12:08 PM, Chad Versace wrote: On 10/15/2012 10:30 AM, Brian Paul wrote: The glutInit() function in the original GLUT expects argv[0] to be the program name (as from main()), not a NULL pointer. A strrchr() call crashes on NULL. For now, set argv[0]="piglit".

Re: [Piglit] [waffle] [Mesa-dev] [ANNOUNCE] waffle-1.1.0

2012-10-15 Thread Brian Paul
On 10/15/2012 12:13 PM, Chad Versace wrote: On 10/15/2012 07:57 AM, Brian Paul wrote: On 10/15/2012 02:37 AM, Chad Versace wrote: I unpacked the .xz file, then $ cd waffle-1.1.0 $ export WAFFLE_SOURCE_DIR=$PWD/src $ cmake \ -DCMAKE_LIBRARY_PATH=$(echo $LIBRARY_PATH | sed 's/

Re: [Piglit] [waffle] [Mesa-dev] [ANNOUNCE] waffle-1.1.0

2012-10-15 Thread Brian Paul
On 10/15/2012 12:42 PM, Chad Versace wrote: On 10/15/2012 11:20 AM, Brian Paul wrote: On 10/15/2012 12:13 PM, Chad Versace wrote: On 10/15/2012 07:57 AM, Brian Paul wrote: On 10/15/2012 02:37 AM, Chad Versace wrote: I unpacked the .xz file, then $ cd waffle-1.1.0 $ export

Re: [Piglit] [ANNOUNCE] waffle-1.1.1

2012-10-17 Thread Brian Paul
On 10/16/2012 04:40 PM, Chad Versace wrote: Waffle 1.1.1 - 16 Oct 2012 == Waffle 1.1.1 is a bugfix release. It fixes bugs discovered since 1.1.0. Downloads and documentation are available at: http://people.freedesktop.org/~chadversary/waffle/releases.html#1.1.1 For

Re: [Piglit] [PATCH] vs-all-equal-bool-array: New test.

2012-10-17 Thread Brian Paul
1 0 Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] readpix-z: asst. test improvements

2012-10-17 Thread Brian Paul
1. Do a simple test that glClear(GL_DEPTH_BUFFER_BIT) works as expected. 2. Display the depth buffer contents as a grayscale image when not running in automatic mode to aid debugging. --- tests/general/readpix-z.c | 116 ++-- 1 files changed, 100 inserti

Re: [Piglit] [PATCH] readpix-z: asst. test improvements

2012-10-18 Thread Brian Paul
On 10/17/2012 05:43 PM, Eric Anholt wrote: Brian Paul writes: 1. Do a simple test that glClear(GL_DEPTH_BUFFER_BIT) works as expected. 2. Display the depth buffer contents as a grayscale image when not running in automatic mode to aid debugging. Since we've got lots of tests that

Re: [Piglit] [PATCH] readpix-z: asst. test improvements

2012-10-18 Thread Brian Paul
On 10/18/2012 08:42 AM, Brian Paul wrote: On 10/17/2012 05:43 PM, Eric Anholt wrote: Brian Paul writes: 1. Do a simple test that glClear(GL_DEPTH_BUFFER_BIT) works as expected. 2. Display the depth buffer contents as a grayscale image when not running in automatic mode to aid debugging

Re: [Piglit] [PATCH 2/2] GL_ARB_occlusion_query2: Add tests for the API.

2012-10-19 Thread Brian Paul
sed fragments returned %d\n", + result[0]); + pass = false; + } + + if (result[1] != GL_FALSE) { + fprintf(stderr, "GL_ANY_SAMPLES_PASSED with no rendering returned %d\n", + result[1]

Re: [Piglit] [PATCH] Comment continuation in the middle of a define.

2012-10-25 Thread Brian Paul
effectively makes the rest of the macro's characters go away, and hence, produces a compilation error. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] Fix glu.h inclusions on Mac OS X.

2012-10-29 Thread Brian Paul
On 10/27/2012 02:55 PM, Vinson Lee wrote: This patch fixes build failures on Mac OS X since commit 68de5fb435e6e1cb0caedddff0fd0a9c221b0005. Signed-off-by: Vinson Lee --- tests/shaders/fp-fragment-position.c | 4 tests/spec/arb_shader_texture_lod/execution/texgrad.c | 4

[Piglit] [PATCH 1/3] texgrad: use glFrustum() instead of gluPerspective()

2012-10-29 Thread Brian Paul
To remove dependency on glu.h --- .../arb_shader_texture_lod/execution/texgrad.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_shader_texture_lod/execution/texgrad.c b/tests/spec/arb_shader_texture_lod/execution/texgrad.c index 0f3761f..e502ecd 1006

[Piglit] [PATCH 2/3] clip-flag-behavior: use piglit_check_gl_error() function instead of local code

2012-10-29 Thread Brian Paul
To remove dependency on glu.h --- tests/spec/gl-2.0/api/clip-flag-behavior.c | 38 +--- 1 files changed, 12 insertions(+), 26 deletions(-) diff --git a/tests/spec/gl-2.0/api/clip-flag-behavior.c b/tests/spec/gl-2.0/api/clip-flag-behavior.c index ecc8328..8f9d8a6 100644

[Piglit] [PATCH 3/3] fp-fragment-position: use auto mipmap generation instead of gluBuild2DMipmaps()

2012-10-29 Thread Brian Paul
To remove dependency on glu.h --- tests/shaders/fp-fragment-position.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/shaders/fp-fragment-position.c b/tests/shaders/fp-fragment-position.c index 7ccd6ee..c8bfe7b 100644 --- a/tests/shaders/fp-fragment-positio

Re: [Piglit] [PATCH 1/3] texgrad: use glFrustum() instead of gluPerspective()

2012-10-29 Thread Brian Paul
On 10/29/2012 11:35 AM, Ian Romanick wrote: On 10/29/2012 08:04 AM, Brian Paul wrote: I think any implementation that can do ARB_fragment_program can also do OpenGL 1.4. ARB_fp only requires GL 1.3. Does this remove all of the GLU dependencies? Looks like tests/glean/glwrap.h includes

Re: [Piglit] [PATCH 1/3] texgrad: use glFrustum() instead of gluPerspective()

2012-10-29 Thread Brian Paul
On 10/29/2012 11:44 AM, Brian Paul wrote: On 10/29/2012 11:35 AM, Ian Romanick wrote: On 10/29/2012 08:04 AM, Brian Paul wrote: Does this remove all of the GLU dependencies? Looks like tests/glean/glwrap.h includes glu.h but I haven't looked if any GLU functions are actually used by

Re: [Piglit] [PATCH] tests/spec/arb_robustness/draw-vbo-bounds.c: add clipping

2012-10-29 Thread Brian Paul
On 10/29/2012 05:05 PM, srol...@vmware.com wrote: From: Roland Scheidegger Make sure clipping is needed sometimes, and more often use small index counts, to expose issues and excercise more paths in mesa's draw module. --- tests/spec/arb_robustness/draw-vbo-bounds.c |4 ++-- 1 file change

Re: [Piglit] [PATCH] cmake: Build crossbar on all platforms.

2012-10-30 Thread Brian Paul
iglit_add_executable (crossbar crossbar.c) piglit_add_executable (cubemap cubemap.c) piglit_add_executable (depth-level-clamp depth-level-clamp.c) piglit_add_executable (depthstencil-render-miplevels depthstencil-render-miplevels.cpp) Reviewed-by: Brian Paul __

Re: [Piglit] [PATCH] tests/spec/arb_robustness/draw-vbo-bounds.c: add clipping

2012-10-30 Thread Brian Paul
On 10/29/2012 06:33 PM, Roland Scheidegger wrote: Am 30.10.2012 00:22, schrieb Brian Paul: On 10/29/2012 05:05 PM, srol...@vmware.com wrote: From: Roland Scheidegger Make sure clipping is needed sometimes, and more often use small index counts, to expose issues and excercise more paths in

Re: [Piglit] [PATCH] Test glStencilMaskSeparate too.

2012-10-30 Thread Brian Paul
GLenum frontStencilFail, + GLenum backStencilFail, + GLenum frontZFail, + GLenum backZFail, + GLenum frontZPass, + GLenum backZPass, +

Re: [Piglit] [PATCH 1/1] Add a test for viewport clipping.

2012-11-02 Thread Brian Paul
n pass ? PIGLIT_PASS : PIGLIT_FAIL; +} + +void +piglit_init(int argc, char **argv) +{ + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + + glMatrixMode(GL_MODELVIEW); + glLoadIdentity(); +} Reviewed-by: Brian Paul ___ Piglit mailing list

[Piglit] default piglit window size change

2012-11-02 Thread Brian Paul
I think I've brought this up in the past. On Windows, the minimum width of a window is 116 pixels (at least in my current Win7 setup). A lot of piglit tests create 100x100 pixels and when piglit creates the window, Win7 resizes it to 116x100. The framework code detects this change and repor

Re: [Piglit] default piglit window size change

2012-11-02 Thread Brian Paul
On 11/02/2012 10:52 AM, Paul Berry wrote: On 2 November 2012 09:32, Brian Paul mailto:bri...@vmware.com>> wrote: I think I've brought this up in the past. On Windows, the minimum width of a window is 116 pixels (at least in my current Win7 setup). A lot of piglit t

[Piglit] [PATCH 01/11] util/gl: add default window config of 150 x 150 pixels

2012-11-02 Thread Brian Paul
On Win7 windows get resized to the min size of 116x100 pixels (which might depend on the Aero theme, etc). This resize is detected by the piglit framework: Got spurious window resize in automatic run (100,100 to 116,100) PIGLIT: {'result': 'warn'} so we get a 'warn' result instead of actually ru

[Piglit] [PATCH 02/11] general: remove config.window_width/height = 100 lines

2012-11-02 Thread Brian Paul
Use the default from piglit-framework-gl.h No regressions seen with new size. --- tests/general/array-stride.c |2 -- tests/general/depthrange-clear.c |2 -- tests/general/dlist-clear.c |2 -- tests/general/dlist-color-material.c |

[Piglit] [PATCH 03/11] general: remove more config.window_width/height lines

2012-11-02 Thread Brian Paul
These tests had window sizes other than 100x100. No regressions seen with new size. --- tests/general/copy-pixels.c |2 -- tests/general/copypixels-draw-sync.c|2 -- tests/general/copypixels-sync.c |2 -- tests/general/depth-clamp-range.c |2 -- tests/

[Piglit] [PATCH 04/11] lodclamp-between: set window size to 200x200

2012-11-02 Thread Brian Paul
--- tests/texturing/lodclamp-between.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/texturing/lodclamp-between.c b/tests/texturing/lodclamp-between.c index 4d8e50e..787e601 100644 --- a/tests/texturing/lodclamp-between.c +++ b/tests/texturing/lodclamp-between.c

[Piglit] [PATCH 05/11] texturing: remove config.window_width/height assignments

2012-11-02 Thread Brian Paul
Use the default window size. No regressions seen with new size. --- tests/texturing/1-1-linear-texture.c|2 -- tests/texturing/copyteximage-clipping.c |2 -- tests/texturing/getteximage-luminance.c |2 -- tests/texturing/getteximage-simple.c|

[Piglit] [PATCH 06/11] fbo: remove config.window_width/height assignments

2012-11-02 Thread Brian Paul
Instead of sizes less than 150x150. No regressions seen with new size. --- tests/fbo/fbo-1d.c |2 -- tests/fbo/fbo-alphatest-nocolor-ff.c |2 -- tests/fbo/fbo-alphatest-nocolor.c |2 -- tests/fbo/fbo-bind-renderbuffer.c

[Piglit] [PATCH 07/11] fbo-gl_pointcoord: remove config.window_width/height and fix asst. bugs

2012-11-02 Thread Brian Paul
The size of the window and the size of the FBO were mixed up in a few places. Add missing FBO binding calls so the window can be resized. Use an rb_size variable instead of hard-coded 100. --- tests/fbo/fbo-gl_pointcoord.c | 23 +++ 1 files changed, 15 insertions(+), 8 delet

[Piglit] [PATCH 08/11] security/initialized-vbo: remove config.window_width/height

2012-11-02 Thread Brian Paul
--- tests/security/initialized-vbo.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/tests/security/initialized-vbo.c b/tests/security/initialized-vbo.c index bed6ff2..6d2ff0e 100644 --- a/tests/security/initialized-vbo.c +++ b/tests/security/initialized-vbo.c @@ -40,8 +4

[Piglit] [PATCH 09/11] shaders: remove config.window_width/height = 100 lines

2012-11-02 Thread Brian Paul
--- tests/shaders/activeprogram-bad-program.c |2 -- tests/shaders/activeprogram-get.c |2 -- tests/shaders/attribute0.c |2 -- .../shaders/createshaderprogram-attached-shaders.c |2 -- tests/shaders/createshaderprogram-bad-type.c

[Piglit] [PATCH 10/11] shaders: remove config.window_width/height = 100 lines

2012-11-02 Thread Brian Paul
--- tests/shaders/fp-fog.c|2 -- tests/shaders/fp-incomplete-tex.c |2 -- tests/shaders/fp-long-alu.c |2 -- tests/shaders/getuniform-01.c |2 -- tests/shaders/getuniform-02.c |2 -- tests/shaders/glsl-explicit-l

[Piglit] [PATCH 11/11] bugs: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- tests/bugs/crash-cubemap-order.c|2 -- tests/bugs/crash-texparameter-before-teximage.c |2 -- tests/bugs/drawbuffer-modes.c |2 -- tests/bugs/fdo10370.c |2 -- tests/bugs/fdo14575.c |2 --

Re: [Piglit] [PATCH] Add a test for viewport triangle clipping.

2012-11-02 Thread Brian Paul
IT_FAIL; +} + +void +piglit_init(int argc, char **argv) +{ + glMatrixMode(GL_PROJECTION); + glLoadIdentity(); + + glMatrixMode(GL_MODELVIEW); + glLoadIdentity(); +} Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH 2/8] arb_map_buffer_range: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- .../map_buffer_range_error_check.c |2 -- .../arb_map_buffer_range/map_buffer_range_test.c |2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/tests/spec/arb_map_buffer_range/map_buffer_range_error_check.c b/tests/spec/arb_map_buffer_range/map_buffe

[Piglit] [PATCH 1/8] arb_copy_buffer: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- tests/spec/arb_copy_buffer/copybuffersubdata.c |2 -- tests/spec/arb_copy_buffer/dlist.c |2 -- tests/spec/arb_copy_buffer/get.c |2 -- tests/spec/arb_copy_buffer/negative-bound-zero.c |2 -- tests/spec/arb_copy_buffer/negative-bounds.c |

[Piglit] [PATCH 3/8] arb_texture_float: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- .../spec/arb_texture_float/texture-float-formats.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_texture_float/texture-float-formats.c b/tests/spec/arb_texture_float/texture-float-formats.c index edb6bc3..0a23736 100644 --- a/tests/spec/arb_texture_f

[Piglit] [PATCH 4/8] ext_fog_coord: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- tests/spec/ext_fog_coord/modes.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/tests/spec/ext_fog_coord/modes.c b/tests/spec/ext_fog_coord/modes.c index d21b3ed..5ed3b62 100644 --- a/tests/spec/ext_fog_coord/modes.c +++ b/tests/spec/ext_fog_coord/modes.c @@ -37,8 +3

[Piglit] [PATCH 5/8] arb_texture_storage: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- tests/spec/arb_texture_storage/texture-storage.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_texture_storage/texture-storage.c b/tests/spec/arb_texture_storage/texture-storage.c index e8bbd88..6d55fe6 100644 --- a/tests/spec/arb_texture_storage/tex

[Piglit] [PATCH 6/8] arb_sampler_objects: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- .../spec/arb_sampler_objects/sampler-incomplete.c |2 -- tests/spec/arb_sampler_objects/sampler-objects.c |2 -- 2 files changed, 0 insertions(+), 4 deletions(-) diff --git a/tests/spec/arb_sampler_objects/sampler-incomplete.c b/tests/spec/arb_sampler_objects/sampler-incomplete.c

[Piglit] [PATCH 7/8] ext_texture_array: remove config.window_width/height lines

2012-11-02 Thread Brian Paul
--- tests/spec/ext_texture_array/maxlayers.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/tests/spec/ext_texture_array/maxlayers.c b/tests/spec/ext_texture_array/maxlayers.c index 4ac8b07..d17aaed 100644 --- a/tests/spec/ext_texture_array/maxlayers.c +++ b/tests/spec/

[Piglit] [PATCH 8/8] arb_sampler_objects: prefix all tests with "arb_sampler_objects-"

2012-11-02 Thread Brian Paul
Two of the tests had the prefix, two others didn't. --- tests/spec/arb_sampler_objects/CMakeLists.gl.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_sampler_objects/CMakeLists.gl.txt b/tests/spec/arb_sampler_objects/CMakeLists.gl.txt index c58f6f4..2

Re: [Piglit] default piglit window size change

2012-11-04 Thread Brian Paul
On 11/04/2012 01:11 PM, Eric Anholt wrote: Brian Paul writes: On 11/02/2012 10:52 AM, Paul Berry wrote: On 2 November 2012 09:32, Brian Paulmailto:bri...@vmware.com>> wrote: I think I've brought this up in the past. On Windows, the minimum width of a window is 116

Re: [Piglit] [PATCH 1/2] arb_texture_cube_map_array: sample-cube-map-array-shadow sample from second layer

2012-11-05 Thread Brian Paul
earColor(0.1, 0.1, 0.1, 1.0); shaderSetup(); - setup_texcoords(); + setup_texcoords(1.0); } enum piglit_result Looks alright to me. For both: Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org h

Re: [Piglit] [PATCH 5/6] cmake: Remove the REQUIRED flag for PNG

2012-11-05 Thread Brian Paul
I don't see any need for libpng either. -Brian On 11/05/2012 12:17 PM, Chad Versace wrote: Brian and Jose, Is libpng needed for the Windows build? It is unused on Linux. On 10/24/2012 06:11 AM, gro...@gmail.com wrote: From: Adrian Marius Negreanu I haven't found any references to png, exce

[Piglit] [PATCH] push-pop-texture-state: a replacement for the fdo9833 test

2012-11-07 Thread Brian Paul
This updates and renames the fdo9833.c test. --- tests/all.tests|2 +- tests/bugs/CMakeLists.gl.txt |1 - tests/bugs/fdo9833.c | 47 tests/general/CMakeLists.gl.txt|1 + tests/general/push-po

[Piglit] [PATCH] arb_sampler_objects: prefix all tests with "arb_sampler_objects-"

2012-11-07 Thread Brian Paul
Two of the tests had the prefix, two others didn't. --- tests/spec/arb_sampler_objects/CMakeLists.gl.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_sampler_objects/CMakeLists.gl.txt b/tests/spec/arb_sampler_objects/CMakeLists.gl.txt index c58f6f4..2

[Piglit] [PATCH] piglit-print-commands: add more info, fix incorrect examples

2012-11-07 Thread Brian Paul
--- piglit-print-commands.py | 14 +- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/piglit-print-commands.py b/piglit-print-commands.py index 951206b..5536856 100755 --- a/piglit-print-commands.py +++ b/piglit-print-commands.py @@ -42,6 +42,10 @@ def usage():

Re: [Piglit] [PATCH] arb_sampler_objects: prefix all tests with "arb_sampler_objects-"

2012-11-07 Thread Brian Paul
On 11/07/2012 10:16 AM, Eric Anholt wrote: Brian Paul writes: Two of the tests had the prefix, two others didn't. --- tests/spec/arb_sampler_objects/CMakeLists.gl.txt |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_sampler_ob

[Piglit] [PATCH] arb_sampler_objects: prefix all tests with "arb_sampler_objects-"

2012-11-07 Thread Brian Paul
Two of the tests had the prefix, two others didn't. v2: update all.tests too --- tests/all.tests |4 ++-- tests/spec/arb_sampler_objects/CMakeLists.gl.txt |4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/all.tests b/tests/all.t

Re: [Piglit] default piglit window size change

2012-11-07 Thread Brian Paul
On 11/07/2012 10:23 AM, Eric Anholt wrote: Brian Paul writes: On 11/04/2012 01:11 PM, Eric Anholt wrote: Brian Paul writes: On 11/02/2012 10:52 AM, Paul Berry wrote: On 2 November 2012 09:32, Brian Paulmailto:bri...@vmware.com>> wrote: I think I've brought this up

[Piglit] [PATCH] vbo-map-unsync: test unsynchronized buffer mapping

2012-11-08 Thread Brian Paul
--- tests/all.tests |1 + tests/general/CMakeLists.gl.txt |1 + tests/general/vbo-map-unsync.c | 173 +++ 3 files changed, 175 insertions(+), 0 deletions(-) create mode 100644 tests/general/vbo-map-unsync.c diff --git a/tests/all.test

Re: [Piglit] [PATCH 09/11] shaders: remove config.window_width/height = 100 lines

2012-11-11 Thread Brian Paul
On 11/11/2012 05:47 AM, Marek Olšák wrote: With this patch committed, these tests are now broken: glsl-arb-fragment-coord-conventions glsl-kwin-blur-1 glsl-kwin-blur-2 glsl-orangebook-ch06-bump OK, I've fixed these... -Brian ___ Piglit mailing list

[Piglit] [PATCH 1/3] glsl-kwin-blur: fix regressions after default window size change

2012-11-11 Thread Brian Paul
These tests probe specific pixel locations so the 100x100 size can't be changed. Let the window be larger, but just draw to a 100x100 region. --- tests/shaders/glsl-kwin-blur-1.c | 29 +++-- tests/shaders/glsl-kwin-blur-2.c | 29 +++-- 2 files c

[Piglit] [PATCH 2/3] glsl-orangebook-ch06-bump: fix regression after default window size change

2012-11-11 Thread Brian Paul
The pixel probing is very sensitive to the size of the rendering so limit it to 100x100 regardless of window size. --- tests/shaders/glsl-orangebook-ch06-bump.c | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/tests/shaders/glsl-orangebook-ch06-bump.c b/te

[Piglit] [PATCH 3/3] glsl-arb-fragment-coord-conventions: fix window size regression

2012-11-11 Thread Brian Paul
The test requires a 100x100 rendering. Adjust the viewport and probes to accomodate larger window sizes. --- .../shaders/glsl-arb-fragment-coord-conventions.c | 44 ++-- 1 files changed, 31 insertions(+), 13 deletions(-) diff --git a/tests/shaders/glsl-arb-fragment-coord-conve

Re: [Piglit] [PATCH] Add a test for viewport triangle clipping.

2012-11-12 Thread Brian Paul
On 11/12/2012 11:33 AM, Stuart Abercrombie wrote: Is this OK to go in? Yeah, I thought I replied with an R-b. -Brian ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] framework: log output of wglinfo on Windows and Cygwin

2012-11-12 Thread Brian Paul
As we do glxinfo on Linux. --- framework/core.py |9 +++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/framework/core.py b/framework/core.py index 48771cf..5a97dba 100644 --- a/framework/core.py +++ b/framework/core.py @@ -29,6 +29,7 @@ import platform import re import

Re: [Piglit] [PATCH] vbo-map-unsync: test unsynchronized buffer mapping

2012-11-13 Thread Brian Paul
On 11/09/2012 10:54 AM, Eric Anholt wrote: Brian Paul writes: --- tests/all.tests |1 + tests/general/CMakeLists.gl.txt |1 + tests/general/vbo-map-unsync.c | 173 +++ 3 files changed, 175 insertions(+), 0 deletions(-) create

[Piglit] [PATCH] vbo-map-unsync: test unsynchronized buffer mapping

2012-11-13 Thread Brian Paul
v2: Remove some trailing whitespace. Remove glFlushMappedBufferRange() code. Require GL_ARB_map_buffer_range Run as concurrent test. --- tests/all.tests |1 + tests/general/CMakeLists.gl.txt |1 + tests/general/vbo-map-unsync.c | 170 ++

Re: [Piglit] [PATCH] GL_ARB_framebuffer_object/negative-readpixels-no-rb: Test for Mesa segfault.

2012-11-13 Thread Brian Paul
MPONENT, GL_FLOAT)&& pass; + pass = test_bad_readpixels(GL_STENCIL_INDEX, GL_FLOAT)&& pass; + glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, + GL_RENDERBUFFER, 0); + + piglit_report_result(pass ? PIGLIT_PASS : PIGLIT_FAIL); +} Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH V2] Add test to verify GL errors in glGenerateMipmap

2012-11-13 Thread Brian Paul
On 11/13/2012 03:13 PM, Anuj Phogat wrote: It does error checking for glGenerateMipmap() with integer and packed depth-stencil texture internal formats. V2: Don't test formats which generate no error. They are covered in other piglit tests. Signed-off-by: Anuj Phogat --- tests/all.tests

Re: [Piglit] [PATCH V2] Add test to verify GL errors in glGenerateMipmap

2012-11-13 Thread Brian Paul
guess one more nitpick would be to add a glDeleteTextures() call, but it's not a big deal for this kind of test. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 2/2] util: Remove unused wglew.h

2012-11-13 Thread Brian Paul
On 11/13/2012 04:59 PM, Chad Versace wrote: CC: Brian Paul Signed-off-by: Chad Versace --- tests/util/wglew.h | 1363 1 file changed, 1363 deletions(-) delete mode 100644 tests/util/wglew.h I can't find any use of that header e

Re: [Piglit] [PATCH 2/2] glsl-max-varyings: Add a variant that also tests >MAX_VARYING_COMPONENTS.

2012-11-14 Thread Brian Paul
har **argv) { + int i; + piglit_require_gl_version(20); + for (i = 0; i< argc; i++) { + if (strcmp(argv[i], "--exceed-limits") == 0) + exceed_limits = true; + } + printf("Vertical axis: Increasing numbers of varyings.\n"); printf("Horizontal axis: Which of the varyings contains the color.\n"); } Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 1/2] glsl-max-varyings: Make this a concurrent test.

2012-11-14 Thread Brian Paul
ying-ff') add_plain_test(shaders, 'glsl-mat-attribute') -add_plain_test(shaders, 'glsl-max-varyings') +shaders['glsl-max-varyings'] = concurrent_test('glsl-max-varyings') add_plain_test(shaders, 'glsl-orangebook-ch06-bump')

Re: [Piglit] [PATCH] Add a test for viewport triangle clipping.

2012-11-15 Thread Brian Paul
return bool instead of int. + piglit_width/2, piglit_height, green); + + piglit_present_results(); + + return pass ? PIGLIT_PASS : PIGLIT_FAIL; +} + +void +piglit_init(int argc, char **argv) +{ +} Looks good otherwise. Reviewed-by: Brian Paul ___

<    4   5   6   7   8   9   10   11   12   13   >