Re: [Mesa-dev] [PATCH v2] docs: Document GitLab merge request process (email alternative)

2018-12-14 Thread Gert Wollny
Am Freitag, den 14.12.2018, 12:38 +0100 schrieb Samuel Pitoiset: > > On 12/13/18 9:27 PM, Gert Wollny wrote: > > IMHO allowing MRs is a good thing, so > > Acked-by: Gert Wollny > > > > Allowing MRs isn't a bad thing. The main problem IMHO is that now we &g

Re: [Mesa-dev] [PATCH v6 0/8] Add and enable extension EXT_sRGB_write_control

2018-12-14 Thread Gert Wollny
ntrol. framebuffer_srgb_enabled* pass (with MESA_GLES_VERSION_OVERRIDE=3.2). Best, Gert Am Donnerstag, den 15.11.2018, 13:45 +0100 schrieb Gert Wollny: > From: Gert Wollny > > Dear all, > > after the RFC and Ilias comments I reworked the series another > time. &g

[Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2018-12-16 Thread Gert Wollny
Since Meson will eventually be the only build system deprecate autotools now. It can still be used by invoking configure with the flag --enable-autotools Signed-off-by: Gert Wollny --- IMO autotools should be properly deprecated prior it its removal, so here is a patch to do just that. I

Re: [Mesa-dev] last call for autotools

2018-12-16 Thread Gert Wollny
Am Freitag, den 14.12.2018, 13:11 +0100 schrieb Gert Wollny: > Am Freitag, den 14.12.2018, 01:19 -0500 schrieb Ilia Mirkin: > > I have to say that the user experience for autotools is WAY better > > than for meson. As a concrete example, I had a meson build. Then I > > upd

Re: [Mesa-dev] [PATCH 01/25] r600: remove redundant semicolon

2018-12-17 Thread Gert Wollny
Reviewed-By: Gert Wollny Am Donnerstag, den 06.12.2018, 15:00 +0100 schrieb Nicolai Hähnle: > From: Nicolai Hähnle > > --- > src/gallium/drivers/r600/sb/sb_ir.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/r600/sb/sb

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2018-12-18 Thread Gert Wollny
Hi Ilia, Am Sonntag, den 16.12.2018, 12:40 -0500 schrieb Ilia Mirkin: > On Sun, Dec 16, 2018 at 6:24 AM Gert Wollny > wrote: > > > > Since Meson will eventually be the only build system deprecate > > autotools > > now. It can still be used by invoking configur

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2018-12-19 Thread Gert Wollny
Am Mittwoch, den 19.12.2018, 12:19 -0500 schrieb Ilia Mirkin: > On Sun, Dec 16, 2018 at 6:24 AM Gert Wollny > wrote: > > > > Since Meson will eventually be the only build system deprecate > > autotools > > now. It can still be used by invoking configure with the

[Mesa-dev] MR: Add extension EXT_sRGB_write_control (v7)

2018-12-20 Thread Gert Wollny
Hello all, With the last (minor) update I moved the series to an MR: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/14 There are only one minor change from the series last posted here v7: use _mesa_has_EXT_framebuffer_sRGB instead of testing the extension flag directly. v6: - rename

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2018-12-21 Thread Gert Wollny
Hello Stuart, Am Donnerstag, den 20.12.2018, 13:40 +1100 schrieb Stuart Young: > Gert/Ilia, > > Could this be reduced this from an error to a warning, with the > command-line option suppressing the warning? > > Perhaps as well as producing the warning, the build could sleep for > say 30 seconds

Re: [Mesa-dev] [PATCH] virgl/vtest: fix front buffer flush with protocol version 0.

2018-12-27 Thread Gert Wollny
Looks good to me, Reviewed-By: Gert Wollny Am Donnerstag, den 27.12.2018, 16:11 +1000 schrieb Dave Airlie: > From: Dave Airlie > > Older versions of virglrenderer before > 33da7361aec486290df0aec4ad8dfa8ff6adde2c > in vtest mode, misrender gears. > > Fixes: 9d81cd8e7c

[Mesa-dev] MR: mesa/core: Enable NV_depth_clamp for GLES >= 2.0

2019-01-02 Thread Gert Wollny
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/58 The extension NV_depth_clamp is written against OpenGL 1.2.1, and since GLES 2.0 is based on GL 2.0 there is no reason not to enable this extension also for GLES >= 2.0. Best, Gert ___ mesa-de

Re: [Mesa-dev] [PATCH] virgl: use primconvert provoking vertex properly

2019-01-03 Thread Gert Wollny
Tested it, looks fine, Reviewed-By: Gert Wollny Am Freitag, den 28.12.2018, 16:54 +1000 schrieb Dave Airlie: > From: Dave Airlie > > This stores the raster state and calls the correct primconvert > interface > using the currently bound raster state. > > This fixes pigl

Re: [Mesa-dev] [PATCH] virgl: use primconvert provoking vertex properly

2019-01-03 Thread Gert Wollny
Am Donnerstag, den 03.01.2019, 14:28 +0100 schrieb Gert Wollny: > Tested it, looks fine, > Reviewed-By: Gert Wollny Sorry, that should be > > Am Freitag, den 28.12.2018, 16:54 +1000 schrieb Dave Airlie: > > From: Dave Airlie > > > > This stores the rast

Re: [Mesa-dev] [PATCH] r600/sb: fix rotated register in while loop

2018-02-19 Thread Gert Wollny
Am Montag, den 19.02.2018, 14:06 +1000 schrieb Dave Airlie: > On 15 February 2018 at 01:26, Gert Wollny > wrote: > > Am Mittwoch, den 14.02.2018, 17:18 +1000 schrieb Dave Airlie: > > > From: Dave Airlie > > > > > > A bunch of CTS tests led me to writ

[Mesa-dev] [PATCH] r600: Take ALU_EXTENDED into account when evaluating jump offsets

2018-02-25 Thread Gert Wollny
ALU_EXTENDED needs 4 DWORDS instead of the usual 2, hence if the last ALU clause within a IF-JUMP or ELSE branch is ALU_EXTENDED the target jump offset needs to be adjusted accordingly. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104654 Signed-off-by: Gert Wollny --- * An additional

[Mesa-dev] [PATCH] gallium/aux/hud: Avoid possible buffer overflow

2018-02-28 Thread Gert Wollny
Limit the length of acceptable cpu names for use in hud_get_num_cpufreq in order to avoid a buffer overflow later in add_object when this name is copied into cpufreq_info::name. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105274 Signed-off-by: Gert Wollny --- Submitter has no git

Re: [Mesa-dev] [PATCH] r600/shader: when using images always load thread id gpr at start (v2)

2018-02-28 Thread Gert Wollny
For me this also fixed tests/spec/arb_compute_shader/execution/ multiple-texture-reading.shader_test With that Tested-by: Gert Wollny Am Mittwoch, den 28.02.2018, 16:47 +1000 schrieb Dave Airlie: > From: Dave Airlie > > The delayed loading code was fail if we had con

Re: [Mesa-dev] [PATCH 2/2] travis: make Meson find the proper llvm-config

2018-02-28 Thread Gert Wollny
's > make Meson find our wanted version sooner than the one at > /usr/local/bin > > Once this is corrected, we would still need a patch similar to: > https://lists.freedesktop.org/archives/mesa-dev/2017-December/180217. > html > > Cc: Eric Engestrom > Cc: Dylan Baker &

Re: [Mesa-dev] [PATCH v2] travis: make Meson find the proper llvm-config

2018-02-28 Thread Gert Wollny
Looks fine to me, Reviewed-By: Gert Wollny Am Mittwoch, den 28.02.2018, 23:18 +0200 schrieb Andres Gomez: > Travis CI has moved to LLVM 5.0, and meson is detecting automatically > the available version in /usr/local/bin based on the PATH env > variable > order preference. >

Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Gert Wollny
Am Dienstag, den 06.03.2018, 01:10 +0100 schrieb Germano Massullo: > > Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a different > Mesa version? You will also need to set LIBGL_DRIVERS_PATH best, Gert > I am asking this because on the console I am getting > > libGL error: unable

Re: [Mesa-dev] PATH(s) to run Firefox with different Mesa versions

2018-03-06 Thread Gert Wollny
Am Dienstag, den 06.03.2018, 13:10 +0100 schrieb Germano Massullo: > Il 06/03/2018 09:06, Gert Wollny ha scritto: > > Am Dienstag, den 06.03.2018, 01:10 +0100 schrieb Germano Massullo: > > > Question: is LIBGL_DRIVERS_PATH enough to let Firefox use a > > > d

[Mesa-dev] [PATCH] mesa/st/glsl_to_tgsi: Properly resolve life times for simple if/else + use constructs

2018-03-06 Thread Gert Wollny
detected that t is only read in the "if (a)" scope that encloses the "if (b)/else" constructs where t is written in both branches. This patch corrects the minimal live range estimation and adds an according unit test for this case. Signed-off-by: Gert Wollny --

Re: [Mesa-dev] soft fp64 support - main body (glsl/gallium)

2018-03-13 Thread Gert Wollny
64, and I get 2976 of 2995 test pass, skip: 16, fail: 3 (like Elie pointed out: ssbo and arrays of arrays are the culprits). I'm wonderig a bit what is the subset that gives you 1375 piglits ... In any case: Tested-By: Gert Wollny > > This patchset has all the glsl lowering code. (

Re: [Mesa-dev] soft fp64 support - main body (glsl/gallium)

2018-03-15 Thread Gert Wollny
Am Mittwoch, den 14.03.2018, 21:05 +1100 schrieb Timothy Arceri: > > > Anyway I'm not trying to convince Dave as I'm sure he has a good idea > of the work involve. Just thought I'd mention this stuff in case > anyone else has considered working on NIR for r600 and are scared by > Daves time esti

Re: [Mesa-dev] [ANNOUNCE] Mesa 17.3.7 release candidate

2018-03-16 Thread Gert Wollny
Am Freitag, den 16.03.2018, 12:42 +0100 schrieb Juan A. Suarez Romero: > > Gert Wollny (1): > c7cadcbda4 r600: Take ALU_EXTENDED into account when evaluating > jump offsets > Reason: The commit requires earlier commit a03d456f5a41 which did not > land in branch. Th

[Mesa-dev] [PATCH v4 03/10] mesa/st/tests: Fix zero-byte allocation leaks

2018-01-23 Thread Gert Wollny
Don't allocate a zero-sized array, when no texture offsets are given. Reviewed-by: Nicolai Hähnle Signed-off-by: Gert Wollny --- .../tests/test_glsl_to_tgsi_lifetime.cpp | 23 +++--- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/mesa/state_tr

[Mesa-dev] [PATCH v4 01/10] mesa/program: Add missing file types to printout

2018-01-23 Thread Gert Wollny
--- src/mesa/program/prog_print.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c index 9462510f3a..b273bbf4c8 100644 --- a/src/mesa/program/prog_print.c +++ b/src/mesa/program/prog_print.c @@ -50,1

[Mesa-dev] [PATCH v4(rebased) 00/10] glsl_to_tgsi: Further improvement of lifetime tracking for register merge

2018-01-23 Thread Gert Wollny
ss to mesa-git. Gert Wollny (10): mesa/st/tests: Fix zero-byte allocation leaks mesa/st/tests: unify MockCodeLine* classes mesa/st/tests: base check of number of registers on opcode info mesa/st/tests: cleanup whitespace usage and correct some comments mesa/st/glsl_to_tgsi: Correct

[Mesa-dev] [PATCH v4 02/10] mesa/st/glsl_to_tgsi: Add some operators for glsl_to_tgsi related classes

2018-01-23 Thread Gert Wollny
Add the equal operator and the "<<" stream write operator for the st_*_reg classes and the "<<" operator to the instruction class, and make use of these operators in the debugging output. --- src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp | 168 + src/mesa/state_tracker/st_

[Mesa-dev] [PATCH v4 06/10] mesa/st/glsl_to_tgsi: Add tracking of ifelse writes in register merging

2018-01-23 Thread Gert Wollny
Improve the life-time evaluation of temporary registers by also tracking writes in both if and else branches and in up to 32 nested scopes. As a result the estimated required register life-times can be further reduced enabling more registers to be merged. Signed-off-by: Gert Wollny

[Mesa-dev] [PATCH v5 03/10] mesa/st/tests: Fix zero-byte allocation leaks

2018-01-24 Thread Gert Wollny
Don't allocate a zero-sized array, when no texture offsets are given. v5: correct spaces and empty lines Reviewed-by: Brian Paul (v4) Reviewed-by: Nicolai Hähnle (v1) Signed-off-by: Gert Wollny --- .../tests/test_glsl_to_tgsi_lifetime.cpp | 22 +++--- 1 file ch

[Mesa-dev] [PATCH v5 01/10] mesa/program: Add missing file types to printout

2018-01-24 Thread Gert Wollny
Reviewed-by: Brian Paul Signed-off-by: Gert Wollny --- src/mesa/program/prog_print.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/mesa/program/prog_print.c b/src/mesa/program/prog_print.c index 9462510f3a..b273bbf4c8 100644 --- a/src/mesa/program

[Mesa-dev] [PATCH v5 02/10] mesa/st/glsl_to_tgsi: Add some operators for glsl_to_tgsi related classes

2018-01-24 Thread Gert Wollny
Add the equal operator and the "<<" stream write operator for the st_*_reg classes and the "<<" operator to the instruction class, and make use of these operators in the debugging output. v5: Fix empty lines Reviewed-by: Brian Paul (v4) Signed-off-by: Gert Wol

[Mesa-dev] [PATCH v5 04/10] mesa/st/tests: unify MockCodeLine* classes

2018-01-24 Thread Gert Wollny
* Base assertion of correct number of src and dst registers in tests on what the operatand actually expects * Fix number of destinations in one test Signed-off-by: Gert Wollny --- src/mesa/state_tracker/tests/Makefile.am | 7 + src/mesa/state_tracker/tests/st_tests_common.cpp | 397

[Mesa-dev] [PATCH v5 00/10] glsl_to_tgsi: Further improvement of lifetime tracking for register merge

2018-01-24 Thread Gert Wollny
r the use of address registers in register_merge (I was considering to add this to 8, but since that one was already reviewed ...) many thanks for any comments, Gert PS: I have no write access to mesa-git. Gert Wollny (10): mesa/program: Add missing file types to printout mesa/st/gls

[Mesa-dev] [PATCH v5 06/10] mesa/st/glsl_to_tgsi: Add tracking of ifelse writes in register merging

2018-01-24 Thread Gert Wollny
: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 312 +++-- 1 file changed, 292 insertions(+), 20 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp index 509342e53f

[Mesa-dev] [PATCH v5 05/10] mesa/st/tests: cleanup whitespace usage and correct some comments

2018-01-24 Thread Gert Wollny
Signed-off-by: Gert Wollny --- .../tests/test_glsl_to_tgsi_lifetime.cpp | 127 ++--- 1 file changed, 63 insertions(+), 64 deletions(-) diff --git a/src/mesa/state_tracker/tests/test_glsl_to_tgsi_lifetime.cpp b/src/mesa/state_tracker/tests

[Mesa-dev] [PATCH v5 09/10] mesa/st/tests: Add tests for lifetime tracking with indirect addressing

2018-01-24 Thread Gert Wollny
Add a code line type that accepts one layer of indirect addressing and add tests to check that temporary register access used for indirect addressing is accounted for in the lifetime estimation. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/tests/st_tests_common.cpp | 95

[Mesa-dev] [PATCH v5 07/10] mesa/st/tests: Add tests for improved tracking of temporaries

2018-01-24 Thread Gert Wollny
Additional teste are added that check the tracking of access to temporaries in if-else branches. Signed-off-by: Gert Wollny --- .../tests/test_glsl_to_tgsi_lifetime.cpp | 493 - 1 file changed, 486 insertions(+), 7 deletions(-) diff --git a/src/mesa/state_tracker

[Mesa-dev] [PATCH v5 08/10] mesa/st/glsl_to_tgsi: Add tracking of indirect addressing registers

2018-01-24 Thread Gert Wollny
lifetime in the cases when the load to the address register was emitted. v2: no changes v3: Use debug_log variable instead of directly writing to std::err in debugging output. Reviewed-by: Nicolai Hähnle (v1) Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp

[Mesa-dev] [PATCH v5 10/10] mesa/st/glsl_to_tgsi: remove now unneeded assert.

2018-01-24 Thread Gert Wollny
With the implementation of the tracking of the registers used in reladdr asserting that a driver calling merge_register() uses the address register is no longer needed. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a

Re: [Mesa-dev] [PATCH 1/2] mesa: add blob overrun check to program binary reads

2018-01-26 Thread Gert Wollny
On 26.01.2018 01:56, Timothy Arceri wrote: > --- > src/mesa/main/program_binary.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/src/mesa/main/program_binary.c b/src/mesa/main/program_binary.c > index 2786487362..68a15ec258 100644 > --- a/src/mesa/main/program_binary.c

[Mesa-dev] [PATCH] r600/sb: Force ELSE path if the byte code started off with it

2018-01-29 Thread Gert Wollny
sb optimized away the ELSE in a construct like while (foo) { if (bar ) { do something; } else { break; } } resulting in while (foo) { if (bar ) { do something; break; } } which is obviously wrong. With this patch an

[Mesa-dev] [PATCH] mesa/st/glsl_to_tgsi: Mark first write as unconditional when apropriate

2018-01-29 Thread Gert Wollny
: 807e2539e512ca6c96f059da855473eb7be99ba1 mesa/st/glsl_to_tgsi: Add tracking of ifelse writes in register merging Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104803 Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 24 +- .../tests/test_glsl_to_tgsi_lifetime.cpp

Re: [Mesa-dev] [PATCH] r600/sb: Force ELSE path if the byte code started off with it

2018-01-29 Thread Gert Wollny
Am Montag, den 29.01.2018, 20:32 +0100 schrieb Roland Scheidegger: > > Am I correct assuming that for something like >while (foo) { > if (bar) { > do something; > } else { > /* nothing */ > } >} > The else clause wouldn't get optimized away neither? > (T

Re: [Mesa-dev] [PATCH] r600/sb: insert the else clause when we might depart from a loop

2018-01-29 Thread Gert Wollny
with sb and pass without it are differnt issues I'll open separate bugs for these, so that this one can savely be closes when the patch lands. Tested-By: Gert Wollny Best, Gert Am Dienstag, den 30.01.2018, 16:40 +1000 schrieb Dave Airlie: > From: Dave Airlie > > If there is

[Mesa-dev] [PATCH (resend)] r600/sb: Don't require array declarations for TGSI_FILE_SYSTEM_VALUE

2018-01-30 Thread Gert Wollny
@arb_gpu_shader5@execution@samplemaskin-indirect for debug builds (it already passed in release). Signed-off-by: Gert Wollny --- src/gallium/drivers/r600/sb/sb_bc_parser.cpp | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r600/sb/sb_bc_parser.cpp b

Re: [Mesa-dev] [PATCH 4/8] mesa: improve comment for

2018-01-30 Thread Gert Wollny
Am Montag, den 29.01.2018, 13:42 -0700 schrieb Brian Paul: > --- > src/mesa/main/mtypes.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h > index b0eeeaf..95f6319 100644 > --- a/src/mesa/main/mtypes.h > +++ b/src/mesa/main

Re: [Mesa-dev] [PATCH 8/8] mesa: use gl_vert_attrib enum type in more places

2018-01-30 Thread Gert Wollny
ding *binding = &vao- > >BufferBinding[index]; This conflicts with d5f42f96e16f4b12, you added an asset there. With that patches 1-3 and 5-7 are Reviewed-by: Gert Wollny > diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c > index 6c022b4..b2783e2 100644 > --- a/s

Re: [Mesa-dev] [PATCH 8/8] mesa: use gl_vert_attrib enum type in more places

2018-01-30 Thread Gert Wollny
Am Dienstag, den 30.01.2018, 08:26 -0700 schrieb Brian Paul: > On 01/30/2018 01:38 AM, Gert Wollny wrote: > > Am Montag, den 29.01.2018, 13:42 -0700 schrieb Brian Paul: > > > Slightly better readbility. > > > --- > > > src/mesa/main/arrayobj.c | 2 +- &

Re: [Mesa-dev] [PATCH 7/8] mesa: rename some 'client' array functions

2018-01-30 Thread Gert Wollny
Am Dienstag, den 30.01.2018, 10:14 -0700 schrieb Brian Paul: > On 01/30/2018 09:59 AM, Mark Janes wrote: > > This series that was just pushed to master generates ~200 > > assertions on > > all platforms, eg: > > > > piglit.spec.ext_framebuffer_multisample.formats 2 > > > > ext_framebuffer_multisa

Re: [Mesa-dev] [PATCH (resend)] r600/sb: Don't require array declarations for TGSI_FILE_SYSTEM_VALUE

2018-02-01 Thread Gert Wollny
Am Freitag, den 02.02.2018, 02:13 +0100 schrieb Roland Scheidegger: > Am 30.01.2018 um 09:21 schrieb Gert Wollny: > > Although gl_SampleMaskIn is declared as an array in GLSL, it is > > effectively a 32 bit mask on all hardware supported by mesa, so the > > array indexing is

Re: [Mesa-dev] [PATCH (resend)] r600/sb: Don't require array declarations for TGSI_FILE_SYSTEM_VALUE

2018-02-02 Thread Gert Wollny
Am Freitag, den 02.02.2018, 09:04 +0100 schrieb Roland Scheidegger: > > > Yes, the _GL spec_ says it is an array. > But in gallium it can't be. Therefore I think it's incorrect if we > end up with array accesses there (albeit I was too lazy to actually > look at the tgsi, but I'm pretty sure it i

Re: [Mesa-dev] [PATCH (resend)] r600/sb: Don't require array declarations for TGSI_FILE_SYSTEM_VALUE

2018-02-02 Thread Gert Wollny
Am Freitag, den 02.02.2018, 06:56 -0500 schrieb Ilia Mirkin: > On Fri, Feb 2, 2018 at 4:07 AM, Gert Wollny > wrote: > > Am Freitag, den 02.02.2018, 09:04 +0100 schrieb Roland Scheidegger: > > > > > > > > > Yes, the _GL spec_ says it is an array. > &

Re: [Mesa-dev] [PATCH] autotools: Only build libmesa-st-tests-common.a for tests.

2018-02-02 Thread Gert Wollny
Thanks, my automake knowledge is a bit rusty so that I didn't know about this option to limit the build to "make check". Reviewed-By: Gert Wollny Am Freitag, den 02.02.2018, 16:59 +0100 schrieb Bas Nieuwenhuizen: > We don't need the library if we don't build tes

Re: [Mesa-dev] [PATCH] r600: clean up initial shader register setup

2018-02-06 Thread Gert Wollny
I like that, Reviewed-By: Gert Wollny Am Mittwoch, den 07.02.2018, 06:25 +1000 schrieb Dave Airlie: > From: Glenn Kennard > > This is taken from Glenn Kennards scratch series, but separated > out as a cleanup by me. > > Signed-off-by: Dave Airlie > --- >

[Mesa-dev] [PATCH] r600/sb: Check whether optimizations would result in reladdr conflict

2018-02-08 Thread Gert Wollny
also forbitten. Test for these cases and reject the optimization if a forbidden combination of relative access would be created. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103142 Signed-off-by: Gert Wollny --- I folded both cases into one patch because they both are required to fix

[Mesa-dev] [PATCH v2] r600/sb: Check whether optimizations would result in reladdr conflict

2018-02-08 Thread Gert Wollny
/show_bug.cgi?id=103142 Signed-off-by: Gert Wollny --- src/gallium/drivers/r600/sb/sb_expr.cpp | 17 ++ src/gallium/drivers/r600/sb/sb_ir.h | 6 + src/gallium/drivers/r600/sb/sb_valtable.cpp | 36 + 3 files changed, 55 insertions(+), 4 deletions

[Mesa-dev] [PATCH] st/mesa: Initialize tex_target otherwise it might be used uninitialized.

2018-02-08 Thread Gert Wollny
corresponds to the value 0 used before. Fixes 9f9ce1625fb32ff0b9d5b1858aa5bb7b531ded0f st/mesa: use TGSI enum types in st_glsl_to_tgsi.cpp Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mes

[Mesa-dev] [PATCH 00/11] TGSI: split, merge and interleave arrays

2018-02-09 Thread Gert Wollny
and make the variable any type names self-explaining, but since I've been staring at this code for a long time I don't think I am capable of seeing any problems any more, so comments are very welcome. Best, Gert PS: I have no git write access. Gert Wollny (11): mesa/st: gls

[Mesa-dev] [PATCH 03/11] mesa/st: Add helper classes for array merging and interleaving

2018-02-09 Thread Gert Wollny
This class implements the live range merge and component interleave remapping logic. Signed-off-by: Gert Wollny --- src/mesa/Makefile.sources | 2 + src/mesa/meson.build | 2 + .../state_tracker/st_glsl_to_tgsi_array_merge.cpp | 283

[Mesa-dev] [PATCH 02/11] mesa/st/glsl_to_tgsi: rename lifetime to register_live_range

2018-02-09 Thread Gert Wollny
On one hand "live range" is the term used in the literature, and on the other hand a distinction is needed from the array live ranges that will be introduced later. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 16 ++--- .../sta

[Mesa-dev] [PATCH 04/11] mesa/st/glsl_to_tgsi: Add class to hold array information

2018-02-09 Thread Gert Wollny
Implememt a class that holds the information required by the array merging and interleave algorithm, namely array ID, live range, access mask, accessed components, and the number of accessed components. Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_array_merge.cpp | 69

[Mesa-dev] [PATCH 06/11] mesa/st/tests: Add unit tests for array merge helper classes.

2018-02-09 Thread Gert Wollny
Signed-off-by: Gert Wollny --- src/mesa/state_tracker/tests/Makefile.am | 20 +- src/mesa/state_tracker/tests/st_tests_common.h | 7 +- .../tests/test_glsl_to_tgsi_array_merge.cpp| 296 + 3 files changed, 317 insertions(+), 6 deletions(-) create mode

[Mesa-dev] [PATCH 05/11] mesa/st/glsl_to_tgsi: Add array merge logic

2018-02-09 Thread Gert Wollny
Add the functions that evaluate array live range merging and array interleaving based on the array information. Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_array_merge.cpp | 385 - .../state_tracker/st_glsl_to_tgsi_array_merge.h| 26 +- 2 files

[Mesa-dev] [PATCH 01/11] mesa/st: glsl_to_tgsi: Split arrays who's elements are only accessed directly

2018-02-09 Thread Gert Wollny
to split_arrays * unify the tracking and remapping methods for src and st registers * also track access to arrays via reladdr* Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 107 + 1 file changed, 107 insertions(+) diff --git a/src/mes

[Mesa-dev] [PATCH 10/11] mesa/st/glsl_to_tgsi: add array life range evaluation into tracking code

2018-02-09 Thread Gert Wollny
available, so some are added as a placeholder in get_temp_registers_required_live_ranges. Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 61 +- 1 file changed, 49 insertions(+), 12 deletions(-) diff --git a/src/mesa/state_tracker

[Mesa-dev] [PATCH 09/11] mesa/st/glsl_to_tgsi: add class for array access tracking

2018-02-09 Thread Gert Wollny
Add a class implementing the (rather simplified) live range evaluation for arrays. Remark: Since the class is local and not yet used, the compiler will emit some warnings about unused functions. Signed-off-by: Gert Wollny --- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 102

[Mesa-dev] [PATCH 07/11] mesa/st/glsl_to_tgsi: refactor access_record and its use

2018-02-09 Thread Gert Wollny
* rename access_record to register_merge_record because the name is more appropriate and we need to distinguish from the array access introduced later. * rename member variable acc to temp_acc * make comparison operator in register_merge_record const Signed-off-by: Gert Wollny

[Mesa-dev] [PATCH 08/11] mesa/st/glsl_to_tgsi: move evaluation of read mask up in the call hierarchy

2018-02-09 Thread Gert Wollny
In preparation of the array live range tracking the evaluation of the read mask is moved out the register live range tracking to the enclosing call of the generalized read access tracking. Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp | 15

[Mesa-dev] [PATCH 11/11] mesa/st/glsl_to_tgsi: Expose array live range tracking and merging

2018-02-09 Thread Gert Wollny
-multiple-large-local-arrays on r600/barts unneccessary. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100200 Signed-off-by: Gert Wollny --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 25 +- .../state_tracker/st_glsl_to_tgsi_temprename.cpp | 13

Re: [Mesa-dev] [PATCH] r600/sb: fix rotated register in while loop

2018-02-14 Thread Gert Wollny
Am Mittwoch, den 14.02.2018, 17:18 +1000 schrieb Dave Airlie: > From: Dave Airlie > > A bunch of CTS tests led me to write > tests/shaders/ssa/fs-while-loop-rotate-value.shader_test > which r600/sb always fell over on. > > This patch fixes it, but I'll probably never be 100% sure why. Unfortuna

Re: [Mesa-dev] [PATCH] r600/sb: fix rotated register in while loop (attempt 2)

2018-02-16 Thread Gert Wollny
Am Freitag, den 16.02.2018, 14:44 +1000 schrieb Dave Airlie: > From: Dave Airlie > > A bunch of CTS tests led me to write > tests/shaders/ssa/fs-while-loop-rotate-value.shader_test > which r600/sb always fell over on. > > GCM seems to move some of the copys into other basic blocks, > if we don't

Re: [Mesa-dev] [PATCH] glsl: set old ldexp operand to NULL when lowering

2017-08-17 Thread Gert Wollny
Am Freitag, den 18.08.2017, 09:43 +1000 schrieb Timothy Arceri: > This fixes an assert during IR validation in LLVMpipe. > > Fixes: e2e2c5abd279 (glsl: calculate number of operands in an > expression once) > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102274 > Cc: Brian Paul > --- >  s

Re: [Mesa-dev] [PATCH 00/18] Gallium blitter optimizations

2017-08-19 Thread Gert Wollny
Am Freitag, den 18.08.2017, 18:25 +0200 schrieb Marek Olšák: > > Sure. The changes are here: > https://cgit.freedesktop.org/~mareko/mesa/log/?h=blitter-optz > > If somebody wants to test it on r600g, that would be appreciated too. > > I did this and unfortunately it crashes with 744c3e2254 appl

Re: [Mesa-dev] [PATCH 00/18] Gallium blitter optimizations

2017-08-19 Thread Gert Wollny
Am Samstag, den 19.08.2017, 12:13 +0200 schrieb Gert Wollny: > > I did this and unfortunately it crashes with 744c3e2254 applied. > Specifically, in   > >    src/gallium/drivers/r600/evergreen_state.c2302:  >    evergreen_emit_vertex_fetch_shader  > > de-referenc

Re: [Mesa-dev] [PATCH 00/18] Gallium blitter optimizations

2017-08-19 Thread Gert Wollny
Am Samstag, den 19.08.2017, 18:35 +0200 schrieb Marek Olšák: > Can you try the attached patch? While if fixes the crash and lets me run glxgears and some other rathe simple OpenGL programs it completely messes up blender (menu unreadable etc) and UE4Editor Window is also flickering.  Best, Gert

Re: [Mesa-dev] [PATCH 07/16] radeonsi: add reference count to si_compute

2017-08-20 Thread Gert Wollny
Am Sonntag, den 20.08.2017, 15:48 +0200 schrieb Marek Olšák: > The patch seems OK to me. Hmm, you're right in that I was wrong about "program", I still need learn to think in patches.  However, when I look at si_delete_compute_state where si_compute_reference is called: >+ si_compute_refe

Re: [Mesa-dev] [PATCH 00/18] Gallium blitter optimizations

2017-08-21 Thread Gert Wollny
Am Montag, den 21.08.2017, 10:22 +1000 schrieb Dave Airlie: > Hi Gert, > > Can you test this along with the fetch shader patch Marek sent? This patch fixes the flickering in Blender and UE4Editor. Not applying Marks fetch patch results in a segfault in glxgears.  I've also tested with the han

Re: [Mesa-dev] [PATCH 00/47] WIP: fp64 support for r600g

2017-08-24 Thread Gert Wollny
Hello Elie, thanks for you work on this. I'd thought I'd share my test results on BARTS: - your tree was build with debug enabled, so some of the crashes  relate to assertion failures (at least one in r600/sb which also fails with R600_DEBUG=nosb). - piglit results  * arb_gpu_shader_f

[Mesa-dev] [PATCH v9 1/7] st_glsl_to_tgsi: rewrite rename registers to use array fully.

2017-08-24 Thread Gert Wollny
From: Dave Airlie Instead of having to search the whole array, just use the whole thing and store a valid bit in there with the rename. Removes this from the profile on some of the fp64 tests Reviewed-by: Timothy Arceri Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cp

[Mesa-dev] [PATCH v9 0/7] mesa/st: glsl_to_tgsi: refined register merge algorithm

2017-08-24 Thread Gert Wollny
ed that the register lifetime estimation will bailout and signal that no renaming can take place (because subroutines are not tracked), * add array-id to debug output for PROGRAM_ARRAY, * rebase to 39f3e2507c6 Dave Airlie (1): st_glsl_to_tgsi: rewrite rename registers to use a

[Mesa-dev] [PATCH v9 2/7] mesa/st: glsl_to_tgsi move some helper classes to extra files

2017-08-24 Thread Gert Wollny
gt;info->num_src - 1 : op->info->num_src; -} glsl_to_tgsi_instruction * glsl_to_tgsi_visitor::emit_asm(ir_instruction *ir, unsigned op, diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi_private.cpp new file mode 100644 index 000

[Mesa-dev] [PATCH v9 3/7] mesa/st: glsl_to_tgsi: implement new temporary register lifetime tracker

2017-08-24 Thread Gert Wollny
/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp new file mode 100644 index 00..9690e47fd6 --- /dev/null +++ b/src/mesa/state_tracker/st_glsl_to_tgsi_temprename.cpp @@ -0,0 +1,886 @@ +/* + * Copyright © 2017 Gert Wollny + * + * Permission is hereby granted, free of charge, to any person

[Mesa-dev] [PATCH v9 6/7] mesa/st: glsl_to_tgsi: Add test set for evaluation of rename mapping

2017-08-24 Thread Gert Wollny
The patch adds tests for the register rename mapping evaluation and combined life time estimation and renaming. --- .../tests/test_glsl_to_tgsi_lifetime.cpp | 192 + 1 file changed, 192 insertions(+) diff --git a/src/mesa/state_tracker/tests/test_glsl_to_tgsi_lifetim

[Mesa-dev] [PATCH v9 7/7] mesa/st: glsl_to_tgsi: tie in new temporary register merge approach

2017-08-24 Thread Gert Wollny
This patch replaces the old register lifetime estiamtion and rename mapping evaluation with the new one. Performance to compare between the current and the new implementation were measured by running the shader-db in one thread. ---

[Mesa-dev] [PATCH v9 5/7] mesa/st: glsl_to_tgsi: add register rename mapping evaluator

2017-08-24 Thread Gert Wollny
The remapping evaluator first sorts the temporary registers ascending based on their first life time instruction, and then uses a binary search to find merge canidates. For the initial sorting it uses std::sort because qsort is quite slow in comparison. By removing the define USE_STL_SORT in src/

[Mesa-dev] [PATCH v9 4/7] mesa/st: glsl_to_tgsi: add tests for the new temporary lifetime tracker

2017-08-24 Thread Gert Wollny
si_lifetime.cpp @@ -0,0 +1,1405 @@ +/* + * Copyright © 2017 Gert Wollny + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction,including witho

Re: [Mesa-dev] [PATCH v9 0/7] mesa/st: glsl_to_tgsi: refined register merge algorithm

2017-08-25 Thread Gert Wollny
Am Freitag, den 25.08.2017, 10:20 +0900 schrieb Michel Dänzer: > On 25/08/17 02:38 AM, Gert Wollny wrote: > > > > The patch doesn't introduce piglit regression (I tested the shader > > subset).  > > I'd recommend testing at least the gpu profile, ideally runn

Re: [Mesa-dev] [PATCH v2 00/12] gallium: normalize CONST file accesses to 2D

2017-08-28 Thread Gert Wollny
I've tested this on r600g (piglit/shader and a bunch of games) and Unigine benchmarks, no problems found. For the series Tested-by: Gert Wollny Am Montag, den 28.08.2017, 10:58 +0200 schrieb Nicolai Hähnle: > Hi all, > > This series changes all CONST accesses to be two-di

Re: [Mesa-dev] [PATCH v9 0/7] mesa/st: glsl_to_tgsi: refined register merge algorithm

2017-09-06 Thread Gert Wollny
ice some minor things, I'm about to send out patches to > clean things up afterwards. I will test these patches ASAP. Best, Gert > > Cheers, > Nicolai > > > On 24.08.2017 19:38, Gert Wollny wrote: > > Dear all, > > > > I thought I might sen

[Mesa-dev] [PATCH] mesa/st/st_glsl_to_tgsi_temprename.cpp: Fix compilation with MSVC

2017-09-06 Thread Gert Wollny
If is included then max is a macro that clashes with std::numeric_limits::max, hence undefine it. For some reason the struct access_record is not recognizes outside the anonymouse namespace, make it a class. The patch successfully was tested on AppVeyor. --- src/mesa/state_tracker/st_glsl_to_tgs

Re: [Mesa-dev] [PATCH 1/2] st/glsl_to_tgsi: be precise about merging scopes

2017-09-06 Thread Gert Wollny
For the series Reviewed-By: Gert Wollny Am Mittwoch, den 06.09.2017, 11:54 +0200 schrieb Nicolai Hähnle: > From: Nicolai Hähnle > > enclosing_scope already contains enclosing_scope_first_read. > What we really want to check here -- not for correctness, but > for spee

[Mesa-dev] [PATCH 2/2] mesa/st/tests: Fix regressions with libunwind enabled introduced with 7be6d8fe12

2017-09-06 Thread Gert Wollny
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=102565 Add the according flags to link with libunwind. --- src/mesa/state_tracker/tests/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/tests/Makefile.am b/src/mesa/state_tracker/tests/Makefile.am index fb

[Mesa-dev] [PATCH 1/2] mesa/st/tests: Fix classic build regressions introduced with 7be6d8fe12

2017-09-06 Thread Gert Wollny
Fixes the build in classic only mode, i.e. the new state tracker tests are only build when Gallium is enabled. --- src/mesa/Makefile.am | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/Makefile.am b/src/mesa/Makefile.am index 865735be27..f2097eb209 100644 --- a/sr

Re: [Mesa-dev] Mesa (master): mesa/st/tests: Fix classic build regressions introduced with 7be6d8fe12

2017-09-08 Thread Gert Wollny
Am Freitag, den 08.09.2017, 11:19 +0200 schrieb Nicolai Hähnle: > > > Sorry about the slip-up, I thought you were building with both > patches. In any case, I made sure to test with the Travis build, so > it should be all good (not a guarantee of course, but it has pretty > good coverage). Actua

[Mesa-dev] [PATCH 1/2] gallium/targets/dri: Add libunwind to linker flags

2017-09-10 Thread Gert Wollny
Fixes: build failure in travis configuration "make Gallium ST Other" with libunwind enabled (https://travis-ci.org/gerddie/mesa/jobs/273673597) --- src/gallium/targets/dri/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/targets/dri/Makefile.am b/src/g

[Mesa-dev] [PATCH 2/2] travis-ci: Add libunwind-dev to gallium/make builds

2017-09-10 Thread Gert Wollny
configure picks up libunwind automatically if it is available and links libmesagallium against it. Because static linking is used all targets that use libmesagallium also need to link against libunwind in this case, and this should be checked on travis-ci. --- .travis.yml | 4 1 file changed,

[Mesa-dev] [PATCH 0/2] Add libunwind to travis gallium build and fix it

2017-09-10 Thread Gert Wollny
he gallium/make configuratuons thereby enabling building against it. Best, Gert Gert Wollny (2): gallium/targets/dri: Add libunwind to linker flags travis-ci: Add libunwind-dev to gallium/make builds .travis.yml | 4 src/gallium/targets/dri/Makefile.am | 3 ++- 2 f

Re: [Mesa-dev] [PATCH] mesa/st: Include builddir/src/compiler/glsl to fix make check

2017-09-10 Thread Gert Wollny
Hi Michel, I can confirm that the problem exists on 8d6b97a815874c7b695471a259fe4b6689890206 i.e. for me ir_expression_operation.h is created in the build  directory - and the patch fixes compiling the test in an out of source build. Hence - Tested-by: Gert Wollny Am Sonntag, den

<    1   2   3   4   5   6   7   8   9   >