Re: [Piglit] Spec justification for test_illegal_begin_mode?

2020-12-09 Thread Brian Paul
On 12/09/2020 11:19 AM, Ian Romanick wrote: On 12/9/20 7:55 AM, Brian Paul wrote: On 12/08/2020 05:47 PM, Ian Romanick wrote: On 12/1/20 7:43 AM, Brian Paul wrote: On 11/26/2020 09:22 AM, Brian Paul wrote: On Wed, Nov 25, 2020 at 8:19 PM Ian Romanick mailto:i...@freedesktop.org>>

Re: [Piglit] Spec justification for test_illegal_begin_mode?

2020-12-09 Thread Brian Paul
On 12/08/2020 05:47 PM, Ian Romanick wrote: On 12/1/20 7:43 AM, Brian Paul wrote: On 11/26/2020 09:22 AM, Brian Paul wrote: On Wed, Nov 25, 2020 at 8:19 PM Ian Romanick mailto:i...@freedesktop.org>> wrote:     I was looking at the dlist-beginend subtest test_illegal_begin_mode.     Th

Re: [Piglit] Spec justification for test_illegal_begin_mode?

2020-12-01 Thread Brian Paul
On 11/26/2020 09:22 AM, Brian Paul wrote: On Wed, Nov 25, 2020 at 8:19 PM Ian Romanick <mailto:i...@freedesktop.org>> wrote: I was looking at the dlist-beginend subtest test_illegal_begin_mode. The test compiles a display list with GL_COMPILE_AND_EXECUTE mode.  The glBeg

Re: [Piglit] Spec justification for test_illegal_begin_mode?

2020-11-26 Thread Brian Paul
On Wed, Nov 25, 2020 at 8:19 PM Ian Romanick wrote: > I was looking at the dlist-beginend subtest test_illegal_begin_mode. > The test compiles a display list with GL_COMPILE_AND_EXECUTE mode. The > glBegin in the test uses an invalid mode. This should generate a > GL_INVALID_OPERATION error imm

Re: [Piglit] [PATCH] s3tc-errors: Fix GCC unused-variable warning.

