[Piglit] [PATCH 04/11] shader_runner: Add image texture command for BindImageTexture

2014-06-01 Thread Jordan Justen
We only use one parameter which means the texture unit index must match the image unit index. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 8 1 file changed, 8 insertions(+) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 846db4c

[Piglit] [PATCH 10/11] built-in-constants: Support compute shaders

2014-06-01 Thread Jordan Justen
Compute shaders must be linked separately to process minimums and maximums. In the line following the version, we now look for a shader type string. (One of vertex, geometry, fragment or compute.) If specified, then that shader type will be tested separately. Signed-off-by: Jordan Justen

[Piglit] [PATCH 11/11] arb_compute_shader: Test remaining compute GLSL minimums & maximums

2014-06-01 Thread Jordan Justen
Also, convert two glslparsertest tests to use built-in-constants. Signed-off-by: Jordan Justen --- tests/all.py | 1 + .../compiler/gl_MaxComputeWorkGroupCount.comp| 20 .../compiler/gl_MaxComputeWorkGroupSize.comp

[Piglit] [PATCH 09/11] arb_compute_shader: Test simple usage of barrier function

2014-06-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../execution/simple-barrier.shader_test | 56 ++ 1 file changed, 56 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/simple-barrier.shader_test diff --git a/tests/spec/arb_compute_shader/execution/simple

[Piglit] [PATCH 07/11] arb_compute_shader: Test reading and merging multiple source images

2014-06-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../execution/multiple-texture-reading.shader_test | 80 ++ 1 file changed, 80 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/multiple-texture-reading.shader_test diff --git a/tests/spec/arb_compute_shader

[Piglit] [PATCH 03/11] shader_runner: Allow binding a texture to FB attachment0

2014-06-01 Thread Jordan Justen
This will allow probing from the texture for operations that want to target a texture rather than the draw framebuffer. (For example, imageStore) Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 29 + 1 file changed, 29 insertions(+) diff --git a

[Piglit] [PATCH 05/11] shader_runner: Add compute command to access DispatchCompute

2014-06-01 Thread Jordan Justen
This will run glDispatchCompute allowing a compute shader to run. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 4f9fd47..b71a401

[Piglit] [PATCH 02/11] shader_runner: Create separate render width/height variables

2014-06-01 Thread Jordan Justen
This will allow us to bind a texture to a framebuffer for rendering and probing. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 38 +- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests

[Piglit] [PATCH 01/11] shader_runner: Don't try to enable GL_TEXTURE_2D in core profiles

2014-06-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- Series available at 'cs' branch of: git://people.freedesktop.org/~jljusten/piglit tests/shaders/shader_runner.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runn

[Piglit] [PATCH 08/11] arb_compute_shader: Test a simple compute shader with multiple workgroups

2014-06-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../execution/multiple-workgroups.shader_test | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/multiple-workgroups.shader_test diff --git a/tests/spec/arb_compute_shader/execution

[Piglit] [PATCH 06/11] arb_compute_shader: Test basic uniform access in a compute shader

2014-06-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../execution/basic-uniform-access.shader_test | 37 ++ 1 file changed, 37 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/basic-uniform-access.shader_test diff --git a/tests/spec/arb_compute_shader/execution

[Piglit] [PATCH 2/8] arb_tessellation_shader: Add GLSL minimum-maximums test

2014-06-02 Thread Jordan Justen
Signed-off-by: Jordan Justen --- tests/all.py| 4 tests/spec/arb_tessellation_shader/minimum-maximums.txt | 16 2 files changed, 20 insertions(+) create mode 100644 tests/spec/arb_tessellation_shader/minimum-maximums.txt diff

[Piglit] [PATCH 8/8] arb_tessellation_shader: Add nop tessellation drawing test

2014-06-02 Thread Jordan Justen
This test will add no extra tessellated triangles. It basically passes verticies through the tessellation stages and draws two triangles. Signed-off-by: Jordan Justen --- tests/all.py | 3 ++ .../execution/nop.shader_test | 63

[Piglit] [PATCH 5/8] arb_tessellation_shader: Add nop compiler tests

2014-06-02 Thread Jordan Justen
Signed-off-by: Jordan Justen --- tests/all.py | 3 +++ tests/spec/arb_tessellation_shader/compiler/nop.tessc | 14 ++ tests/spec/arb_tessellation_shader/compiler/nop.tesse | 12 3 files changed, 29 insertions(+) create mode

[Piglit] [PATCH 4/8] glslparsertest: Add tessellation shader support

2014-06-02 Thread Jordan Justen
.tessc: Tessellation Control shader test .tesse: Tessellation Evaluation shader test Signed-off-by: Jordan Justen --- tests/glslparsertest/glslparsertest.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/tests/glslparsertest/glslparsertest.c b/tests/glslparsertest

[Piglit] [PATCH 6/8] shader_runner: Add tessellation shader support

