[Piglit] Black screen / hang in piglit's spec@ext_texture_lod_bias@lodbias test on radionsi with ubuntu 16.04

2016-09-06 Thread Dan Kegel
Hi all, happily running piglit on Ubuntu 16.04 with an AMD W600 card. No system crashes so far :-) But I do have an X hang. Black screen, test hung, but still available via ssh. I looked in https://bugs.freedesktop.org/buglist.cgi?component=Drivers%2FGallium%2Fradeonsi=Mesa but didn't see this

Re: [Piglit] [RFC] Trying to fix dmabuf/yuv tests

2016-09-06 Thread Eric Anholt
Rob Clark writes: > On Tue, Sep 6, 2016 at 4:04 PM, Kristian Høgsberg wrote: >> On Sun, Sep 4, 2016 at 9:34 AM, Rob Clark wrote: >>> Ok, so the basic problem with the YUV tests is that they currently >>> completely ignore driver/hw

Re: [Piglit] [RFC] Trying to fix dmabuf/yuv tests

2016-09-06 Thread Kristian Høgsberg
On Tue, Sep 6, 2016 at 1:32 PM, Rob Clark wrote: > On Tue, Sep 6, 2016 at 4:23 PM, Rob Clark wrote: @@ -212,28 +247,65 @@ piglit_gbm_buf_create(unsigned w, unsigned h, unsigned cpp, void *dst_data; void *map_data =

Re: [Piglit] [RFC] Trying to fix dmabuf/yuv tests

2016-09-06 Thread Rob Clark
On Tue, Sep 6, 2016 at 4:23 PM, Rob Clark wrote: >>> @@ -212,28 +247,65 @@ piglit_gbm_buf_create(unsigned w, unsigned h, >>> unsigned cpp, >>> void *dst_data; >>> void *map_data = NULL; >>> enum gbm_bo_format format; >>> + unsigned cpp = 0,

Re: [Piglit] [RFC] Trying to fix dmabuf/yuv tests

2016-09-06 Thread Rob Clark
On Tue, Sep 6, 2016 at 4:04 PM, Kristian Høgsberg wrote: > On Sun, Sep 4, 2016 at 9:34 AM, Rob Clark wrote: >> Ok, so the basic problem with the YUV tests is that they currently >> completely ignore driver/hw pitch requirements, since the code that >>

[Piglit] [PATCH v2 33/37] glean/tfragprog1: port exp-fog tests to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 2 +- tests/glean/tfragprog1.cpp | 43 +--- tests/spec/arb_fragment_program/fog/calculated-exp.shader_test | 35 ++-

[Piglit] [PATCH v2 35/37] glean/tfragprog1: port z-write test to shader_runner

2016-09-06 Thread Dylan Baker
Thanks to Ken for helping me work out a couple of bugs in this test. Signed-off-by: Dylan Baker --- tests/all.py| 1 +- tests/glean/tfragprog1.cpp | 15 +--

[Piglit] [PATCH v2 31/37] shader_runner: add command for glFog

2016-09-06 Thread Dylan Baker
I've added this with the intention of using it to ease porting the numerous fog tests from glean to the piglit framework, many of which can easily be ported to shader_runner, except for the need for glFog setup. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH v2 36/37] glean/tfragprog1: remove stress tests

2016-09-06 Thread Dylan Baker
These test divide by zero and divide by HUGE_NUMBER and -HUGE_NUMBER, which don't seem particularly useful, especially since there are already tests for that in GLSL, and if it's going to be a problem it'll be in the compiler. Signed-off-by: Dylan Baker ---

[Piglit] [PATCH v2 34/37] glean/tfragprog1: port exp2 fog tests to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py| 3 +- tests/glean/tfragprog1.cpp | 47 +--- tests/spec/arb_fragment_program/fog/calculated-exp2.shader_test | 36 +-

[Piglit] [PATCH v2 30/37] glean/tfragprog1: port XPD test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 14 -- tests/spec/arb_fragment_program/built-in-functions/xpd.shader_test | 21

[Piglit] [PATCH v2 8/37] glean/tfragprog1: port DPH test to shader_runner

2016-09-06 Thread Dylan Baker
This is a simplified version of the same test, but without some extra operations. Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 16

[Piglit] [PATCH v2 32/37] glean/tfragprog1: port linear fog tests to shader_runner

2016-09-06 Thread Dylan Baker
These make use of the new fog feature for shader_runner. The ported tests differ slightly in that they use the non EXT version of fog_coord, and thus require GL >= 1.4 Signed-off-by: Dylan Baker --- tests/all.py |

[Piglit] [PATCH v2 26/37] glean/tfragprog1: port SIN tests to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 2 -- tests/glean/tfragprog1.cpp | 31 ---

[Piglit] [PATCH v2 23/37] glean/tfragprog1: port RSQ tests to shader_runner

2016-09-06 Thread Dylan Baker
This single test combines the two tests in glean into one, adding a negative number. Signed-off-by: Dylan Baker --- tests/all.py | 2 -- tests/glean/tfragprog1.cpp | 28

[Piglit] [PATCH v2 15/37] glean/tfragprog1: port LRP test to shader_runner

2016-09-06 Thread Dylan Baker
It's worth noting that this test wasn't included in all.py, and therefore hasn't been running. Signed-off-by: Dylan Baker --- tests/glean/tfragprog1.cpp | 14 --

[Piglit] [PATCH v2 3/37] glean/tfragprog1: port ADD tests to shader_runner

2016-09-06 Thread Dylan Baker
This ports the following tests: - ADD test - ADD with saturation - ADD an immediate - ADD negative immediate It does not port ADD negative "immediate (2)", which adds MOV, MUL, and swizzling. It might be a useful test but it's not really testing ADD other than that it tests that ADD can be used

[Piglit] [PATCH v2 13/37] glean/tfragprog1: port LG2 test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 19 --- tests/spec/arb_fragment_program/built-in-functions/lg2.shader_test |

[Piglit] [PATCH v2 25/37] glean/tfragprog1: port SGE test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 14 -- tests/spec/arb_fragment_program/built-in-functions/sge.shader_test | 20

[Piglit] [PATCH v2 29/37] glean/tfragprog1: port swizzle tests to shader_runner

2016-09-06 Thread Dylan Baker
This includes the SWZ tests and the swizzled ADD and MOV tests. Signed-off-by: Dylan Baker --- tests/all.py | 3 --- tests/glean/tfragprog1.cpp| 42

[Piglit] [PATCH v2 24/37] glean/tfragprog1: port SCS test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 14 -- tests/spec/arb_fragment_program/built-in-functions/scs.shader_test | 19

[Piglit] [PATCH v2 7/37] glean/tfragprog1: port DP4 test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 13 - tests/spec/arb_fragment_program/built-in-functions/dp4.shader_test | 18

[Piglit] [PATCH v2 20/37] glean/tfragprog1: port MUL tests to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py| 2 -- tests/glean/tfragprog1.cpp | 28

[Piglit] [PATCH v2 21/37] glean/tfragprog1: port POW test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 15 --- tests/spec/arb_fragment_program/built-in-functions/pow.shader_test | 19

[Piglit] [PATCH v2 16/37] glean/tfragprog1: port MAD test to shader_runner

2016-09-06 Thread Dylan Baker
This isn't an exact port, some of the values were changed to be simpler, easier for humans to calculate values, but it shouldn't affect the viability of the test. Signed-off-by: Dylan Baker --- tests/all.py | 1 -

[Piglit] [PATCH v2 22/37] glean/tfragprog1: port RCP tests to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 2 -- tests/glean/tfragprog1.cpp | 23 ---

[Piglit] [PATCH v2 2/37] glean/tfragprog1: port ABS test to shader_runner

2016-09-06 Thread Dylan Baker
Possible duplicate tests: shaders/fp-abs-01.c shaders/fp-abs-02.c Signed-off-by: Dylan Baker --- tests/all.py | 2 +- tests/glean/tfragprog1.cpp | 13 -

[Piglit] [PATCH v2 0/37] Port Glean Frag-prog tests to shader_runner

2016-09-06 Thread Dylan Baker
This series takes a swing at porting some of the glean tests to the native piglit framework, all through shader_runner. For the most part these are pretty much straight across ports, with a few modifications since these don't have all of the shared setup before they run, and in a few cases to

[Piglit] [PATCH v2 19/37] glean/tfragprog1: port MOV tests to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 8 tests/spec/arb_fragment_program/built-in-functions/mov.shader_test | 16

[Piglit] [PATCH v2 17/37] glean/tfragprog1: port MAX test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 14 -- tests/spec/arb_fragment_program/built-in-functions/max.shader_test | 18

[Piglit] [PATCH v2 5/37] glean/tfragprog1: port COS tests to shader runner

2016-09-06 Thread Dylan Baker
This ports both of the COS tests to shader runner. Signed-off-by: Dylan Baker --- tests/all.py | 2 -- tests/glean/tfragprog1.cpp | 32

[Piglit] [PATCH v2 14/37] glean/tfragprog1: port LIT tests to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 3 --- tests/glean/tfragprog1.cpp| 39 ---

[Piglit] [PATCH v2 12/37] glean/tfragprog1: port FRC test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 9 - tests/spec/arb_fragment_program/built-in-functions/frc.shader_test | 16

[Piglit] [PATCH v2 4/37] glean/tfragprog1: Port CMP test to shader_runner

2016-09-06 Thread Dylan Baker
This also adds a similar CMP_SAT test. Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 11 ---

[Piglit] [PATCH v2 9/37] glean/tfragprog1: port DST test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 15 --- tests/spec/arb_fragment_program/built-in-functions/dst.shader_test | 18

[Piglit] [PATCH v2 1/37] editorconfig: update the editorconfig file

2016-09-06 Thread Dylan Baker
- set python to utf-8 - remove "remove trailing whitespace" from python (like the emacs config) - add glsl shaders to C style Signed-off-by: Dylan Baker --- .editorconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.editorconfig

[Piglit] [PATCH v2 6/37] glean/tfragprog1: port DP3 tests to shader_runner

2016-09-06 Thread Dylan Baker
This ports the first test and just removes the second test, which like some of the other dropped tests doesn't really focus on DP3, or on a reported bug for DP3, it just adds complexity. Signed-off-by: Dylan Baker --- tests/all.py

[Piglit] [PATCH v2 11/37] glean/tfragprog1: port FLR test to shader_runner

2016-09-06 Thread Dylan Baker
Signed-off-by: Dylan Baker --- tests/all.py | 1 - tests/glean/tfragprog1.cpp | 16 tests/spec/arb_fragment_program/built-in-functions/flr.shader_test | 19

Re: [Piglit] Building current piglit on ubuntu 12.04?

2016-09-06 Thread Ilia Mirkin
On Tue, Sep 6, 2016 at 11:21 AM, Dan Kegel wrote: > spec/arb_shader_texture_image_samples/compiler/fs-image-samples.frag: fail Fail means what you think it does. > spec/arb_gpu_shader5/execution/sampler_array_indexing/fs-simple-texture-size: > incomplete Incomplete means that

Re: [Piglit] Building current piglit on ubuntu 12.04?

2016-09-06 Thread Dan Kegel
On Mon, Sep 5, 2016 at 2:18 PM, Ilia Mirkin wrote: > I think you forgot a "make -jN" step here. Details, details :-) Coincidentaly, I discovered that running without making first causes confusing output (everything skips). > Also I'm surprised things work well without

[Piglit] [PATCH 2/2] arb_timer_query: Add wall clock sanity checks

2016-09-06 Thread Robert Bragg
The tests so far verified that timestamp queries via glGet or glQueryCounter were consistent but didn't check that timestamp deltas have nanosecond units. This tests synchronously reading gpu timestamps either side of a cpu sleep and expects the gpu timestamp delta to be >= the cpu sleep

[Piglit] [PATCH 0/2] Check GL_TIMESTAMP units

2016-09-06 Thread Robert Bragg
GL timestamps queried via ARB_timer_query should have nanosecond units but I had a suspicion we wouldn't have correct units for Gen graphics on Skylake and so extended arb_timer_query/timestamp-get.c to query the gpu timestamp either side of a sleep on the cpu with a known duration. This was able

[Piglit] [PATCH 1/2] util: Add piglit_delay_ns() api

2016-09-06 Thread Robert Bragg
Provides a utility for blocking the cpu for a requested time (nanosleep + retry on SIGINT for Linux else usleep()) and reports the final duration to help tests be resilient to over or under runs due to signalling or scheduling. Signed-off-by: Robert Bragg ---