2019-04-23 Thread Brian Paul
format(int width, int height, GLfloat *image, GLenum requested_format) { #ifdef PIGLIT_USE_OPENGL GLubyte *compressed_image; -#endif GLenum format2; +#endif int x, y, w, h; GLuint tex; bool pass = true; Reviewed-by:

Re: [Piglit] [PATCH] appveyor: Update instructions for personal repositories.

2019-03-13 Thread Brian Paul
Both patches look OK to me. Reviewed-by: Brian Paul On 03/13/2019 08:16 AM, Jose Fonseca wrote: With GitLab is now much easier to setup. --- appveyor.yml | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 1f8779187

Re: [Piglit] [PATCH v2] piglit/vbo: memory leak

2018-10-24 Thread Brian Paul
On 10/24/2018 05:20 AM, Sergii Romantsov wrote: > Trivial fix of memory leaking for test 'initialized-vbo'. > > v2: Rb added. > > Fixes: 6a467e00cfae (security/initialized-vbo: test contents of uninitialized > VBOs) > CC: Brian Paul > Signed-off-by: Se

Re: [Piglit] [PATCH 2/2] Add a test for GL_AMD_framebuffer_multisample_advanced

2018-08-02 Thread Brian Paul
One minor thing below. Otherwise, Reviewed-by: Brian Paul On 08/01/2018 05:21 PM, Marek Olšák wrote: From: Marek Olšák --- tests/opengl.py | 6 + tests/spec/CMakeLists.txt | 1 + .../CMakeLists.gl.txt | 13

[Piglit] [PATCH 2/2] polygon-mode: also test polygon culling

2018-07-20 Thread Brian Paul
Test polygon culling with glPolygonMode for better coverage. --- tests/general/polygon-mode.c | 87 +++- 1 file changed, 54 insertions(+), 33 deletions(-) diff --git a/tests/general/polygon-mode.c b/tests/general/polygon-mode.c index c41c392..709c6db 100644

[Piglit] [PATCH 1/2] Prevent loop unrolling in a shader test

2018-07-20 Thread Brian Paul
The GLSL compiler can easily unroll this loop and simplify the function down to a single assignment. That defeats the purpose of the test. Replace literals with uniforms to prevent unrolling. --- tests/shaders/glsl-vs-loop-break.shader_test | 8 ++-- 1 file changed, 6 insertions(+), 2 deletio

Re: [Piglit] [PATCH 6/9] tests/opengl: Add glx-swap-copy

2018-07-02 Thread Brian Paul
On 06/27/2018 11:32 AM, Dylan Baker wrote: Fixes: 2a7047a32bb3a9a4fad5bea0a8185d63af6bddf3 ("glx: Introduce a glx-swap-copy test v2") CC: Thomas Hellstrom CC: Brian Paul --- tests/opengl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/opengl.py b/tests/openg

Re: [Piglit] [PATCH v2] arb_provoking_vertex: Test flat shading with clipped geometry

2018-06-14 Thread Brian Paul
Does this test do anything that isn't already done by the existing clipflat.c test? -Brian On 06/14/2018 03:41 AM, Danylo Piliaiev wrote: There is a hardware bug in i965/gen9+ with provoking vertices. Test if workaround works correctly. Ref: https://na01.safelinks.protection.outlook.com/?url

Re: [Piglit] [PATCH v2] add GL_ARB_sample_locations

2018-05-24 Thread Brian Paul
I took a quick look and I'm OK with it. If anyone else wants to review it more closely, please do so soon. Reviewed-by: Brian Paul On 05/24/2018 12:55 PM, Rhys Perry wrote: Ping I guess? On Mon, May 7, 2018 at 5:19 PM, Rhys Perry wrote: Changelog: v2: - Rebase to handle meta pro

Re: [Piglit] [PATCH v2] util: provide way to read a texture in ES compatible way

2018-05-21 Thread Brian Paul
On 05/21/2018 05:53 AM, Tapani Pälli wrote: Implementation supports GL_TEXTURE_2D, GL_TEXTURE_2D_ARRAY and affects following functions: - piglit_probe_texel_rect_rgba - piglit_probe_texel_volume_rgba v2: use read_texture only on GL ES fix indentation issues Signed-off-by: Tapani P

Re: [Piglit] [PATCH 1/2] util: provide way to read a texture in ES compatible way

2018-05-18 Thread Brian Paul
It looks like this will bypass glGetTexImage even for desktop GL. We may loose some test coverage because of that. Could we do the fbo/ReadPixels work-around only on ES? One indentation issue below. -Brian On 05/18/2018 02:29 AM, Tapani Pälli wrote: Any comments? I'm planning to push this

Re: [Piglit] [PATCH v4] tests: add nvidia conservative rasterization tests

2018-05-10 Thread Brian Paul
Reviewed-by: Brian Paul Though, I can't help but think that we could do something better for the drawing test. My first approach would be to draw a triangle with conservative rasterization on then off and compare how many pixels are written. The conservative rasterization should gen

Re: [Piglit] [PATCH v2] ext_packed_float: Add a test that queries GL_RGBA_SIGNED_COMPONENTS_EXT

2018-05-09 Thread Brian Paul
Reviewed-by: Brian Paul Thanks, Timothy! On 05/09/2018 05:52 PM, Timothy Arceri wrote: From: Bruce Merry V2 (Timothy Arceri): - use piglit_get_gl_enum_name() - use ARRAY_SIZE() - set config.khr_no_error_support Cc: Brian Paul Bugzilla: https://urldefense.proofpoint.com/v2/url?u

Re: [Piglit] [PATCH] ext_packed_float: Add a test that queries GL_RGBA_SIGNED_COMPONENTS_EXT

2018-05-09 Thread Brian Paul
Minor things below. -Brian On 05/09/2018 12:13 AM, Timothy Arceri wrote: From: Bruce Merry Cc: Brian Paul Bugzilla: https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.org_show-5Fbug.cgi-3Fid-3D73096&d=DwIBAQ&c=uilaK90D4TOVoH58

[Piglit] [PATCH] gl-1.5-get-array-attribs: exercise glGetIntegerv, etc. with vertex arrays

2018-05-09 Thread Brian Paul
This new test checks that glGetInteger/Fload/Double/Booleanv() return the right values when querying vertex array attributes. Currently broken in Mesa. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106450 --- tests/opengl.py | 1 + tests/spec/gl-1.5/CMakeLists.gl

Re: [Piglit] [PATCH] add GL_ARB_sample_locations

2018-05-07 Thread Brian Paul
On 05/04/2018 06:08 AM, Rhys Perry wrote: Signed-off-by: Rhys Perry --- tests/all.py | 6 + tests/quick.py| 7 + tests/spec/CMakeLists.txt | 1 + tests/spec/arb_sample_locations/CMakeLists

Re: [Piglit] [PATCH] find_static_tests.py: fix python2 compatibility

2018-05-03 Thread Brian Paul
utf-8') as f: This seems to fix the failure on MinGW. Tested-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] tests: fix unicode issue on MinGW in find_static_tests.py

2018-05-03 Thread Brian Paul
On 05/03/2018 06:23 AM, Ilia Mirkin wrote: On Wed, May 2, 2018 at 10:04 PM, Brian Paul wrote: Explicity convert strings to unicode before writing. This fixes an error when building with MinGW: Traceback (most recent call last): File "/var/workspace/tests/find_static_tests.py", l

[Piglit] [PATCH] tests: fix unicode issue on MinGW in find_static_tests.py

2018-05-02 Thread Brian Paul
Explicity convert strings to unicode before writing. This fixes an error when building with MinGW: Traceback (most recent call last): File "/var/workspace/tests/find_static_tests.py", line 74, in main() File "/var/workspace/tests/find_static_tests.py", line 69, in main f.write(filename

Re: [Piglit] [PATCH v4] tests: add nvidia conservative rasterization tests

2018-03-31 Thread Brian Paul
On 03/30/2018 03:56 PM, Rhys Perry wrote: Adds tests for GL_NV_conservative_raster, GL_NV_conservative_raster_dilate and GL_NV_conservative_raster_pre_snap_triangles. Changes in v2: - cleanup the tests - fix some test failures - remove the gles version of the dilation test as the extension is no

Re: [Piglit] [PATCH v3] tests: add nvidia conservative rasterization tests

2018-03-30 Thread Brian Paul
The patch looks great overall. Just minor nit-picks below. On 03/28/2018 11:13 AM, Rhys Perry wrote: Adds tests for GL_NV_conservative_raster, GL_NV_conservative_raster_dilate and GL_NV_conservative_raster_pre_snap_triangles. Changes in v2: - cleanup the tests - fix some test failures - remov

[Piglit] [PATCH] util: reorganize read_pixels_float()

2018-03-28 Thread Brian Paul
Use a simple if/else to organize the ES vs desktop GL code paths. --- tests/util/piglit-util-gl.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index 3a41a5e..f851f82 100644 --- a/tests/uti

Re: [Piglit] [PATCH v3] fix read_pixels_float() on GLES2 when format is not GL_RGBA

2018-03-28 Thread Brian Paul
ght; i++) { + for (j = 0; j < comps; j++) { + pixels[k++] = pixels_b[i*4+j] / 255.0f; + } + } free(pixels_b); return pixels; } Looks good. Thanks! Reviewed-by: Brian Paul Do you need me to push thi

