Re: [Mesa-dev] [PATCH] radeonsi: correct si_vgt_param_key on big endian machines

2018-04-09 Thread Bas Vermeulen
I am working on a new version of this patch. I have one version which does away with all the bitfields, and uses functions to update the index. Another approach would be to change the union to a struct, and use a function to get the index. Yet another approach would be to keep the contents of the

Re: [Mesa-dev] [PATCH 02/17] ac/surface: don't set the display flag for obviously unsupported cases

2018-04-09 Thread Marek Olšák
On Mon, Apr 9, 2018 at 4:26 AM, Michel Dänzer wrote: > On 2018-04-06 07:14 PM, Marek Olšák wrote: > > On Fri, Apr 6, 2018 at 11:41 AM, Michel Dänzer > wrote: > > > >> On 2018-04-06 03:25 PM, Marek Olšák wrote: > >>> On Thu, Apr 5, 2018, 3:09 AM Michel

[Mesa-dev] [PATCH 21/22] radeonsi: use PIPE_FORMAT_P016 format for VP9 profile2

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeonsi/si_get.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 4483ca766d..c8aacfe182 100644 ---

[Mesa-dev] [PATCH 18/22] st/va: add VP9 config to enable profile0

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/config.c | 2 +- src/gallium/state_trackers/va/va_private.h | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/config.c b/src/gallium/state_trackers/va/config.c index

Re: [Mesa-dev] [PATCH] spirv: autotools: add vtn_gather_types_c.py in distribution tarball

2018-04-09 Thread Emil Velikov
On 9 April 2018 at 15:58, Juan A. Suarez Romero wrote: > Fixes: 042ee4bea2 "(spirv: Move SPIR-V building to Makefile.spirv.am and > spirv/meson.build") This and the radeonsi patch are Reviewed-by: Emil Velikov -Emil

Re: [Mesa-dev] [PATCH v3 002/104] nir: Add a deref instruction type

2018-04-09 Thread Rob Clark
On Mon, Apr 9, 2018 at 10:25 AM, Jason Ekstrand wrote: > On Mon, Apr 9, 2018 at 5:35 AM, Rob Clark wrote: >> >> On Mon, Apr 9, 2018 at 1:35 AM, Jason Ekstrand >> wrote: >> > Rather lively discussion we've got going here... >> > >>

Re: [Mesa-dev] [PATCH 1/2] radv: Don't set instance count using predication.

2018-04-09 Thread Samuel Pitoiset
For the series: Reviewed-by: Samuel Pitoiset On 04/09/2018 04:56 PM, Bas Nieuwenhuizen wrote: The packet can sometimes be skipped, but we still think the change takes effect. This just makes the packet always take effect. Fixes: ad11fc3571 "radv: don't emit

[Mesa-dev] [Bug 105960] [bisected] meson build test fails with: undefined reference to `etna_pm_create_query'

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105960 Christian Gmeiner changed: What|Removed |Added Status|NEW

[Mesa-dev] [PATCH] spirv: autotools: add vtn_gather_types_c.py in distribution tarball

2018-04-09 Thread Juan A. Suarez Romero
Fixes: 042ee4bea2 "(spirv: Move SPIR-V building to Makefile.spirv.am and spirv/meson.build") --- src/compiler/Makefile.spirv.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/Makefile.spirv.am b/src/compiler/Makefile.spirv.am index a9f90c26e7b..2ac97f30acf

[Mesa-dev] [PATCH 05/22] vl: add VP9 probability tables

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/Makefile.sources| 3 +- src/gallium/auxiliary/meson.build | 1 + src/gallium/auxiliary/vl/vl_probs_table.h | 585 ++ 3 files changed, 588 insertions(+), 1 deletion(-) create mode 100644

[Mesa-dev] [PATCH 06/22] radeon/vcn: add VP9 prob table buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 52 +++-- src/gallium/drivers/radeon/radeon_vcn_dec.h | 3 ++ 2 files changed, 37 insertions(+), 18 deletions(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c

[Mesa-dev] [PATCH 07/22] radeon/vcn: add VP9 message buffer interface

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.h | 134 1 file changed, 134 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.h b/src/gallium/drivers/radeon/radeon_vcn_dec.h index 0a8c343e58..3ae04a1087

[Mesa-dev] [PATCH 02/22] vl: add VP9 picture description

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/include/pipe/p_video_state.h | 94 1 file changed, 94 insertions(+) diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h index 2533ba4fab..05855a36e2 100644 ---

[Mesa-dev] [PATCH 04/22] radeon/vcn: add VP9 dpb buffer size

2018-04-09 Thread Leo Liu
The current FW has restricted the size to the worse case, and the new dynamic dpb buffer support is on the way from firmware side, we will change accordingly. Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 6 ++ 1 file changed, 6 insertions(+)

[Mesa-dev] [PATCH 01/22] vl: add VP9 profile0 and format

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/util/u_video.h | 3 +++ src/gallium/include/pipe/p_video_enums.h | 6 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h index

[Mesa-dev] [PATCH 03/22] radeon/vcn: add VP9 stream type for decoder

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 3 +++ src/gallium/drivers/radeon/radeon_vcn_dec.h | 1 + 2 files changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index

[Mesa-dev] [PATCH 00/22] VP9 support

2018-04-09 Thread Leo Liu
This series will enable VP9 support for profile0 and profile2 on VCN. It will support players with VP9 VA-API enabled. Leo Liu (22): vl: add VP9 profile0 and format vl: add VP9 picture description radeon/vcn: add VP9 stream type for decoder radeon/vcn: add VP9 dpb buffer size vl: add

Re: [Mesa-dev] [PATCH] radv: Reset start instance/vertex when changing pipeline.

2018-04-09 Thread Bas Nieuwenhuizen
Okay, this needs more work, looks like almost everything got reset somewhere else already, and num_instances wasn't but should not be needed. On Mon, Apr 9, 2018 at 4:37 PM, Bas Nieuwenhuizen wrote: > Fixes: ad11fc3571 "radv: don't emit unneeded vertex state." >

[Mesa-dev] [Bug 105960] [bisected] meson build test fails with: undefined reference to `etna_pm_create_query'

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105960 --- Comment #2 from Emil Velikov --- https://patchwork.freedesktop.org/patch/215989/ should fix it -- You are receiving this mail because: You are the QA Contact for the