2014-06-02 Thread Jordan Justen
Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 75 --- 1 file changed, 71 insertions(+), 4 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index b71a401..5f6722a 100644 --- a/tests/shaders

[Piglit] [PATCH 7/8] shader_runner: Add 'patch vertices' command to set GL_PATCH_VERTICES

2014-06-02 Thread Jordan Justen
Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 5f6722a..a4be7a5 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -2066,6

[Piglit] [PATCH 1/8] built-in-constants: Support tessellation shaders

2014-06-02 Thread Jordan Justen
ages. Signed-off-by: Jordan Justen --- Series available at 'ts' branch of: git://people.freedesktop.org/~jljusten/piglit tests/shaders/built-in-constants.c | 97 +++--- 1 file changed, 90 insertions(+), 7 deletions(-) diff --git a/tests/shaders/built-in-

[Piglit] [PATCH 3/8] arb_tessellation_shader: Add GL minmax test

2014-06-02 Thread Jordan Justen
Signed-off-by: Jordan Justen --- tests/all.py | 1 + tests/spec/CMakeLists.txt | 1 + .../spec/arb_tessellation_shader/CMakeLists.gl.txt | 15 tests/spec/arb_tessellation_shader/CMakeLists.txt | 1 + tests/spec

Re: [Piglit] [PATCH 1/8] built-in-constants: Support tessellation shaders

2014-06-02 Thread Jordan Justen
Whoops, self-NAK this series. As Chris points out, Fabian already has some patches out for arb_ts. -Jordan On Mon, Jun 2, 2014 at 3:44 PM, Jordan Justen wrote: > Note: If the file requests testing only with GL_TESS_CONTROL_SHADER or > GL_TESS_EVALUATION_SHADER, then the vertex, ge

Re: [Piglit] [PATCH] arb_gpu_shader5: Add an initial batch of `precise` qualifier tests.

2014-06-03 Thread Jordan Justen
On Fri, May 2, 2014 at 12:35 PM, Anuj Phogat wrote: > On Sat, Apr 26, 2014 at 9:04 PM, Chris Forbes wrote: >> Signed-off-by: Chris Forbes >> --- >> .../compiler/precise-qualifier/precise-01.vert | 12 +++ >> .../compiler/precise-qualifier/precise-02.vert | 12 +++ >> ...

Re: [Piglit] [PATCH 05/15] arb_tessellation_shader: Test GL limits and default state.

2014-06-03 Thread Jordan Justen
I pushed the other 14 patches in this series. (I got the 'install tesc/tese' v2 from your github repo.) For this one, what do you think about the minmax test I posted yesterday for the limits? For the defaults, hmm, maybe we should create some standard helper functions like minmax? I wouldn't say

[Piglit] [PATCH 1/3] shader_runner: Add 'atomic counters' command

2014-06-07 Thread Jordan Justen
This command initializes the specified number of atomic counters all containing an initial value of 0. For example, 'atomic counters 2' creates an zeroed 8 byte buffer for 2 atomic counters. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 11 ++- 1 file c

[Piglit] [PATCH 2/3] shader_runner: Add 'probe atomic counter' command

2014-06-07 Thread Jordan Justen
and ensure the value is greater than 512. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 56 +++ 1 file changed, 56 insertions(+) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 4babd36..8c8d8f6 100

[Piglit] [PATCH 3/3] arb_compute_shader: Add simple compute shader with atomic counters

2014-06-07 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../execution/atomic-counter.shader_test | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/atomic-counter.shader_test diff --git a/tests/spec/arb_compute_shader/execution/atomic

Re: [Piglit] [Mesa-dev] [PATCH 00/18] Multi-stream support for geometry shaders

2014-06-16 Thread Jordan Justen
On Mon, Jun 16, 2014 at 1:05 AM, Samuel Iglesias Gonsálvez wrote: > On Sun, 2014-06-15 at 19:18 -0400, Ilia Mirkin wrote: >> On Wed, Jun 11, 2014 at 12:31 PM, Jordan Justen wrote: >> > On Wed, Jun 11, 2014 at 2:49 AM, Iago Toral wrote: >> >> Hi Chris, >>

Re: [Piglit] [PATCH 1/3] shader_runner: Add 'atomic counters' command

2014-06-18 Thread Jordan Justen
On 2014-06-18 01:47:21, Chris Forbes wrote: > Not really thrilled with the parens in 2/3, but I need this working > for the tests I'm writing :) I'll drop the parens. > This series is: > > Reviewed-by: Chris Forbes Thanks! > On Sun, Jun 8, 2014 at 6:58 AM, Jorda

Re: [Piglit] [PATCH] tests/all.py: Fix bug that erases tests

2014-06-18 Thread Jordan Justen
Reviewed-by: Jordan Justen On Tue, Jun 17, 2014 at 8:45 AM, Dylan Baker wrote: > Previously spec['glsl-3.30'] was initialized to {} twice, meaning all > tests added before the second assignment were discarded. > > Signed-off-by: Dylan Baker > --- > tests/all.py |