Re: [Piglit] [PATCH v2] fix read_pixels_float() on GLES2 when format is not GL_RGBA

2018-03-28 Thread Brian Paul
On 03/28/2018 05:37 AM, Rhys Perry wrote: GLES2 requires GL_RGBA to be used with GL_UNSIGNED_BYTE in glReadPixels --- tests/util/piglit-util-gl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index df39c1c87.

Re: [Piglit] [PATCH 03/15] gl-3.2/adj-prims: fix expected vertex order for triangle strips with adjacency

2018-03-27 Thread Brian Paul
For 3&4, Reviewed-by: Brian Paul Tested-by: Brian Paul (on NVIDIA) On 03/26/2018 05:32 PM, Marek Olšák wrote: From: Nicolai Hähnle The first two vertices are swapped for triangle strips with adjacency; see Table 10.1 of the OpenGL 4.5 (Compatibility Profile) spec. --- tests/spec/gl

Re: [Piglit] [PATCH] Fix piglit_probe_pixel_rgb on GLES2

2018-03-26 Thread Brian Paul
On 03/25/2018 01:49 PM, Rhys Perry wrote: GLES2 requires GL_RGBA to be used with GL_UNSIGNED_BYTE in glReadPixels --- tests/util/piglit-util-gl.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index df39c1c87.

[Piglit] [PATCH 1/2] fbo-drawbuffers2-blend: fix incorrect comments

2018-03-16 Thread Brian Paul
--- tests/fbo/fbo-drawbuffers2-blend.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/fbo/fbo-drawbuffers2-blend.c b/tests/fbo/fbo-drawbuffers2-blend.c index b97803b..2c16b8f 100644 --- a/tests/fbo/fbo-drawbuffers2-blend.c +++ b/tests/fbo/fbo-drawbuffers2-blend.c @

[Piglit] [PATCH 2/2] piglit: fix some warnings about no return value from non-void function

2018-03-16 Thread Brian Paul
--- tests/spec/arb_texture_multisample/large-float-texture.c | 1 + tests/spec/arb_vertex_program/property-bindings.c| 4 +++- tests/spec/glsl-1.10/execution/built-in-uniform-state.c | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_texture_multisampl

Re: [Piglit] [PATCH] gl-3.0: Basic tests of glTexParameterIiv and friends

2018-03-08 Thread Brian Paul
H THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ + +/** + * @file + * Basic tests of OpenGL 3.0 gl{Get,}TexParameterI{iv,uiv} functions + */ + +#include "piglit-util-gl.h" + +PIGLIT_GL_TEST_CONFIG_BEGIN + + config.supports_gl_compat_version = 10; 30 Wi

Re: [Piglit] [PATCH] glsl-fs-pointcoord: add additional FS inputs

2018-02-26 Thread Brian Paul
Reviewed-by: Brian Paul On 02/26/2018 04:15 AM, Iago Toral Quiroga wrote: We have recently found a regression in the i965 driver related to gl_PointCoord which was not being caught by this test. This patch changes the test slightly so that we can expose the problem for future regression

[Piglit] [PATCH] degenerate-prims: fix incorrect return value from test_prim()

2018-02-13 Thread Brian Paul
The function is supposed to return a piglit_result, not true/false. Fixes incorrect 'fail' results. --- tests/general/degenerate-prims.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/general/degenerate-prims.c b/tests/general/degenerate-prims.c index 0eed99c..3001d34 10

[Piglit] [PATCH] gl-4.3-get_glsl_versions: new tests of GL_NUM_SHADING_LANGUAGE_VERSIONS

2018-02-13 Thread Brian Paul
and glGetStringi(GL_SHADING_LANGUAGE_VERSION, i) queries in GL 4.3. Until recently, these queries were not implemented in Mesa. --- tests/all.py | 5 +++ tests/spec/CMakeLists.txt | 1 + tests/spec/gl-4.3/CMakeLists.gl.txt | 13 ++ tests/spec/gl-4.3/CMa

Re: [Piglit] [PATCH 1/2] arb_viewport_array/viewport_indices: allow float precision instead of double