Re: [Mesa-dev] [PATCH] intel: aubinator: print out addresses of invalid instructions

2018-04-09 Thread Scott D Phillips
Lionel Landwerlin writes: > Signed-off-by: Lionel Landwerlin > --- > src/intel/tools/gen_batch_decoder.c | 22 +- > 1 file changed, 13 insertions(+), 9 deletions(-) > > diff --git

Re: [Mesa-dev] [PATCH] etnaviv: meson: add etnaviv_query_pm.[ch] to the sources

2018-04-09 Thread Christian Gmeiner
Emil you are only minutes faster then me :) Will push this change in some minutes. 2018-04-09 18:57 GMT+02:00 Emil Velikov : > From: Emil Velikov > > Otherwise building the driver will fail with unresolved symbols. > > Bugzilla:

[Mesa-dev] [Bug 105918] Mesa 18.0.0-2 video color issues and distorted video with system hang on restart (Apple Mac Pro 6, 1 with AMD D300 GPUs)

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105918 Jonas Platte changed: What|Removed |Added CC|

[Mesa-dev] [Bug 105960] [bisected] meson build test fails with: undefined reference to `etna_pm_create_query'

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105960 Bug ID: 105960 Summary: [bisected] meson build test fails with: undefined reference to `etna_pm_create_query' Product: Mesa Version: git Hardware: Other

[Mesa-dev] [PATCH] etnaviv: meson: add etnaviv_query_pm.[ch] to the sources

2018-04-09 Thread Emil Velikov
From: Emil Velikov Otherwise building the driver will fail with unresolved symbols. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105960 Fixes: 72d2043be06 ("etnaviv: add perfmon query implementation") Cc: Christian Gmeiner Cc:

[Mesa-dev] [PATCH] radeonsi: autotools: add si_build_pm4.h in dist tarball

2018-04-09 Thread Juan A. Suarez Romero
Fixes: 94f726c36d ("radeonsi: move r600_cs.h contents into si_pipe.h, si_build_pm4.h") --- src/gallium/drivers/radeonsi/Makefile.sources | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/Makefile.sources b/src/gallium/drivers/radeonsi/Makefile.sources index

[Mesa-dev] [PATCH 15/22] st/va: add picture parameter handling for VP9

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/picture_vp9.c | 52 - 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/picture_vp9.c b/src/gallium/state_trackers/va/picture_vp9.c index

[Mesa-dev] [PATCH 12/22] radeonsi: cap VP9 support to progressive buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeonsi/si_get.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 761ca6f4cd..4483ca766d 100644 --- a/src/gallium/drivers/radeonsi/si_get.c

[Mesa-dev] [PATCH 14/22] st/va: add handles for VP9 buffers

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/Makefile.sources | 1 + src/gallium/state_trackers/va/meson.build | 4 +-- src/gallium/state_trackers/va/picture.c| 11 src/gallium/state_trackers/va/picture_vp9.c| 38 ++

[Mesa-dev] [PATCH 17/22] st/va: parse VP9 uncompressed frame header