[Piglit] [PATCH] shader_runner: Only call glMemoryBarrier when supported

2014-06-19 Thread Jordan Justen
Make sure ARB_shader_image_load_store is supported before calling glMemoryBarrier. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 21 + 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders

Re: [Piglit] [PATCH] shader_runner: Only call glMemoryBarrier when supported

2014-06-22 Thread Jordan Justen
On Sun, Jun 22, 2014 at 10:49 PM, Kenneth Graunke wrote: > On Saturday, June 21, 2014 08:34:05 PM Chris Forbes wrote: >> Ian, >> >> That's true, but... we will probably have compute finished long before > images. >> >> Is there an acceptable thing to do here in the interim? >> >> -- Chris > > How?

Re: [Piglit] [Patch v2 1/4] framework: allow loading a piglit.conf from more locations

2014-07-15 Thread Jordan Justen
On Mon, Jul 7, 2014 at 4:20 PM, Dylan Baker wrote: > With this patch piglit.conf can live in a number of different places. It > can live in the current directory, then in XDG_CONFIG_HOME > ($HOME/.config by default), and finally in the piglit source directory. > > v2: - fix types (chadv) > - c

Re: [Piglit] [Patch v2 1/4] framework: allow loading a piglit.conf from more locations

2014-07-15 Thread Jordan Justen
On Tue, Jul 15, 2014 at 7:02 AM, Dylan Baker wrote: > [snip] >> > +else: >> > +if __debug__: >> > +print('Warning: piglit.conf not found!\n' >> > + '(searching current dir, $HOME/.config, ' >> > + '$XDG_CONFIG_HOME, and

Re: [Piglit] [Patch v2 1/4] framework: allow loading a piglit.conf from more locations

2014-07-18 Thread Jordan Justen
On Tue, Jul 15, 2014 at 6:39 PM, Dylan Baker wrote: > On Tuesday, July 15, 2014 04:44:31 PM Jordan Justen wrote: >> On Tue, Jul 15, 2014 at 7:02 AM, Dylan Baker > wrote: >> > [snip] >> > >> >> > +else: >> >> > +

[Piglit] [PATCH] arb_compute_shader glsl min/max: Update gl_MaxComputeUniformComponents

2014-07-24 Thread Jordan Justen
2. Signed-off-by: Jordan Justen --- tests/spec/arb_compute_shader/minimum-maximums.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spec/arb_compute_shader/minimum-maximums.txt b/tests/spec/arb_compute_shader/minimum-maximums.txt index 3d55c8f..85cac37 100644 --- a/

Re: [Piglit] Set default platform in pigilt.conf

2014-08-25 Thread Jordan Justen
anted, correct? Uh, yeah. Patch 18 anyway. :) Series Reviewed-by: Jordan Justen ___ Piglit mailing list Piglit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/piglit

Re: [Piglit] [PATCH 15/18] integration_tests.py: Skip on addtional error

2014-08-25 Thread Jordan Justen
Typo in subject: addtional => additional On Tue, Aug 19, 2014 at 1:25 PM, Dylan Baker wrote: > If a config file doesn't have a section for the external suites they > will raise an exception. This causes the tests to skip if there is a > NoSectionError > > Signed-off-by: Dylan Baker > --- > fram

[Piglit] [PATCH 3/3] gen_builtin_uniform_tests: Support Compute shaders

2014-08-27 Thread Jordan Justen
Signed-off-by: Jordan Justen --- generated_tests/gen_builtin_uniform_tests.py | 44 1 file changed, 44 insertions(+) diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py index 3e9b64c..d89a6f3 100644 --- a

[Piglit] [PATCH 1/3] gen_builtin_uniform_tests: Make VS & FS optional

2014-08-27 Thread Jordan Justen
Compute shader tests will not need a VS or FS. Signed-off-by: Jordan Justen --- generated_tests/gen_builtin_uniform_tests.py | 35 +++- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests

[Piglit] [PATCH 2/3] gen_builtin_uniform_tests: Allow test to have init sequence

2014-08-27 Thread Jordan Justen
Signed-off-by: Jordan Justen --- generated_tests/gen_builtin_uniform_tests.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/generated_tests/gen_builtin_uniform_tests.py b/generated_tests/gen_builtin_uniform_tests.py index 975c9ef..3e9b64c 100644 --- a/generated_tests

[Piglit] [PATCH] libpiglit: Set CMAKE SOVERSION for internal libraries to "0"

2014-09-10 Thread Jordan Justen
these internal libraries causes this message to go away. Signed-off-by: Jordan Justen --- cmake/piglit_util.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/piglit_util.cmake b/cmake/piglit_util.cmake index e2c3454..45143d2 100644 --- a/cmake/piglit_util.cmake +++ b/

Re: [Piglit] [RFC] Piglit tags/releases