2018-02-12 Thread Brian Paul
|| scGet[2] != sc[2] || scGet[3] != sc[3]) { printf("Scissor Box for index %d got erroneously changed\n", i); pass = false; Reviewed-by: Brian Paul

Re: [Piglit] [PATCH 2/2] texunits: don't test glTexEnv with unusable texture units

2018-02-08 Thread Brian Paul
Reviewed-by: Brian Paul On Thu, Feb 8, 2018 at 5:59 PM, Marek Olšák wrote: > From: Marek Olšák > > The GL limit is MaxTextureCombinedUnits, but the real usable limit is > MaxTextureCoordUnits. This is probably a spec bug. > > Mesa will ignore glTexEnv calls where unit >=

Re: [Piglit] [PATCH] arb_sample_shading: Add gl_SampleMaskIn subtest with msaa disabled, fix test

2018-02-05 Thread Brian Paul
pass = iterate_sample_rates("partition", test_partition) && pass; } if (!run) @@ -408,6 +488,9 @@ piglit_init(int argc, char **argv) piglit_is_extension_supported("GL_ARB_gpu_shader5") && piglit_is_extension_sup

Re: [Piglit] [PATCH] all.py: fix extension/version testing when wflinfo fails

2018-02-02 Thread Brian Paul
On 02/02/2018 11:57 AM, Dylan Baker wrote: Quoting Brian Paul (2018-02-02 09:35:21) If wflinfo is not installed or fails, the wfl_info.gl_extensions value will be the empty set. Similarly, the gl_version, glsl_version, etc. will be None. In those cases, return True from the

[Piglit] [PATCH] all.py: fix extension/version testing when wflinfo fails

2018-02-02 Thread Brian Paul
If wflinfo is not installed or fails, the wfl_info.gl_extensions value will be the empty set. Similarly, the gl_version, glsl_version, etc. will be None. In those cases, return True from the gl_extension_supported() and is_feature_directory_supported() functions so that we don't skip any subdirs.

Re: [Piglit] [PATCH] util-gl: use num_components when available when printing bad pixel ubyte

2018-02-02 Thread Brian Paul
On 02/02/2018 04:11 AM, Alejandro Piñeiro wrote: Instead of a hardcoded 3. --- tests/util/piglit-util-gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index e9c20385ee..df39c1c877 100644 --- a/tests/util/piglit-u

[Piglit] [PATCH] arb_texture_compression: test set/get of GL_TEXTURE_COMPRESSION_HINT

2018-02-01 Thread Brian Paul
Seems overkill to write a brand new test just for this so add it to the existing invalid-formats.c test. See Bugzilla https://bugs.freedesktop.org/show_bug.cgi?id=104908 --- .../spec/arb_texture_compression/invalid-formats.c | 26 ++ 1 file changed, 26 insertions(+) diff --gi

Re: [Piglit] [PATCH 2/2] shader_runner: Support PIGLIT_DEFAULT_SIZE env var

2018-01-31 Thread Brian Paul
p;config)) { + config.window_width = DEFAULT_WINDOW_WIDTH; + config.window_height = DEFAULT_WINDOW_HEIGHT; + } get_required_config(filename, &config); For the series, Reviewed-by: Brian Paul ___ Piglit mailing

[Piglit] [PATCH 2/3] gl-1.1-color-material-array: test GL_COLOR_MATERIAL with vertex color array

2018-01-24 Thread Brian Paul
Both with and without display lists. --- tests/all.py | 1 + tests/spec/gl-1.1/CMakeLists.gl.txt | 1 + tests/spec/gl-1.1/color-material-array.c | 118 +++ 3 files changed, 120 insertions(+) create mode 100644 tests/spec/gl-1.1/colo

[Piglit] [PATCH 1/3] gl-1.1-draw-arrays-start: exercise glDrawArrays with non-zero 'start'

2018-01-24 Thread Brian Paul
Both with and without display lists. --- tests/all.py | 1 + tests/spec/gl-1.1/CMakeLists.gl.txt | 1 + tests/spec/gl-1.1/draw-arrays-start.c | 121 ++ 3 files changed, 123 insertions(+) create mode 100644 tests/spec/gl-1.1/draw-array

[Piglit] [PATCH 3/3] gl-2.0-shader-materials: test vertex shader with material attributes

2018-01-24 Thread Brian Paul
Both with and without display lists. --- tests/all.py | 1 + tests/spec/gl-2.0/CMakeLists.gl.txt | 1 + tests/spec/gl-2.0/shader-materials.c | 141 +++ 3 files changed, 143 insertions(+) create mode 100644 tests/spec/gl-2.0/shader-mater

[Piglit] [PATCH] util: s/3/num_components/ in probe_rect_ubyte()