2018-04-09 Thread Leo Liu
To get some of UVD required parameters. Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/picture.c | 2 +- src/gallium/state_trackers/va/picture_vp9.c | 237 src/gallium/state_trackers/va/va_private.h | 1 + 3 files changed, 239

[Mesa-dev] [PATCH 19/22] vl: add VP9 profile2 support

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/auxiliary/util/u_video.h | 1 + src/gallium/include/pipe/p_video_enums.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_video.h b/src/gallium/auxiliary/util/u_video.h index

[Mesa-dev] [PATCH 20/22] radeon/vcn: add VP9 profile2 support

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 16 1 file changed, 16 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index b4cfba1713..046b371384 100644 ---

[Mesa-dev] [PATCH 09/22] radeon/vcn: get VP9 msg buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 176 +++- src/gallium/drivers/radeon/radeon_vcn_dec.h | 1 + 2 files changed, 176 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c

[Mesa-dev] [PATCH 10/22] radeon/vcn: add VP9 context buffer

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index 170cc3fa41..b4cfba1713 100644

[Mesa-dev] [PATCH 11/22] radeonsi: cap VP9 support to Raven

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeonsi/si_get.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 85cfb11338..761ca6f4cd 100644 --- a/src/gallium/drivers/radeonsi/si_get.c

[Mesa-dev] [PATCH 13/22] st/va: add VP9 picture to context

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/context.c| 4 src/gallium/state_trackers/va/va_private.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/gallium/state_trackers/va/context.c b/src/gallium/state_trackers/va/context.c index

[Mesa-dev] [PATCH 22/22] st/va: add VP9 config to enable profile2

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/config.c | 2 +- src/gallium/state_trackers/va/va_private.h | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/config.c b/src/gallium/state_trackers/va/config.c index

[Mesa-dev] [PATCH 16/22] st/va: add slice parameter handling for VP9

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/state_trackers/va/picture_vp9.c | 25 - 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/picture_vp9.c b/src/gallium/state_trackers/va/picture_vp9.c index

[Mesa-dev] [PATCH 08/22] radeon/vcn: fill probability table to prob buffers

2018-04-09 Thread Leo Liu
Signed-off-by: Leo Liu --- src/gallium/drivers/radeon/radeon_vcn_dec.c | 38 + 1 file changed, 38 insertions(+) diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c index b29ba37b3c..bcfdd33d31

[Mesa-dev] [Bug 105464] Reading per-patch outputs in Tessellation Control Shader returns undefined values

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105464 Samuel Pitoiset changed: What|Removed |Added Resolution|--- |FIXED

[Mesa-dev] [Bug 105918] Mesa 18.0.0-2 video color issues and distorted video with system hang on restart (Apple Mac Pro 6, 1 with AMD D300 GPUs)

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105918 --- Comment #2 from Jonas Platte --- Played around a bit more and found out this only happens with compton. And it seems to have been reported a while ago already: compton bug:

Re: [Mesa-dev] [PATCH] radeonsi: correct si_vgt_param_key on big endian machines

2018-04-09 Thread Marek Olšák
On Mon, Apr 9, 2018 at 10:51 AM, Bas Vermeulen wrote: > I am working on a new version of this patch. I have one version which does > away with all the bitfields, and uses > functions to update the index. > Another approach would be to change the union to a struct, and use a >

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/1] i965: return the fourcc saved in __DRIimage when possible

2018-04-09 Thread Xiong, James
Hi Mark, We need add a dmabuf export test case in piglit, unfortunately I don't have time to work on it at the moment, it's on my to-do list. Thanks, James -Original Message- From: Janes, Mark A Sent: Monday, April 9, 2018 11:17 AM To: Xiong, James ;

Re: [Mesa-dev] [PATCH 2/2] radeonsi: convert dispatch packet to little endian

2018-04-09 Thread Marek Olšák
I pushed both patches, thanks. Marek On Mon, Apr 9, 2018 at 7:06 AM, Bas Vermeulen wrote: > The parameters for the compute engine are wrong when using > an E8860 on a big endian machine. > To fix this, convert the contents of struct dispatch_packet > to little endian. > >

Re: [Mesa-dev] [PATCH] gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times

2018-04-09 Thread Dylan Baker
Have you tried using the meson build if you're that concerned about build times? The plan remains to remove the autotools build at some point, so creating a massive amount of churn in the autotools build that may or may not break something to get some amount of speedup when you could just change

Re: [Mesa-dev] [PATCH] docs/release-calendar: update to include 18.1 and 18.2

2018-04-09 Thread Dylan Baker
Quoting Emil Velikov (2018-04-09 11:02:45) > From: Emil Velikov > > Dylan has kindly stepped up to help with 18.1.0, while I've taken the > liberty to nominate Andres for 18.2.0 ;-) > > As always, people are welcome to swap/adjust where needed. > > Cc: Dylan Baker