2014-09-29 Thread Jordan Justen
On 2014-09-29 10:01:59, Matt Turner wrote: > On Mon, Sep 29, 2014 at 9:34 AM, Emil Velikov > wrote: > > While I've been through the RELEASES document I believe it would be > > beneficial if we regularly create a tag("release"), that is to serve the > > following > > - Human understandable format

Re: [Piglit] [RFC] Piglit tags/releases

2014-09-29 Thread Jordan Justen
On Mon, Sep 29, 2014 at 5:01 PM, Matt Turner wrote: > On Mon, Sep 29, 2014 at 4:52 PM, Jordan Justen wrote: >> Anyway, I discussed it with Ian around Mesa 10.2. While I don't think >> he was excited about it, he also did not express any reasons for not >> doing it. B

Re: [Piglit] [RFC] Piglit tags/releases

2014-09-29 Thread Jordan Justen
On Mon, Sep 29, 2014 at 7:39 PM, Matt Turner wrote: > On Mon, Sep 29, 2014 at 6:45 PM, Jordan Justen wrote: >> On Mon, Sep 29, 2014 at 5:01 PM, Matt Turner wrote: >>> On Mon, Sep 29, 2014 at 4:52 PM, Jordan Justen wrote: >>>> Anyway, I discussed it with Ian a

Re: [Piglit] [RFC] Piglit tags/releases

2014-09-30 Thread Jordan Justen
On Tue, Sep 30, 2014 at 8:18 AM, Ian Romanick wrote: > On 09/29/2014 10:01 AM, Matt Turner wrote: >> On Mon, Sep 29, 2014 at 9:34 AM, Emil Velikov >> wrote: >>> While I've been through the RELEASES document I believe it would be >>> beneficial if we regularly create a tag("release"), that is to

Re: [Piglit] [RFC] Piglit tags/releases

2014-10-03 Thread Jordan Justen
On Thu, Oct 2, 2014 at 4:43 PM, Emil Velikov wrote: > On 02/10/14 21:44, Ian Romanick wrote: >> On 09/30/2014 09:55 AM, Emil Velikov wrote: >>> On 30/09/14 16:18, Ian Romanick wrote: On 09/29/2014 10:01 AM, Matt Turner wrote: > On Mon, Sep 29, 2014 at 9:34 AM, Emil Velikov > wrote:

Re: [Piglit] [PATCH v2] gbm: use libcaca to display results in non-auto mode

2014-11-03 Thread Jordan Justen
On 2014-11-01 00:06:33, Ben Widawsky wrote: > From: Jordan Justen > > If GBM is enabled, attempt to locate libcaca too. > > If the test was not run with -auto, then use libcaca > to draw a text version of the test's results to the > console. > > v2 (Ben): Rebase

[Piglit] [PATCH 2/4] cs: Test basic texture sampling from a compute shader

2014-11-22 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../execution/basic-texelFetch.shader_test | 62 ++ 1 file changed, 62 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/basic-texelFetch.shader_test diff --git a/tests/spec/arb_compute_shader/execution/basic

[Piglit] [PATCH 3/4] cs: Test values of gl_LocalInvocationID using atomic counters

2014-11-22 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../execution/basic-local-id-atomic.shader_test| 61 ++ 1 file changed, 61 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/basic-local-id-atomic.shader_test diff --git a/tests/spec/arb_compute_shader/execution

[Piglit] [PATCH 4/4] cs: Add test of barrier() function that uses atomic counters

2014-11-22 Thread Jordan Justen
A simple compute shader that uses atomics with a barrier call. Signed-off-by: Jordan Justen --- .../execution/simple-barrier-atomics.shader_test | 35 ++ 1 file changed, 35 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/simple-barrier

[Piglit] [PATCH 1/4] cs: Add simple uniform test with outputs in atomic counters

2014-11-22 Thread Jordan Justen
Signed-off-by: Jordan Justen --- .../basic-uniform-access-atomic.shader_test| 56 ++ 1 file changed, 56 insertions(+) create mode 100644 tests/spec/arb_compute_shader/execution/basic-uniform-access-atomic.shader_test diff --git a/tests/spec/arb_compute_shader

[Piglit] [PATCH] cs: use unsigned for gl_WorkGroupSize in compiler tests

2014-11-22 Thread Jordan Justen
As documented in: https://www.opengl.org/registry/specs/ARB/compute_shader.txt gl_WorkGroupSize's type is uvec3, not ivec3. Signed-off-by: Jordan Justen --- .../arb_compute_shader/compiler/gl_WorkGroupSize_before_layout.comp | 2 +- .../compiler/gl_WorkGroupSize_matches_layout

Re: [Piglit] [PATCH] glsl-1.50: Add more tests for interface block name reuse

2014-11-30 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2014-11-29 12:54:21, Chris Forbes wrote: > Mesa's GLSL implementation has different paths for these cases. Just > make sure we cover them all. > > Signed-off-by: Chris Forbes > --- > .../interface-blocks-name-reused