2018-01-24 Thread Brian Paul
--- tests/util/piglit-util-gl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index e9c2038..df39c1c 100644 --- a/tests/util/piglit-util-gl.c +++ b/tests/util/piglit-util-gl.c @@ -1249,7 +1249,7 @@ probe_rect_ubyte(int

Re: [Piglit] [PATCH] gl-1.0-blend-func: skip some blend tests when using LLVM 3.8

2018-01-18 Thread Brian Paul
On 01/18/2018 01:27 PM, Eric Anholt wrote: Brian Paul writes: To avoid an infinite loop. See code comments for details. Skipping a failing test and returning pass is wrong to me. It's not ideal. But the bug is in LLVM and cannot readily be fixed in llvmpipe. I could have the

Re: [Piglit] [PATCH] gl-1.0-blend-func: skip some blend tests when using LLVM 3.8

2018-01-18 Thread Brian Paul
On 01/18/2018 12:38 PM, Roland Scheidegger wrote: Am 18.01.2018 um 20:07 schrieb Brian Paul: To avoid an infinite loop. See code comments for details. --- tests/spec/gl-1.0/blend.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/tests/spec/gl-1.0

[Piglit] [PATCH] gl-1.0-blend-func: skip some blend tests when using LLVM 3.8

2018-01-18 Thread Brian Paul
To avoid an infinite loop. See code comments for details. --- tests/spec/gl-1.0/blend.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/tests/spec/gl-1.0/blend.c b/tests/spec/gl-1.0/blend.c index 35e940f..e69ed31 100644 --- a/tests/spec/gl-1.0/blend.c

Re: [Piglit] [PATCH 2/3] gl-1.0-blend-func: add --quick option

2018-01-18 Thread Brian Paul
= GL_FUNC_ADD I'll have to test a newer version of LLVM tomorrow. Have you run gl-1.0-blend-func yourself, Roland? -Brian Either way, for 1-2/3 Reviewed-by: Roland Scheidegger Am 17.01.2018 um 23:54 schrieb Brian Paul: The test normally runs about 27,000 tests and takes quite a long t

[Piglit] [PATCH 2/3] gl-1.0-blend-func: add --quick option

2018-01-18 Thread Brian Paul
The test normally runs about 27,000 tests and takes quite a long time with some drivers. With the --quick option, only 1% of the tests are run. And update tests/quick.py to run the test with --quick. --- tests/quick.py| 7 +++ tests/spec/gl-1.0/blend.c | 23 ++

[Piglit] [PATCH 3/3] gl-1.0-dlist-materials: new test of materials in display lists

2018-01-18 Thread Brian Paul
This exercises two code paths in Mesa's display list VBO code. --- tests/all.py| 1 + tests/spec/gl-1.0/CMakeLists.gl.txt | 1 + tests/spec/gl-1.0/dlist-materials.c | 164 3 files changed, 166 insertions(+) create mode 100644 tests/

[Piglit] [PATCH 1/3] gl-1.0-blend-func: don't pass counter var to proc_factors()

2018-01-18 Thread Brian Paul
Just increment the test counter in run_all_factor_sets(). --- tests/spec/gl-1.0/blend.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/spec/gl-1.0/blend.c b/tests/spec/gl-1.0/blend.c index c1796a5..769339f 100644 --- a/tests/spec/gl-1.0/blend.c +++ b/tests/spec/g

Re: [Piglit] [PATCH] teximage-colors: accept -127 instead of -128 for exact snorm up/download

2018-01-11 Thread Brian Paul
if (!(data[i] == observed[i] || + (data[i] == 128 && observed[i] == 129))) { This might be more obvious if you you'd cast the data and observed pointers to GLbyte types (like you do for GLshort below) and then test for the -127 and -128 val

Re: [Piglit] [PATCH] gl 1.0: Stress test GL_LINE_LOOP.

2018-01-11 Thread Brian Paul
Reviewed-by: Brian Paul On 01/11/2018 12:54 PM, Fabian Bieler wrote: Draw circles with long line loops and check the result. In particular, check that the last line segment is drawn and that no additional segments in between arbitrary vertices are drawn. V2: Increase vertex size and count

Re: [Piglit] [PATCH 01/18] util/gl: Print numeric value of unrecognized enums.

2018-01-09 Thread Brian Paul
->---const int len = sprintf(position, format, param); +>--->---const char *old_position = position; +>--->---position += len + 1; +>--->---return old_position; +>--->---} >---} } I didn't do a super detailed

Re: [Piglit] [PATCH 12/18] gl 1.0: Stress test GL_LINE_LOOP.

2018-01-09 Thread Brian Paul
On 01/07/2018 03:14 PM, Fabian Bieler wrote: Draw circles with long line loops and check the result. In particular, check that the last line segment is drawn and that no additional segments in between arbitrary vertices are drawn. --- tests/all.py| 1 + tests/spec/gl

Re: [Piglit] [PATCH] fbo-formats: Remove GLenum stringification macros.

2017-12-29 Thread Brian Paul
On 12/29/2017 05:16 PM, Fabian Bieler wrote: Replace GLenum stringification macros with calls to piglit_get_gl_enum_name. V2: Make sure GL 1.0 legacy internal formats '3' and '4' are logged correctly. Reviewed-by: Brian Paul __

Re: [Piglit] Remove GLenum names from tests.

2017-12-29 Thread Brian Paul
nsure that future updates to gl.xml don't necessitate updates to all.py. However, these tests now abort on unknown command line arguments which were silently ignored, previously. I hope this is acceptable. As long as we don't have aborts when running tests/all.py I think that's OK.

Re: [Piglit] [PATCH] arb_texture_multisample: stress test of very large textures (v3)