Re: [Mesa-dev] [PATCH 5/6] radeonsi/nir: set uses_bindless_images for images

2018-04-09 Thread Marek Olšák
Do you need break statements? Marek On Thu, Apr 5, 2018 at 1:34 AM, Timothy Arceri wrote: > V2: add missing intrinsics (Spotted-by: Samuel Pitoiset) > --- > src/gallium/drivers/radeonsi/si_shader_nir.c | 13 - > 1 file changed, 12 insertions(+), 1

Re: [Mesa-dev] [PATCH 6/6] radeonsi/nir: tidy up si_nir_load_sampler_desc()

2018-04-09 Thread Marek Olšák
If you add break statements into patch 5, the series is: Reviewed-by: Marek Olšák Marek On Thu, Apr 5, 2018 at 1:34 AM, Timothy Arceri wrote: > This makes it easier to follow the code, and also initialises > dynamic_index which will be useful for

[Mesa-dev] [Bug 105960] [bisected] meson build test fails with: undefined reference to `etna_pm_create_query'

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105960 Clayton Craft changed: What|Removed |Added Resolution|--- |FIXED

Re: [Mesa-dev] [PATCH] gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times

2018-04-09 Thread Marek Olšák
meson fails to link LLVM on my setup, so I can't use it, therefore all my meson changes are untested. Even if meson worked, I have to use make, because that's what users use. This change simplifies the meson build too. Marek On Mon, Apr 9, 2018 at 2:21 PM, Dylan Baker

Re: [Mesa-dev] [PATCH 2/2] st/mesa: finalise tcs/tes/geom NIR before storing it to the cache

2018-04-09 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Thu, Apr 5, 2018 at 3:37 AM, Timothy Arceri wrote: > We don't create variants of the NIR so here we finalise it before > caching to avoid unnecessary processing when restoring it. > --- >

[Mesa-dev] [Bug 105918] Mesa 18.0.0-2 video color issues and distorted video with system hang on restart (Apple Mac Pro 6, 1 with AMD D300 GPUs)

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105918 Timothy Arceri changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH 2/2] bin/install_megadrivers: rename a few variables to make things clearer

2018-04-09 Thread Dylan Baker
Originally the "each" variable was just a part of the "drivers" variable. It's not anymore so it's a bit ambiguous. Signed-off-by: Dylan Baker --- bin/install_megadrivers.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

[Mesa-dev] [PATCH 1/2] bin/install_megadrivers: fix DESTDIR and -D*-path

2018-04-09 Thread Dylan Baker
This fixes -Ddri-drivers-path, -Dvdpau-libs-path, etc. with DESTDIR when those paths are absolute. Currently due to the way python's os.path.join handles absolute paths these will ignore DESTDIR, which is bad. This fixes them to be relative to DESTDIR if that is set. Fixes:

[Mesa-dev] [Bug 105567] meson/ninja: 1. mesa/vdpau incorrect symlinks in DESTDIR and 2. Ddri-drivers-path Dvdpau-libs-path overrides DESTDIR

2018-04-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105567 --- Comment #10 from Dylan Baker --- My suspicion was correct, we're not handling absolute paths and DESTDIR correctly. I think that this patch should resolve it: https://patchwork.freedesktop.org/patch/216020/ -- You

Re: [Mesa-dev] [PATCH] gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times

2018-04-09 Thread Dylan Baker
Quoting Marek Olšák (2018-04-09 13:44:27) > meson fails to link LLVM on my setup, so I can't use it, therefore all my > meson > changes are untested. > > Even if meson worked, I have to use make, because that's what users use. > > This change simplifies the meson build too. > > Marek > What

[Mesa-dev] [PATCH] radv: move save/restore operations close to the slow clears

2018-04-09 Thread Samuel Pitoiset
This removes the emission of unnecessary states, for example when performing a fast depth stencil clear (ie. clearing htile), we don't need to save/restore the graphics pipeline. For GFX9 chips that have the scissor bug workaround, that should also reduce the number of partial flushes.

Re: [Mesa-dev] [PATCH] radeonsi: correct si_vgt_param_key on big endian machines

2018-04-09 Thread Gert Wollny
Am Montag, den 09.04.2018, 14:03 -0400 schrieb Marek Olšák: > On Mon, Apr 9, 2018 at 10:51 AM, Bas Vermeulen > wrote: Which solution is better depends on what is done more often: reading the index or writing to the bit fields. > > I am working on a new version of this patch.

Re: [Mesa-dev] [PATCH] radeonsi: correct si_vgt_param_key on big endian machines

2018-04-09 Thread Marek Olšák
On Mon, Apr 9, 2018 at 5:19 PM, Gert Wollny wrote: > Am Montag, den 09.04.2018, 14:03 -0400 schrieb Marek Olšák: > > On Mon, Apr 9, 2018 at 10:51 AM, Bas Vermeulen > > wrote: > Which solution is better depends on what is done more often: reading > the

Re: [Mesa-dev] [PATCH] gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times

2018-04-09 Thread Marek Olšák
See: https://cgit.freedesktop.org/mesa/mesa/commit/?id=f55d1f806e6b6c33af559de166d08ec8fa3ebe90 Marek On Mon, Apr 9, 2018 at 5:08 PM, Dylan Baker wrote: > Quoting Marek Olšák (2018-04-09 13:44:27) > > meson fails to link LLVM on my setup, so I can't use it, therefore all >

Re: [Mesa-dev] [PATCH] gallium: move ddebug, noop, rbug, trace to auxiliary to improve build times

2018-04-09 Thread Dylan Baker
Are you building LLVM yourself, or is that a build that comes with your distro? Also, what is your distro? Quoting Marek Olšák (2018-04-09 14:27:10) > See: > https://cgit.freedesktop.org/mesa/mesa/commit/?id= > f55d1f806e6b6c33af559de166d08ec8fa3ebe90 > > Marek > > On Mon, Apr 9, 2018 at 5:08

Re: [Mesa-dev] [PATCH v3 002/104] nir: Add a deref instruction type

2018-04-09 Thread Rob Clark
On Mon, Apr 9, 2018 at 1:35 AM, Jason Ekstrand wrote: > Rather lively discussion we've got going here... > > On Sun, Apr 8, 2018 at 3:23 PM, Rob Clark wrote: >> >> On Sun, Apr 8, 2018 at 5:54 PM, Bas Nieuwenhuizen >> wrote: >>

Re: [Mesa-dev] [PATCH mesa 01/21] vulkan: Add KHR_display extension using DRM [v4]

2018-04-09 Thread Jason Ekstrand
On Wed, Mar 7, 2018 at 11:24 PM, Keith Packard wrote: > > +/* > + * Implement vkGetPhysicalDeviceDisplayPropertiesKHR (VK_KHR_display) > + */ > +VkResult > +wsi_display_get_physical_device_display_properties(VkPhysicalDevice >physical_device, > +

[Mesa-dev] [PATCH 1/1] i965: Make sure the shadow buffers have enough space

2018-04-09 Thread James Xiong
From: "Xiong, James" On non-LLC platforms, we malloc shadow batch/state buffers of the same sizes as our batch/state buffers' GEM allocations. However the buffer allocator reuses similar-sized gem objects, it returns a buffer larger than we asked for in some cases and we

Re: [Mesa-dev] [PATCH 04/11] gallium: Use Array._DrawVAO in st_atom_array.c.

2018-04-09 Thread Mathias Fröhlich
Hi Marek, On Saturday, 7 April 2018 01:53:58 CEST Marek Olšák wrote: > So interleaved attribs are unsupported, right? > > is_interleaved_arrays was probably slowing things down, so I'm OK with that. I am currently away from all the source code and be back at about the 22.4. But out of my head:

Re: [Mesa-dev] [PATCH mesa 01/21] vulkan: Add KHR_display extension using DRM [v4]

2018-04-09 Thread Jason Ekstrand
Sorry for the multitude of replies. :-( On Wed, Mar 7, 2018 at 11:24 PM, Keith Packard wrote: > This adds support for the KHR_display extension support to the vulkan > WSI layer. Driver support will be added separately. > > v2: > * fix double ;; in

Re: [Mesa-dev] [PATCH v3 057/104] nir,spirv: Rework function calls

2018-04-09 Thread Caio Marcelo de Oliveira Filho
Hi, > typedef struct { > - nir_parameter_type param_type; > - const struct glsl_type *type; > + uint8_t num_components; > + uint8_t bit_size; > } nir_parameter; (...) > @@ -683,18 +692,12 @@ validate_tex_instr(nir_tex_instr *instr, validate_state > *state) > static void >

Re: [Mesa-dev] [PATCH mesa 02/21] anv: Add KHR_display extension to anv [v4]

2018-04-09 Thread Jason Ekstrand
On Wed, Mar 7, 2018 at 11:25 PM, Keith Packard wrote: > This adds support for the KHR_display extension to the anv Vulkan > driver. The driver now attempts to open the master DRM node when the > KHR_display extension is requested so that the common winsys code can > perform

Re: [Mesa-dev] [PATCH v3 002/104] nir: Add a deref instruction type

2018-04-09 Thread Bas Nieuwenhuizen
On Tue, Apr 10, 2018 at 12:37 AM, Rob Clark wrote: > On Mon, Apr 9, 2018 at 1:35 AM, Jason Ekstrand wrote: >> Rather lively discussion we've got going here... >> >> On Sun, Apr 8, 2018 at 3:23 PM, Rob Clark wrote: >>> >>> On Sun,

Re: [Mesa-dev] [PATCH mesa 04/21] vulkan: Add EXT_direct_mode_display

2018-04-09 Thread Jason Ekstrand
On Wed, Mar 7, 2018 at 11:25 PM, Keith Packard wrote: > Add support for the EXT_direct_mode_display extension. This just > provides the vkReleaseDisplayEXT function. > > Signed-off-by: Keith Packard > --- > src/vulkan/wsi/wsi_common_display.c | 17

Re: [Mesa-dev] [PATCH mesa 05/21] anv: Add EXT_direct_mode_display to anv driver

2018-04-09 Thread Jason Ekstrand
On Wed, Mar 7, 2018 at 11:25 PM, Keith Packard wrote: > Add support for the EXT_direct_mode_display extension. This just > provides the vkReleaseDisplayEXT function. > > Signed-off-by: Keith Packard > --- > src/intel/vulkan/anv_extensions.py | 1 + >

Re: [Mesa-dev] [PATCH v3 000/104] nir: Move to using instructions for derefs

2018-04-09 Thread Caio Marcelo de Oliveira Filho
Hi, Given the fixes you already made based on my comments. Patches 1-20, 22-27, 29-43, and 61 (multiview!) are Reviewed-by: Caio Marcelo de Oliveira Filho Patches 46-47 and 49 seem to be valid regardless the rest of the code, so I'd consider getting them in

Re: [Mesa-dev] [PATCH] intel: aubinator: print out addresses of invalid instructions

2018-04-09 Thread Lionel Landwerlin
On 09/04/18 17:04, Scott D Phillips wrote: Lionel Landwerlin writes: Signed-off-by: Lionel Landwerlin --- src/intel/tools/gen_batch_decoder.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff

Re: [Mesa-dev] [PATCH v3 024/104] nir: Support deref instructions in lower_system_values

2018-04-09 Thread Caio Marcelo de Oliveira Filho
Hi, > >> Question: nir_deref_instr_get_variable will walk the deref instr > >> chain, but does it even make sense if there's a array or struct in > >> this deref chain? Should this be asserted? > >> > > > > That's an interesting question. Certainly, at this point in the patch > > series, we

[Mesa-dev] [PATCH] RFC gallium: add 64 bit integer formats

2018-04-09 Thread Karol Herbst
unsigneds are needed by ARB_bindless_texture 64 bit vertex attribs, both for NV_vertex_attrib_integer64. Fixes the new piglit sampler-vertex-attrib-input-output test I sent some days ago for bindless_texture. The change inside vbo_attrtype_to_double_flag is what I am most concerned about. Maybe

Re: [Mesa-dev] [PATCH] RFC gallium: add 64 bit integer formats

2018-04-09 Thread Ilia Mirkin
On Mon, Apr 9, 2018 at 8:39 PM, Karol Herbst wrote: > unsigneds are needed by ARB_bindless_texture 64 bit vertex attribs, both for > NV_vertex_attrib_integer64. > > Fixes the new piglit sampler-vertex-attrib-input-output test I sent some days > ago for bindless_texture. > >

Re: [Mesa-dev] [PATCH mesa] u_endian: use non-underscore-prefixed BYTE_ORDER names

2018-04-09 Thread Matt Turner
On Mon, Apr 9, 2018 at 1:35 AM, Jonathan Gray wrote: > What happened with this patch? It seems the problem it is fixing got > cherry-picked into 17.3 but the fix for master (and now 17.3) is still > not merged? I think Eric's on holiday now, so I wouldn't expect a speedy

Re: [Mesa-dev] [PATCH 5/6] radeonsi/nir: set uses_bindless_images for images

2018-04-09 Thread Timothy Arceri
On 10/04/18 06:29, Marek Olšák wrote: Do you need break statements? Whoops the first one does. I'll add a /* fall through */ comment to the second one. Thanks. Marek On Thu, Apr 5, 2018 at 1:34 AM, Timothy Arceri > wrote: V2:

Re: [Mesa-dev] [PATCH] RFC gallium: add 64 bit integer formats

2018-04-09 Thread Karol Herbst
On Tue, Apr 10, 2018 at 2:43 AM, Ilia Mirkin wrote: > On Mon, Apr 9, 2018 at 8:39 PM, Karol Herbst wrote: >> unsigneds are needed by ARB_bindless_texture 64 bit vertex attribs, both for >> NV_vertex_attrib_integer64. >> >> Fixes the new piglit

Re: [Mesa-dev] [PATCH mesa 07/21] vulkan: Add EXT_acquire_xlib_display [v2]

2018-04-09 Thread Jason Ekstrand
As with patch 1, I've gone through and made a pile of style changes to bring things back under 80 characters. You can find it on this branch: https://gitlab.freedesktop.org/jekstrand/mesa/commits/wip/drm-lease-v3-whitespace I also fixed a couple of the comments below. On Wed, Mar 7, 2018 at

Re: [Mesa-dev] [PATCH v3 000/104] nir: Move to using instructions for derefs

2018-04-09 Thread Jason Ekstrand
On Mon, Apr 9, 2018 at 4:58 PM, Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Hi, > > Given the fixes you already made based on my comments. Patches 1-20, > 22-27, 29-43, and 61 (multiview!) are > > Reviewed-by: Caio Marcelo de Oliveira Filho > >

Re: [Mesa-dev] [PATCH v3 002/104] nir: Add a deref instruction type

2018-04-09 Thread Jason Ekstrand
On Mon, Apr 9, 2018 at 4:41 PM, Bas Nieuwenhuizen wrote: > On Tue, Apr 10, 2018 at 12:37 AM, Rob Clark wrote: > > On Mon, Apr 9, 2018 at 1:35 AM, Jason Ekstrand > wrote: > >> Rather lively discussion we've got going here... >

[Mesa-dev] [PATCH] nv50/ir: make a copy of tex src if it's referenced multiple times

2018-04-09 Thread Ilia Mirkin
For nv50 we coalesce the srcs and defs into a single node (some ops can't take a separate src and dst, while others can only handle one reg in the short encoding mode). [Side-note: the ops for which there is an encoding that can take a src should instead use the RA's register preference

Re: [Mesa-dev] [PATCH] nv50/ir: make a copy of tex src if it's referenced multiple times

2018-04-09 Thread Ilia Mirkin
On Mon, Apr 9, 2018 at 10:23 PM, Ilia Mirkin wrote: > For nv50 we coalesce the srcs and defs into a single node (some ops > can't take a separate src and dst, while others can only handle one reg > in the short encoding mode). > > [Side-note: the ops for which there is an

Re: [Mesa-dev] [PATCH v3 057/104] nir,spirv: Rework function calls

2018-04-09 Thread Jason Ekstrand
+ A bunch of potentially interested parties. On Mon, Apr 9, 2018 at 4:25 PM, Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Hi, > > > typedef struct { > > - nir_parameter_type param_type; > > - const struct glsl_type *type; > > + uint8_t num_components; > > + uint8_t

Re: [Mesa-dev] [PATCH v3 000/104] nir: Move to using instructions for derefs

2018-04-09 Thread Jason Ekstrand
On Mon, Apr 9, 2018 at 6:20 PM, Jason Ekstrand wrote: > On Mon, Apr 9, 2018 at 4:58 PM, Caio Marcelo de Oliveira Filho < > caio.olive...@intel.com> wrote: > >> Hi, >> >> Given the fixes you already made based on my comments. Patches 1-20, >> 22-27, 29-43, and 61

Re: [Mesa-dev] [PATCH v3 024/104] nir: Support deref instructions in lower_system_values

2018-04-09 Thread Jason Ekstrand
On Mon, Apr 9, 2018 at 5:21 PM, Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Hi, > > > >> Question: nir_deref_instr_get_variable will walk the deref instr > > >> chain, but does it even make sense if there's a array or struct in > > >> this deref chain? Should this be

[Mesa-dev] [PATCH v2] nv50/ir: make a copy of tex src if it's referenced multiple times

2018-04-09 Thread Ilia Mirkin
For nv50 we coalesce the srcs and defs into a single node. As such, we can end up with impossible constraints if the source is referenced after the tex operation (which, due to the coalescing of values, will have overwritten it). This logic already exists for inserting moves for MERGE/UNION

[Mesa-dev] [PATCH 01/10] glsl: replace some asserts with unreachable when processing the ast

2018-04-09 Thread Timothy Arceri
--- src/compiler/glsl/ast_to_hir.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/glsl/ast_to_hir.cpp b/src/compiler/glsl/ast_to_hir.cpp index 168ab7eec2f..4d7383c580f 100644 --- a/src/compiler/glsl/ast_to_hir.cpp +++ b/src/compiler/glsl/ast_to_hir.cpp @@

[Mesa-dev] NIR function inlining for faster compile times

2018-04-09 Thread Timothy Arceri
This series is part of an effort to reduce the regression in compile times when switching radeonsi from TGIS -> NIR. But it also turns out to be quite handy for i965 too. The idea is to make better use of GLSLOptimizeConservatively. Currently TGSI must ignore the flag until all functions have

[Mesa-dev] [PATCH 02/10] glsl: add missing include to ir_optimization.h

2018-04-09 Thread Timothy Arceri
--- src/compiler/glsl/ir_optimization.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compiler/glsl/ir_optimization.h b/src/compiler/glsl/ir_optimization.h index 81049a479e8..f5d2bea0cd5 100644 --- a/src/compiler/glsl/ir_optimization.h +++ b/src/compiler/glsl/ir_optimization.h @@

[Mesa-dev] [PATCH 06/10] glsl: copy function out to temp if we don't directly ref a variable

2018-04-09 Thread Timothy Arceri
Otherwise we can end up with IR that looks like this: ( (declare (temporary ) vec4 f@8) (assign (xyzw) (var_ref f@8) (var_ref f) ) (call f16 ((swiz y (var_ref f@8) ))) (assign (xyzw) (var_ref f) (var_ref f@8) ) )) When we really need: (declare

[Mesa-dev] [PATCH 04/10] glsl: always clone deref in evaluate_deref()

2018-04-09 Thread Timothy Arceri
NIR validation will failing without this once we start using glsl_to_nir() for functions other than main. i.e. once we stop lowering all functions in GLSL IR. --- src/compiler/glsl/glsl_to_nir.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 09/10] i965: stop calling nir_lower_returns()

2018-04-09 Thread Timothy Arceri
We now call this for all drivers in glsl_to_nir() instead. --- src/mesa/drivers/dri/i965/brw_program.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index fc77926d6e0..8c3ac70280f 100644 ---

[Mesa-dev] [PATCH 10/10] i965: use the optimise conservatively option for GLSL IR

2018-04-09 Thread Timothy Arceri
Shader-db compile times on IVB: With this patch: Thread 1 took 368.68 seconds and compiled 16434 shaders Thread 2 took 372.83 seconds and compiled 16930 shaders Thread 3 took 370.27 seconds and compiled 16891 shaders Thread 0 took 377.69 seconds and compiled 16753 shaders Without this patch:

[Mesa-dev] [PATCH 05/10] glsl: make a copy of array indices that are used to deref a function out param

2018-04-09 Thread Timothy Arceri
Fixes new piglit test: tests/spec/glsl-1.20/execution/qualifiers/vs-out-conversion-int-to-float-vec4-index.shader_test --- src/compiler/glsl/ast_function.cpp | 94 ++ 1 file changed, 94 insertions(+) diff --git a/src/compiler/glsl/ast_function.cpp

[Mesa-dev] [PATCH 03/10] glsl: add function support to glsl_to_nir

2018-04-09 Thread Timothy Arceri
This support was missing because currently we always let GLSL IR inline the functions. --- src/compiler/glsl/glsl_to_nir.cpp | 76 +++ 1 file changed, 68 insertions(+), 8 deletions(-) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp

[Mesa-dev] [PATCH 07/10] nir: return early when lowering a return at the end of a function

2018-04-09 Thread Timothy Arceri
Otherwise we create unused conditional return flags and things get unnecessarily ugly fast when lowering nested functions. --- src/compiler/nir/nir_lower_returns.c | 8 1 file changed, 8 insertions(+) diff --git a/src/compiler/nir/nir_lower_returns.c

[Mesa-dev] [PATCH 08/10] glsl: use NIR function inlining for drivers that use glsl_to_nir

2018-04-09 Thread Timothy Arceri
--- src/compiler/glsl/glsl_to_nir.cpp | 20 1 file changed, 20 insertions(+) diff --git a/src/compiler/glsl/glsl_to_nir.cpp b/src/compiler/glsl/glsl_to_nir.cpp index 5a36963607e..55c01024669 100644 --- a/src/compiler/glsl/glsl_to_nir.cpp +++

Re: [Mesa-dev] [PATCH] radeonsi: autotools: add si_build_pm4.h in dist tarball

2018-04-09 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Mon, Apr 9, 2018 at 10:57 AM, Juan A. Suarez Romero wrote: > Fixes: 94f726c36d ("radeonsi: move r600_cs.h contents into si_pipe.h, > si_build_pm4.h") > --- > src/gallium/drivers/radeonsi/Makefile.sources | 1 + > 1

[Mesa-dev] [PATCH] docs/release-calendar: update to include 18.1 and 18.2

2018-04-09 Thread Emil Velikov
From: Emil Velikov Dylan has kindly stepped up to help with 18.1.0, while I've taken the liberty to nominate Andres for 18.2.0 ;-) As always, people are welcome to swap/adjust where needed. Cc: Dylan Baker Cc: Andres Gomez

  1   2   >