[Piglit] [PATCH] arb_shader_image_load_store: compiler tests for memory qualifiers

2014-12-03 Thread Jordan Justen
Signed-off-by: Jordan Justen Cc: Francisco Jerez --- Francisco, Question for your image-load-store branch: Should we parse the memory qualifiers separately from storage_qualifier? I did a quick hack to bypass this issue: - if ($2.has_storage()) + if ($1.has_storage() &

[Piglit] [PATCH] arb_shader_image_load_store: basic imageStore using a uniform

2014-12-03 Thread Jordan Justen
Signed-off-by: Jordan Justen Cc: Francisco Jerez --- Francisco, I was looking at your image-load-store branch. I noticed using imageStore directly from a uniform results in: brw_ir_svec4.h:94: brw::array_reg brw::half(const brw::array_reg&, unsigned int) [with R = fs_reg]: Asser

Re: [Piglit] [PATCH] arb_shader_image_load_store: compiler tests for memory qualifiers

2014-12-04 Thread Jordan Justen
On 2014-12-04 02:33:06, Francisco Jerez wrote: > Jordan Justen writes: > > > Signed-off-by: Jordan Justen > > Cc: Francisco Jerez > > --- > > Francisco, > > > > Question for your image-load-store branch: > > > > Should we parse the m

[Piglit] [PATCH] generated builtin_uniform: Fix dimensions of cs tests

2014-12-08 Thread Jordan Justen
Previously we created a 16 x 16 texture. But, the generated tests require a variable width based on the number of sub-test-cases. The tests also only need a texture with a height of 1. Signed-off-by: Jordan Justen --- On Nvidia, this allows 211 more tests to pass. generated_tests

Re: [Piglit] [RFC 10/12] generators: combine gen_builtin_uniform_tests* generators

2014-12-09 Thread Jordan Justen
ugh patch 10, it seems possible that that output might be unchanged. I'm not saying it is a requirement that it be exactly the same generated tests, but it would make it easier to say 'go ahead' with the changes. For 1-3 & 11-12: Reviewed-by: Jordan Justen

[Piglit] [PATCH] ARB_pipeline_statistics_query (comp): basic test

2014-12-11 Thread Jordan Justen
Signed-off-by: Jordan Justen Cc: Ben Widawsky --- Requires Ben's ARB_pipeline_statistics_query series. tests/all.py | 2 + .../spec/arb_pipeline_statistics/CMakeLists.gl.txt | 2 + .../arb_pipeline_statistics/pipeline_stats_comp.c

[Piglit] [PATCH 2/2] gbm: Use caca_flop to vertically flop the output

2015-01-05 Thread Jordan Justen
Ken pointed out cucul_flop in the original libcaca patch, but going back to 2008-09-27, r2821, http://caca.zoy.org/browser/libcaca/trunk/caca/caca.h?rev=2821#L251 caca_flop seems to be preferred. Signed-off-by: Jordan Justen --- .../util/piglit-framework-gl/piglit_gbm_framework.c | 20

[Piglit] [PATCH 1/2] gbm: Fix off by 1 error in libcaca image flop

2015-01-05 Thread Jordan Justen
Signed-off-by: Jordan Justen --- %^$# @^&* %^$# !!! tests/util/piglit-framework-gl/piglit_gbm_framework.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/util/piglit-framework-gl/piglit_gbm_framework.c b/tests/util/piglit-framework-gl/piglit_gbm_framework.c i

Re: [Piglit] [PATCH 01/23] util/shader: Define "nothrow" variant of piglit_compile_shader_text().

2015-01-31 Thread Jordan Justen
On 2015-01-31 07:41:23, Francisco Jerez wrote: > Define a variant of piglit_compile_shader_text() that doesn't call > piglit_report_result() on failure killing the program, which is quite > annoying for tests that expect a compilation to fail and for tests > that are structured in a number of subte

Re: [Piglit] [PATCHv2 02/23] arb_shader_image_load_store: Add common image metadata.

2015-01-31 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2015-01-31 07:41:24, Francisco Jerez wrote: > Define helper data structures and functions to query several kinds of > information for any supported image format, target or shader stage, > like the matching pixel transfer type and format for a given image

Re: [Piglit] [PATCH 01/23] util/shader: Define "nothrow" variant of piglit_compile_shader_text().

2015-01-31 Thread Jordan Justen
On 2015-01-31 11:45:59, Francisco Jerez wrote: > Jordan Justen writes: > > > On 2015-01-31 07:41:23, Francisco Jerez wrote: > >> Define a variant of piglit_compile_shader_text() that doesn't call > >> piglit_report_result() on failure killing the program, whi

Re: [Piglit] [PATCH 07/23] arb_shader_image_load_store: Import memory coherency test.

2015-02-01 Thread Jordan Justen
image_qualifier_info *qual; > +const struct image_stage_info *stage_w; > +const struct image_stage_info *stage_r; > +enum piglit_result status = PIGLIT_PASS; > +unsigned l; > + > +piglit_require_extension("GL_A

[Piglit] [PATCH 1/3] gbm: Attempt to size libcaca output to fit the console window

2015-02-01 Thread Jordan Justen
Take into account the aspect ratio of piglit_width to piglit_height. The assumption is made that the console window is 80 x 24. Signed-off-by: Jordan Justen --- .../piglit-framework-gl/piglit_gbm_framework.c | 41 +++--- 1 file changed, 37 insertions(+), 4 deletions(-) diff

[Piglit] [PATCH 3/3] gbm: Limit libcaca size for small tests

2015-02-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- tests/util/piglit-framework-gl/piglit_gbm_framework.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/util/piglit-framework-gl/piglit_gbm_framework.c b/tests/util/piglit-framework-gl/piglit_gbm_framework.c index d6344f8

[Piglit] [PATCH 2/3] gbm: Use libcaca to determine console resolution

2015-02-01 Thread Jordan Justen
Signed-off-by: Jordan Justen --- tests/util/piglit-framework-gl/piglit_gbm_framework.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tests/util/piglit-framework-gl/piglit_gbm_framework.c b/tests/util/piglit-framework-gl/piglit_gbm_framework.c index 581ca99..d6344f8 100644 --- a

Re: [Piglit] [PATCHv2 10/23] arb_shader_image_load_store: Import host memory barrier tests.

2015-02-03 Thread Jordan Justen
8-10 and 21 Reviewed-by: Jordan Justen These are some challenging tests to review, but they seem very thorough. For the rest, I think you should proceed with your plan and commit them without an r-b. -Jordan On 2015-01-31 07:41:32, Francisco Jerez wrote: > Add tests for the glMemoryBarr

[Piglit] [PATCH] ARB_shader_atomic_counters: Add simple VS test with inc/dec/read

2015-02-17 Thread Jordan Justen
Simple test of atomicCounterIncrement, atomicCounterDecrement and atomicCounter being used in the VS. Signed-off-by: Jordan Justen --- tests/all.py | 3 + .../execution/vs-simple-inc-dec-read.shader_test | 70 ++ 2 files changed, 73

[Piglit] [PATCH 2/3] shader_runner: Add INT support in require section

2015-02-18 Thread Jordan Justen
This allows a shader_test to require something like: INT GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS >= 2 Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.

[Piglit] [PATCH 1/3] piglit-util-gl: Add piglit_get_gl_enum_from_name

2015-02-18 Thread Jordan Justen
Signed-off-by: Jordan Justen Reviewed-by: Chad Versace --- tests/util/gen_dispatch.py| 21 ++- tests/util/piglit-util-gl-enum-gen.c.mako | 35 +++ tests/util/piglit-util-gl.h | 9 3 files changed, 64 insertions

[Piglit] [PATCH 3/3] ARB_shader_atomic_counters: Add simple VS test with inc/dec/read

2015-02-18 Thread Jordan Justen
Simple test of atomicCounterIncrement, atomicCounterDecrement and atomicCounter being used in the VS. v2: * Drop CORE requirement * Add GL_ARB_shader_atomic_counters requirement * Require INT GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS >= 2 Signed-off-by: Jordan Justen Cc: Ilia Mirkin --- te

Re: [Piglit] [PATCH 1/3] piglit-util-gl: Add piglit_get_gl_enum_from_name

2015-02-18 Thread Jordan Justen
On 2015-02-18 14:32:29, Jordan Justen wrote: > diff --git a/tests/util/piglit-util-gl.h b/tests/util/piglit-util-gl.h > index 0f8eb81..fa4a6e4 100644 > --- a/tests/util/piglit-util-gl.h > +++ b/tests/util/piglit-util-gl.h > @@ -87,6 +87,15 @@ const char* piglit_get_gl_error_na

Re: [Piglit] [PATCH 07/34] Add dependency on Python six

2015-02-21 Thread Jordan Justen
Update the README? 1-7 Reviewed-by: Jordan Justen On 2015-02-20 18:17:54, Dylan Baker wrote: > Six is a module that provides a clean, standardized interface for > handling python2 and python3 from the same code base. This adds a > requirement on six as a build-time dependency, the p

Re: [Piglit] [PATCH 08/34] generators: python2/3 hybridize gen_outerproduct_tests.py

2015-02-21 Thread Jordan Justen
e learn some new git magic. :) git show --word-diff-regex=. dcbaker/submit/python3~26 Reviewed-by: Jordan Justen > Signed-off-by: Dylan Baker > --- > generated_tests/gen_outerproduct_tests.py | 4 +++- > .../gen_outerproduct_tests/template.shader_test.mako | 18 &

Re: [Piglit] [PATCH 13/34] gen_shader_precision_tests.py: python2/3 hybridize

2015-02-21 Thread Jordan Justen
generates. > """ > > -from builtin_function import * > -import mako.template Seems unrelated, but meh... 9-13 Reviewed-by: Jordan Justen > +from builtin_function import * > import os > > +import six > +from six.moves import range > + > from tem

Re: [Piglit] [PATCH 25/34] registry generation: Finish hybridizing

2015-02-21 Thread Jordan Justen
six.PY2: > +# long is undefined in python3, and we are aware of that > +# pylint: disable=undefined-variable > +self.num_value = long(self.str_value, base) > +elif six.PY3: How about? else: assert six.PY3 14-25 Reviewed-by: Jordan

Re: [Piglit] [PATCH 00/34] Hybridize build system for python2 and python3

2015-02-21 Thread Jordan Justen
Series Reviewed-by: Jordan Justen except 31 (add MIT header) which I think you should get confirmation from the authors. I responded to a few patches with notes, but nothing critical. -Jordan On 2015-02-20 18:17:47, Dylan Baker wrote: > This series hybridizes the python generator framew

[Piglit] [PATCH v2 2/3] shader_runner: Add INT support in require section

2015-02-23 Thread Jordan Justen
This allows a shader_test to require something like: INT GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS >= 2 Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/tests/shaders/shader_runner.

[Piglit] [PATCH v2 3/3] ARB_shader_atomic_counters: Add simple VS test with inc/dec/read

2015-02-23 Thread Jordan Justen
Simple test of atomicCounterIncrement, atomicCounterDecrement and atomicCounter being used in the VS. v2: * Drop CORE requirement * Add GL_ARB_shader_atomic_counters requirement * Require INT GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS >= 2 Signed-off-by: Jordan Justen Reviewed-by: Ilia Mir

Re: [Piglit] [PATCH] Delete redundant condition-07.vert test.

2015-03-06 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2015-03-05 23:22:52, Kenneth Graunke wrote: > This test is redundant with: > glsl-1.20/compiler/structure-and-array-operations/array-selection.vert > > Both contain the same shader code and the same spec citation - the only > difference is variabl

[Piglit] [PATCH] framework: Support PIGLIT_DEFAULT_SIZE env variable

2015-04-19 Thread Jordan Justen
. Not all piglit tests will operate properly at every size, so this environment variable should be used carefully. Signed-off-by: Jordan Justen --- tests/util/piglit-framework-gl.c | 31 +++ tests/util/piglit-framework-gl.h | 7 --- 2 files changed, 31 insertions

Re: [Piglit] [PATCH 2/2] util: Add a -png option to dump PNG files on piglit_present_results().

2015-05-14 Thread Jordan Justen
base_format, GL_UNSIGNED_BYTE, image); > + assert(glGetError() == GL_NO_ERROR); > + > + asprintf(&filename, "%s%03d.png", fileprefix, frame++); > + > + printf("Writing %s...\n", filename); > + p

[Piglit] [PATCH 2/3] shader_runner: Support optional format paramters for 'texture rgbw'

2015-05-25 Thread Jordan Justen
ple: texture rgbw 0 (16, 16) GL_RGBA8 Additionally, an optional fifth paramter can be added. This will specify the base type for the image. For example: texture rgbw 0 (16, 16) GL_RGBA8 GL_UNSIGNED_NORMALIZED Signed-off-by: Jordan Justen Cc: Francisco Jerez --- tests/shaders/shade

[Piglit] [PATCH 3/3] cs: Use GL_RGBA8 for image_load_store internal format

2015-05-25 Thread Jordan Justen
er runner tests, we must override the default internal format when creating the image. Signed-off-by: Jordan Justen Cc: Francisco Jerez --- generated_tests/gen_builtin_uniform_tests.py| 2 +- .../arb_compute_shader/execution/basic-uniform-access.shader_test | 2 +-

[Piglit] [PATCH 1/3] shader_runner: Use strndup to get a null-terminated string for 'line'

2015-05-25 Thread Jordan Justen
In order to use sscanf with optional parameters, the string needs to be null terminated. Otherwise, sscanf will treat the newline as whitespace and continue to look for matches on the following lines. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 21 ++--- 1

Re: [Piglit] [PATCH 2/3] shader_runner: Support optional format paramters for 'texture rgbw'

2015-05-26 Thread Jordan Justen
On 2015-05-26 05:12:08, Francisco Jerez wrote: > Jordan Justen writes: > > > The motivation for this is that (as noted by curro) > > ARB_shader_image_load_store doesn't support images with an internal > > format of GL_RGBA. > > > > See 'Table X.2

Re: [Piglit] [PATCH 1/3] shader_runner: Use strndup to get a null-terminated string for 'line'

2015-05-26 Thread Jordan Justen
On 2015-05-26 05:10:05, Francisco Jerez wrote: > Jordan Justen writes: > > > In order to use sscanf with optional parameters, the string needs to > > be null terminated. Otherwise, sscanf will treat the newline as > > whitespace and continue to look for matche

Re: [Piglit] [PATCH 00/13] Add more arb_shader_storage_buffer_object tests

2015-06-05 Thread Jordan Justen
e_buffer_object/program-interface-query.c > create mode 100644 tests/spec/arb_shader_storage_buffer_object/rendering.c > create mode 100644 > tests/spec/arb_shader_storage_buffer_object/shaderstorageblockbinding.c similar? These patches seemed to have survived past the 2-weeks with no na

[Piglit] [PATCH v2 3/4] arb_compute_shader: Use GL_RGBA8 for image_load_store internal format

2015-06-12 Thread Jordan Justen
er runner tests, we must override the default internal format when creating the image. Signed-off-by: Jordan Justen Reviewed-by: Francisco Jerez --- generated_tests/gen_builtin_uniform_tests.py| 2 +- .../arb_compute_shader/execution/basic-uniform-access.sh

[Piglit] [PATCH v2 1/4] shader_runner: Use strndup to get a null-terminated string for 'line'

2015-06-12 Thread Jordan Justen
In order to use sscanf with optional parameters, the string needs to be null terminated. Otherwise, sscanf will treat the newline as whitespace and continue to look for matches on the following lines. v2: * Call strndup before skipping newline char in next_line Signed-off-by: Jordan Justen

[Piglit] [PATCH v2 4/4] arb_shader_image_load_store: Use GL_RGBA8 for image internal format

2015-06-12 Thread Jordan Justen
er runner tests, we must override the default internal format when creating the image. Signed-off-by: Jordan Justen Cc: Francisco Jerez --- .../execution/basic-imageStore-from-uniform.shader_test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --gi

[Piglit] [PATCH v2 2/4] shader_runner: Support optional internal format for 'texture rgbw'

2015-06-12 Thread Jordan Justen
rgbw 0 (16, 16) GL_RGBA8 v2: * Drop 'base type' parameter Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 41024cd..7

Re: [Piglit] [PATCH v2 1/4] shader_runner: Use strndup to get a null-terminated string for 'line'

2015-06-17 Thread Jordan Justen
On 2015-06-16 04:07:35, Francisco Jerez wrote: > Jordan Justen writes: > > > In order to use sscanf with optional parameters, the string needs to > > be null terminated. Otherwise, sscanf will treat the newline as > > whitespace and continue to look for matches on the fol

[Piglit] [PATCH] shader_runner: Check return value on sscanf (clip plane / draw arrays)

2015-06-17 Thread Jordan Justen
sscanf returns EOF if not all values are scanned. This can be interpreted as 'true' in these cases leading to the clip plane command being incorrectly requested. Signed-off-by: Jordan Justen --- tests/shaders/shader_runner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [Piglit] [PATCH] arb_shader_storage_buffer_object/maxblocks: fail test if glGetIntegerv() gives an error

2015-07-10 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2015-07-10 00:12:04, Samuel Iglesias Gonsalvez wrote: > Signed-off-by: Samuel Iglesias Gonsalvez > --- > tests/spec/arb_shader_storage_buffer_object/maxblocks.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff

Re: [Piglit] [PATCH 1/2] arb_shader_image_load_store/host-mem-barrier: Skip UBO/RaW test if the required UBO size is unsupported.

2015-07-24 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2015-07-24 11:01:46, Francisco Jerez wrote: > This test assumes it can bind a UBO of size larger than the minimum > maximum guaranteed by the GL standard, what recently started causing > failures unrelated to ARB_shader_image_load_store since Mesa beca

Re: [Piglit] [PATCH 2/2] arb_shader_image_load_store/invalid: Skip the index bounds test on Intel Ivybridge hardware.

2015-07-24 Thread Jordan Justen
I don't know of any other cases where we skip a test based on the render name. I don't think this is a good practice to start. -Jordan On 2015-07-24 11:01:47, Francisco Jerez wrote: > This test is known to cause a GPU hang on IVB due to a hardware bug. > The reason is that the hardware seems to b

Re: [Piglit] [PATCH 2/2] arb_shader_image_load_store/invalid: Skip the index bounds test on Intel Ivybridge hardware.

2015-07-24 Thread Jordan Justen
On 2015-07-24 12:49:05, Francisco Jerez wrote: > Jordan Justen writes: > > I don't know of any other cases where we skip a test based on the > > render name. I don't think this is a good practice to start. > > What do you think we should do in that case? * Let t

[Piglit] Redirect summary console output

2015-08-01 Thread Jordan Justen
Dylan, I often send piglit summary console output to less or grep, but lately it doesn't seem to work. For example, if I try to send it to cat, I have to press Ctrl-C, and then I see this output: $ ./piglit summary console results/t | cat ^CTraceback (most recent call last): File "./piglit", l

  1   2   3   4   >