2017-12-27 Thread Brian Paul
On 12/26/2017 11:57 PM, Arthur Huillet wrote: On Sun, 24 Dec 2017 15:41:38 -0700 Brian Paul wrote: + * Some drivers/GPUs may fail this test. NVIDIA, for example, appears to + * only store the MSAA coverage info, not the sample colors, for samples + * beyond the 8th sample. We may tune the

[Piglit] [PATCH] arb_texture_multisample: stress test of very large textures (v3)

2017-12-24 Thread Brian Paul
Create the largest possible 2D GL_RGBA_32F multisampled texture, load it with known values the read it back and see if the values match up. The --array option runs the test with a 2D texture array instead of an MSAA texture. There are other options to specify texture size, number of samples, fp16

Re: [Piglit] [PATCH] squash! arb_texture_multisample: stress test of very large textures

2017-12-23 Thread Brian Paul
On 12/22/2017 05:05 PM, Fabian Bieler wrote: Only limit texture size to 512x512 in quick.py. --- If you squash this into your test it should only limit the texture size in the 'quick' profile. Two nitpicks: + config.khr_no_error_support = PIGLIT_NO_ERRORS; Isn't it possible for this tes

[Piglit] [PATCH] arb_texture_multisample: stress test of very large textures (v2)

2017-12-23 Thread Brian Paul
Create the largest possible 2D GL_RGBA_32F multisampled texture, load it with known values the read it back and see if the values match up. The --array option runs the test with a 2D texture array instead of an MSAA texture. There are other options to specify texture size, number of samples, fp16

[Piglit] [PATCH] arb_texture_multisample: stress test of very large textures

2017-12-22 Thread Brian Paul
Create the largest possible 2D GL_RGBA_32F multisampled texture, load it with known values the read it back and see if the values match up. The --array option runs the test with a 2D texture array instead of an MSAA texture. There are other options to specify texture size, number of samples, fp16

Re: [Piglit] [PATCH 0/6] Set of little documentation and code cleanups

2017-12-21 Thread Brian Paul
(+), 20 deletions(-) For the series, Reviewed-by: Brian Paul Do you need me to push these for you? ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit

[Piglit] [PATCH] ext_transform_feedback-max-varyings: reduce output upon failures

2017-12-18 Thread Brian Paul
Stop running the test after 10 failures. As it was, a failure could lead to nearly 9MB of output. --- tests/spec/ext_transform_feedback/max-varyings.c | 19 +++ 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/tests/spec/ext_transform_feedback/max-varyings.c b/tests

[Piglit] [PATCH] ext_transform_feedback-interleaved: disable unneeded printfs()

2017-12-18 Thread Brian Paul
No need to print passing cases. Reduced log noise. --- tests/spec/ext_transform_feedback/interleaved.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/spec/ext_transform_feedback/interleaved.c b/tests/spec/ext_transform_feedback/interleaved.c index a52474c..0d237d7 10

Re: [Piglit] Move and rename tests from bugs/ to spec/ directory.

2017-12-18 Thread Brian Paul
). Otherwise no changes. Looks good. Thanks! Reviewed-by: Brian Paul Nicolai Hähnle, Vinson Lee, Wiktor Janas: Do any of you take issue with the addition of the MIT copyright notice? ___ Piglit mailing list Piglit@lists.freedesktop.org https

Re: [Piglit] [PATCH 1/2] tox: use six >= 1.10.0

2017-12-15 Thread Brian Paul
On 12/15/2017 03:57 AM, Juan A. Suarez Romero wrote: --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index c1b7a0104..2bd99f544 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,7 @@ deps = pytest-warnings pytest-timeout py{27,3

[Piglit] [PATCH] arb_texture_view: fix order of vertices in draw_3d_depth()

2017-12-13 Thread Brian Paul
The vertices are drawn with a GL_TRIANGLE_STRIP. As it was, the order of the 3rd and 4th vertices caused us to render a "twisted" quad. With this change, a true quad is drawn. llvmpipe passes as it did before. NVIDIA's driver still fails the test. --- tests/spec/arb_texture_view/common.c | 12

Re: [Piglit] Remove remaing Glean tests.

2017-12-11 Thread Brian Paul
The series looks good to me. Thanks for doing this. Reviewed-by: Brian Paul On 12/09/2017 05:52 AM, Fabian Bieler wrote: This series removes the remaing Glean tests from Piglit. 3 subtests were cherry-picked and ported to Piglit. These test were removed without replacement: api2no

Re: [Piglit] [PATCH] textureGather: add new options for testing mirror address modes

2017-12-11 Thread Brian Paul
ize you're following the style above, but I think putting this on two lines is better. That is: if (i < 0) i = -i - 1; Just in case someone ever needs to set a breakpoint when debugging. Reviewed-by: Brian Paul + isOdd = (i / texture_width) & 1; +

[Piglit] [PATCH] arb_texture_view: fix order of vertices in draw_3d_depth()

2017-12-07 Thread Brian Paul
The vertices are drawn with a GL_TRIANGLE_STRIP. As it was, the order of the 3rd and 4th vertices caused us to render a "twisted" quad. With this change, a true quad is drawn. llvmpipe passes as it did before. NVIDIA's driver still fails the test. --- tests/spec/arb_texture_view/common.c | 12

Re: [Piglit] [PATCH 1/3] arb_texture_multisample: don't use hard-coded sample counts

2017-12-05 Thread Brian Paul
On 12/05/2017 10:19 AM, Roland Scheidegger wrote: Am 05.12.2017 um 17:43 schrieb Brian Paul: Instead of using a fixed number of samples, query the GL_MAX_COLOR_TEXTURE_SAMPLES or GL_MAX_DEPTH_TEXTURE_SAMPLES value and use those. Fixes failures with llvmpipe and VMware driver when MSAA is

[Piglit] [PATCH 3/3] ext_framebuffer_multisample: don't use fixed sample count

2017-12-05 Thread Brian Paul
--- tests/spec/ext_framebuffer_multisample/fast-clear.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/spec/ext_framebuffer_multisample/fast-clear.c b/tests/spec/ext_framebuffer_multisample/fast-clear.c index d4bf7ce..49ec0a3 100644 --- a/tests/spec/ext_frame

[Piglit] [PATCH 1/3] arb_texture_multisample: don't use hard-coded sample counts

2017-12-05 Thread Brian Paul
Instead of using a fixed number of samples, query the GL_MAX_COLOR_TEXTURE_SAMPLES or GL_MAX_DEPTH_TEXTURE_SAMPLES value and use those. Fixes failures with llvmpipe and VMware driver when MSAA is disabled. --- tests/spec/arb_texture_multisample/errors.c| 10 +- tests/spec/arb_text

[Piglit] [PATCH 2/3] arb_texture_storage_multisample: don't use fixed sample count

2017-12-05 Thread Brian Paul
--- tests/spec/arb_texture_storage_multisample/tex-param.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/spec/arb_texture_storage_multisample/tex-param.c b/tests/spec/arb_texture_storage_multisample/tex-param.c index 8aa3df3..bc40ecc 100644 --- a/tests/spec/arb_te

Re: [Piglit] [PATCH 1/6] arb_vertex_program: Test property bindings.

2017-12-03 Thread Brian Paul
ot;; + case GL_POSITION: + return "position"; + case GL_S: + return "s"; + case GL_T: + return "t"; + case GL_R: + return "r"; + case GL_Q: + return

Re: [Piglit] [PATCH] gl-1.2: Test normal rescaling with fixed function pipeline.

2017-11-29 Thread Brian Paul
1, 1}; + + glEnable(GL_LIGHTING); + glEnable(GL_LIGHT0); + + glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, black); + glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, white); + + glLightfv(GL_LIGHT0, GL_DIFFUSE, green_with_a_smitch_of_red); + + glScalef(100.0, 10

Re: [Piglit] [PATCH 0/23] Port glsl1 Glean test to Piglit

2017-11-29 Thread Brian Paul
On 11/29/2017 02:26 PM, Fabian Bieler wrote: On 2017-11-29 04:53, Brian Paul wrote: On 11/23/2017 01:44 PM, Fabian Bieler wrote: This series replaces the "glsl1" Glean test with some Piglit tests. Most tests were replaced by shader_runner tests. The tests for built-in-uniform

Re: [Piglit] [PATCH 0/23] Port glsl1 Glean test to Piglit

2017-11-28 Thread Brian Paul
there's no compiler warnings and all the tests pass/fail as the glean tests did. If there's no other comments in a few days, I can push the series. Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH] glsl-fs-discard-mrt: Fix binding the winsys framebuffer in -fbo mode.

2017-11-17 Thread Brian Paul
(GL_FRAMEBUFFER, 0); + glBindFramebuffer(GL_FRAMEBUFFER, piglit_winsys_fbo); glClearColor(0.5, 0.5, 0.5, 0.5); glClear(GL_COLOR_BUFFER_BIT); Reviewed-by: Brian Paul ___ Piglit mailing list Piglit@lists.freedesktop.org https

[Piglit] [PATCH] generators: fix incorrect generated_tests/spec/glsl-110, etc. dir names

2017-11-17 Thread Brian Paul
We were generating tests both in spec/glsl-1.10/ and spec/glsl-110/. This changes the later to match the former. --- generated_tests/gen_variable_index_write_tests.py | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/generated_tests/gen_variable_index_write_tests.py b/g

Re: [Piglit] [PATCH] unittests: test WflInfo in its own module and correct depending ones

2017-11-15 Thread Brian Paul
Reviewed-by: Brian Paul On 11/15/2017 02:21 AM, Andres Gomez wrote: Fixes: edc41a1db ("framework: move WflInfo class into new wflinfo.py module") Cc: Brian Paul Cc: Dylan Baker Signed-off-by: Andres Gomez --- unittests/framework/test/test_glsl_parser_test.py | 2 +-

Re: [Piglit] [PATCH 05/12] Port texture env test from Glean to Piglit

2017-11-14 Thread Brian Paul
* OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + +/** + * @file tex-env.c: Test the basic texture env modes + * Author: Brian Paul (bri...@valinux.com) April 2001 + * + * Test procedure: + * Setup a texture with 81 columns of unique RGBA colors,

Re: [Piglit] [PATCH] isinf-and-isnan: add clamp / min / max tests

2017-11-14 Thread Brian Paul
/* Expected to evaluate to a finite value */ B_POSINF = 2, /* Expected to evaluate to +Infinity */ B_NEGINF = 3, /* Expected to evaluate to -Infinity */ + B_FINITE_NANOK = 4, /* Expected finite value, but NaN ok */ My only nit-pick is to change that to NAN_OK. Reviewed

[Piglit] [PATCH 2/2] framework: fix wflinfo GL shading language parsing code

2017-11-13 Thread Brian Paul
With NVIDIA's driver, wflinfo reports a GLSL version line like this: "OpenGL shading language version string: 4.40 NVIDIA via Cg compiler" The existing parsing code didn't expect the text after the version number and generated an exception. Change the parsing to handle this. --- framework/wflinfo

[Piglit] [PATCH 1/2] all.py: fix version checks in is_feature_directory_supported()

2017-11-13 Thread Brian Paul
The wflinfo versions should be floats already, so don't call float() again. If querying the ES api/version fails, we'll get None for the version number so check for that. --- tests/all.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/all.py b/tests/all.

[Piglit] [PATCH 4/4] arb_sample_shading: don't use gl_FragColor/Data in fragment shaders

2017-11-10 Thread Brian Paul
NVIDIA's driver fails to compile the fragment shaders with "Failed to compile fragment shader: 0(4) : error C7533: global variable gl_FragData is deprecated after version 120". Use 'out fragdata' or 'out fragcolor' instead. Tested with Mesa too. --- .../execution/ignore-centroid-qualifier.cpp

[Piglit] [PATCH 2/4] util: const-qualify data parameter to piglit_multisample_texture()

2017-11-10 Thread Brian Paul
--- tests/util/piglit-util-gl.c | 2 +- tests/util/piglit-util-gl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index 041427d..43b38e5 100644 --- a/tests/util/piglit-util-gl.c +++ b/tests/util/piglit-util-gl.c @@

[Piglit] [PATCH 3/4] arb_indirect_parameters: add cast to silence compiler warnings

2017-11-10 Thread Brian Paul
--- tests/spec/arb_indirect_parameters/tf-count-arrays.c | 2 +- tests/spec/arb_indirect_parameters/tf-count-elements.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/spec/arb_indirect_parameters/tf-count-arrays.c b/tests/spec/arb_indirect_parameters/tf-count-array

[Piglit] [PATCH 1/4] util: fix piglit_multisample_texture() parameter type

2017-11-10 Thread Brian Paul
Texture IDs are GLuint, not GLenum. --- tests/util/piglit-util-gl.c | 3 ++- tests/util/piglit-util-gl.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c index d8b8f85..041427d 100644 --- a/tests/util/piglit-util-gl.c

Re: [Piglit] [PATCH] gl-1.0-logicop: allow testing single mode on the command line

2017-11-10 Thread Brian Paul
On 11/10/2017 12:16 PM, Charmaine Lee wrote: From: Brian Paul Sent: Thursday, November 9, 2017 12:52 PM To: piglit@lists.freedesktop.org Cc: Charmaine Lee; Brian Paul Subject: [PATCH] gl-1.0-logicop: allow testing single mode on the command line And require GL 1.1 since that's when

Re: [Piglit] [PATCH 2/2] all.py: filter directories traversed to find shader tests

2017-11-09 Thread Brian Paul
On 11/09/2017 05:29 PM, Dylan Baker wrote: Quoting Brian Paul (2017-11-09 15:16:33) The script searches all files under tests/ and generated_tests/ for files ending in ".shader_test". For each match, a ShaderTest() object is created and added to the test list. For GL extensions o

[Piglit] [PATCH] framework: decrement argc in delete_arg()

2017-11-09 Thread Brian Paul
So it doesn't have to be done after every call to delete_arg(). --- tests/util/piglit-framework-gl.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/tests/util/piglit-framework-gl.c b/tests/util/piglit-framework-gl.c index 22aadc5..1b2078d 100644 --- a/

[Piglit] [PATCH] all.py: filter directories traversed to find shader tests

2017-11-09 Thread Brian Paul
The script searches all files under tests/ and generated_tests/ for files ending in ".shader_test". For each match, a ShaderTest() object is created and added to the test list. For GL extensions or versions not supported by the driver, this is wasted effort. This patch looks for directories unde

[Piglit] [PATCH 1/2] framework: fix wflinfo issues in opengl module

2017-11-09 Thread Brian Paul
1. If the PIGLIT_PLATFORM string is 'mixed_glx_egl' we need to convert it to 'glx' so that wflinfo understands it. 2. Look in the piglit bin/ directory for the wflinfo.exe program. When we build piglit, we copy wflinfo.exe into the bin/ directory for packaging to avoid having to install waffle on

[Piglit] [PATCH 2/2] all.py: filter directories traversed to find shader tests

2017-11-09 Thread Brian Paul
The script searches all files under tests/ and generated_tests/ for files ending in ".shader_test". For each match, a ShaderTest() object is created and added to the test list. For GL extensions or versions not supported by the driver, this is wasted effort. This patch looks for directories unde

  1   2   3   4   5   6   7   8   9   10   >