Re: [Mesa-dev] [PATCH] i965: skip reading clip distances from the URB for the FS if possible

2017-09-26 Thread Iago Toral
Sure, I can do that. Iago On Tue, 2017-09-26 at 06:32 -0400, Ilia Mirkin wrote: > Perhaps a debug message would be warranted in such a situation? I > suspect it would be difficult to debug, esp if it came up in a > regular application. > On Sep 26, 2017 3:50 AM, "Iago Toral Quiroga" > wrote: > we

Re: [Mesa-dev] [PATCH v4 4/4] meson: build "radv" vulkan driver for radeon hardware

2017-09-26 Thread Bas Nieuwenhuizen
It works now, thanks! Also Reviewed-by: Bas Nieuwenhuizen for this patch. On Tue, Sep 26, 2017 at 4:38 PM, Dylan Baker wrote: > This builds, installs, and has been tested on a r290x (Hawaii) with the Vulkan > CTS. It dies horribly in a fire at the same point for the meson build as the > autot

Re: [Mesa-dev] [PATCH] radv: fix saved compute state when doing statistics/occlusion queries

2017-09-26 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Tue, Sep 26, 2017 at 7:52 AM, Samuel Pitoiset wrote: > We are pushing 16-bytes of constants, so we have to save/restore > the same amount of data to avoid data corruption. > > Signed-off-by: Samuel Pitoiset > Cc: 17.2 > --- > src/amd/vulkan/radv_query.c | 4 +

Re: [Mesa-dev] [PATCH 1/2] radv: remove useless radv_meta_{begin, end}_XXX() helpers

2017-09-26 Thread Bas Nieuwenhuizen
For the series: Reviewed-by: Bas Nieuwenhuizen On Tue, Sep 26, 2017 at 2:26 PM, Samuel Pitoiset wrote: > Signed-off-by: Samuel Pitoiset > --- > src/amd/vulkan/radv_meta.h | 12 --- > src/amd/vulkan/radv_meta_bufimage.c | 42 > - > src/amd/

[Mesa-dev] [PATCH] glsl: Allow precision mismatch on dead uniform with GLSL ES 1.00 (v3)

2017-09-26 Thread Tomasz Figa
Commit 259fc505454ea6a67aeacf6cdebf1398d9947759 added linker error for mismatching uniform precision, as required by GLES 3.0 specification and conformance test-suite. Several Android applications, including Forge of Empires, have shaders which violate this rule, on uniforms that are declared but

Re: [Mesa-dev] [PATCH] glsl: Allow precision mismatch on dead data with GLSL ES 1.00

2017-09-26 Thread Tomasz Figa
On Wed, Sep 27, 2017 at 9:29 AM, Ian Romanick wrote: > NAK. > > You mention varyings in the commit message, but then you quote spec text > about uniforms. Sorry, the part about varyings was a bad copy paste from the old workaround patch on the bugzilla. The problem here is about uniforms. > This

Re: [Mesa-dev] [PATCH] glsl: Allow precision mismatch on dead data with GLSL ES 1.00

2017-09-26 Thread Ian Romanick
NAK. You mention varyings in the commit message, but then you quote spec text about uniforms. This bugged me, so I actually went and looked at the GLSL ES 1.00 specification. Section 4.3.5 (Varying) of the GLSL ES 1.00 specification says: The precision of varying variables does not need to

Re: [Mesa-dev] [PATCH] svga: add missing PIPE_SHADER_CAP_INT64_ATOMICS switch cases

2017-09-26 Thread Roland Scheidegger
Am 27.09.2017 um 01:03 schrieb Brian Paul: > Silences a compiler warning. > --- > src/gallium/drivers/svga/svga_screen.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/gallium/drivers/svga/svga_screen.c > b/src/gallium/drivers/svga/svga_screen.c > index 16e350c..4cf12c5 100644 >

Re: [Mesa-dev] [Mesa-stable] [PATCH] egl/dri2: Implement swapInterval fallback in a conformant way (v2)

2017-09-26 Thread Tomasz Figa
On Wed, Sep 27, 2017 at 2:32 AM, Juan A. Suarez Romero wrote: > On Mon, 2017-09-25 at 16:25 +0900, Tomasz Figa wrote: >> On Fri, Aug 11, 2017 at 1:31 PM, Tomasz Figa wrote: >> > On Fri, Aug 11, 2017 at 2:29 AM, Emil Velikov >> > wrote: >> > > On 10 August 2017 at 14:59, Tomasz Figa wrote: >> >

[Mesa-dev] [PATCH] svga: add missing PIPE_SHADER_CAP_INT64_ATOMICS switch cases

2017-09-26 Thread Brian Paul
Silences a compiler warning. --- src/gallium/drivers/svga/svga_screen.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 16e350c..4cf12c5 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/galliu

[Mesa-dev] [PATCH v4 4/4] meson: build "radv" vulkan driver for radeon hardware

2017-09-26 Thread Dylan Baker
This builds, installs, and has been tested on a r290x (Hawaii) with the Vulkan CTS. It dies horribly in a fire at the same point for the meson build as the autotools build. v2: - enable radv by default - add shader cache support and enforce that it's built for radv v3: - Fix typo in meson_opti

[Mesa-dev] [PATCH v4 3/4] meson: Add build Intel "anv" vulkan driver

2017-09-26 Thread Dylan Baker
This allows building and installing the Intel "anv" Vulkan driver using meson and ninja, the driver has been tested against the CTS and has seems to pass the same series of tests (they both segfault when the CTS tries to run wayland wsi tests). There are still a mess of TODO, XXX, and FIXME commen

[Mesa-dev] [PATCH v4 1/4] intel: use a flag instead of setting PYTHONPATH

2017-09-26 Thread Dylan Baker
Meson doesn't allow setting environment variables for custom targets, so we either need to not pass this as an environment variable or use a shell script to wrap the invocation. The chosen solution has the advantage of working for both autotools and meson. v2: - put rules back in top scope (Ken)

[Mesa-dev] [PATCH v4 2/4] util/ralloc: Don't define assert with magic member without DEBUG

2017-09-26 Thread Dylan Baker
It is possible to have DEBUG disabled but asserts on (NDEBUG(, which cannot build because these asserts work on members that are only present when DEBUG is on. Reviewed-by: Kenneth Graunke Signed-off-by: Dylan Baker --- src/util/ralloc.c | 8 1 file changed, 8 insertions(+) diff --git

[Mesa-dev] [PATCH 3/4] vulkan/wsi/wayland: Copy wl_proxy objects from oldSwapchain if available

2017-09-26 Thread Jason Ekstrand
This should save us some round trips while resizing. Cc: mesa-sta...@lists.freedesktop.org --- src/vulkan/wsi/wsi_common_wayland.c | 39 +++-- 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_c

[Mesa-dev] [PATCH 1/4] vulkan/wsi/wayland: Refactor wsi_wl_display code

2017-09-26 Thread Jason Ekstrand
We convert it over to an inti/finish model and make create/destroy wrappers for the former. Cc: mesa-sta...@lists.freedesktop.org --- src/vulkan/wsi/wsi_common_wayland.c | 47 ++--- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/src/vulkan/wsi/wsi_

[Mesa-dev] [PATCH 4/4] vulkan/wsi/wayland: Return better error messages

2017-09-26 Thread Jason Ekstrand
Cc: mesa-sta...@lists.freedesktop.org --- src/vulkan/wsi/wsi_common_wayland.c | 59 - 1 file changed, 38 insertions(+), 21 deletions(-) diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index b0f58b3..ec90894 100644 --- a/s

[Mesa-dev] [PATCH 2/4] vulkan/wsi/wayland: Stop caching Wayland displays

2017-09-26 Thread Jason Ekstrand
We originally implemented caching to avoid unneeded round-trips to the compositor when querying surface capabilities etc. to set up the swapchain. Unfortunately, this doesn't work if vkDestroyInstance is called after the Wayland connection has been dropped. In this case, we end up trying to clean

[Mesa-dev] [PATCH mesa 6/6] egl: drop memset(0) of calloc'ed memory

2017-09-26 Thread Eric Engestrom
`_EGLDriver *drv` is a freshly calloc()'ed object, memset(0)'ing some of it is a no-op. Signed-off-by: Eric Engestrom --- src/egl/main/eglfallbacks.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c index 1575ab5f79..2d4851f757 100644

[Mesa-dev] [PATCH mesa 3/6] egl_dri2: drop dri2_egl_driver struct

2017-09-26 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- src/egl/drivers/dri2/egl_dri2.c | 101 +++- src/egl/drivers/dri2/egl_dri2.h | 5 -- 2 files changed, 49 insertions(+), 57 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index a8f4

[Mesa-dev] [PATCH mesa 4/6] egl_haiku: drop haiku_egl_driver struct

2017-09-26 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- src/egl/drivers/haiku/egl_haiku.cpp | 34 ++ 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index a98470f62d..fea38e76ed 100644 --- a/src/e

[Mesa-dev] [PATCH mesa 2/6] egl: replace _egl_driver->Unload() callback with a simple free()

2017-09-26 Thread Eric Engestrom
Bonus: fixes a memleak on haiku when unloading the driver Signed-off-by: Eric Engestrom --- src/egl/drivers/dri2/egl_dri2.c | 9 - src/egl/drivers/haiku/egl_haiku.cpp | 9 - src/egl/main/egldriver.c| 5 + src/egl/main/egldriver.h| 7 --- 4 file

[Mesa-dev] [PATCH mesa 5/6] egl: move alloc & init out of _eglBuiltInDriver{DRI2, Haiku}

2017-09-26 Thread Eric Engestrom
Note: dropping the EGL_BAD_ALLOC in egl_haiku because it's overwritten by the EGL_NOT_INITIALIZED in eglInitialize(). Signed-off-by: Eric Engestrom --- src/egl/drivers/dri2/egl_dri2.c | 13 ++--- src/egl/drivers/haiku/egl_haiku.cpp | 13 ++--- src/egl/main/README.txt

[Mesa-dev] [PATCH mesa 1/6] egl_dri2: move glFlush out of struct dri2_egl_driver

2017-09-26 Thread Eric Engestrom
There's no reason to store this there, it doesn't depend on the driver. Signed-off-by: Eric Engestrom --- src/egl/drivers/dri2/egl_dri2.c | 44 ++--- src/egl/drivers/dri2/egl_dri2.h | 2 -- 2 files changed, 19 insertions(+), 27 deletions(-) diff --git a/src/

[Mesa-dev] [PATCH mesa 0/6] egl: remove unnecessary code

2017-09-26 Thread Eric Engestrom
This series is based on top of Emil's "egl/dri: link directly to libglapi.so": https://lists.freedesktop.org/archives/mesa-dev/2017-September/170160.html It moves code out of a struct it doesn't belong to, then replaces a complicated callback with a simple free(), drops two empty structs, deduplic

Re: [Mesa-dev] [PATCH] glsl: Allow precision mismatch on dead data with GLSL ES 1.00

2017-09-26 Thread Chad Versace
On Tue 26 Sep 2017, Tomasz Figa wrote: > Commit 259fc505454ea6a67aeacf6cdebf1398d9947759 added linker error for > mismatching uniform precision, as required by GLES 3.0 specification and > conformance test-suite. > > Several Android applications, including Forge of Empires, have shaders > which vi

Re: [Mesa-dev] [PATCH v2 7/7] i965: make use of nir linking

2017-09-26 Thread Kenneth Graunke
On Tuesday, September 26, 2017 4:31:46 AM PDT Eero Tamminen wrote: > Hi, > > On 26.09.2017 12:04, Timothy Arceri wrote: > > On 26/09/17 17:50, Kenneth Graunke wrote: > [...] > >> 2. It would be great to use this in anv as well, especially given that > >> it has no GLSL IR linking to do this so

Re: [Mesa-dev] [PATCH 1/3] i965/vec4: Actually handle atomic op intrinsics.

2017-09-26 Thread Ian Romanick
D'oh. :( Series is Reviewed-by: Ian Romanick On 09/24/2017 03:09 PM, Kenneth Graunke wrote: > Embarassingly, someone enabled the ARB_shader_atomic_counter_ops > extension for Gen7+ but never added the intrinsics to the switch > statement in the vec4 backend, so they just hit an unreachable() >

Re: [Mesa-dev] feature levels in clover (was: Re: [PATCH 2/2] clover: Query and export int64 atomics)

2017-09-26 Thread Francisco Jerez
Jan Vesely writes: > On Wed, 2017-09-20 at 19:10 -0500, Aaron Watry wrote: >> [SNIP] >> >> Not trying to rain on your parade, but I've been thinking that we >> might need to be able to query the installed libclc version or >> possibly consider querying the libclc library for information about >>

Re: [Mesa-dev] [PATCH 00/11] glsl, tgsi, radeonsi: ldexp and frexp bug fixes and features

2017-09-26 Thread Dieter Nützel
Ah, this one works. Sorry Nicolai, I've tried the patchwork (rev 1) version last week, but it didn't apply clean. Soo. For the series Tested-by: Dieter Nützel Should I run any special app? Notice any speedup? Greetings, Dieter Am 16.09.2017 13:27, schrieb Nicolai Hähnle: If you want to t

[Mesa-dev] [PATCH 2/2] radv: store the amount of saved constants in the compute state

2017-09-26 Thread Samuel Pitoiset
It's safer and more elegant. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_meta.c| 15 +-- src/amd/vulkan/radv_meta.h| 4 ++-- src/amd/vulkan/radv_meta_buffer.c | 4 ++-- src/amd/vulkan/radv_meta_clear.c | 2 +- src/amd/vulkan/radv_meta_co

[Mesa-dev] [PATCH 1/2] radv: remove useless radv_meta_{begin, end}_XXX() helpers

2017-09-26 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_meta.h | 12 --- src/amd/vulkan/radv_meta_bufimage.c | 42 - src/amd/vulkan/radv_meta_clear.c| 4 ++-- src/amd/vulkan/radv_meta_copy.c | 13 ++-- 4 files changed, 9 inserti

Re: [Mesa-dev] [PATCH] glx: Be more tolerant in glXImportContext (v2)

2017-09-26 Thread Eric Anholt
Adam Jackson writes: > Ugh the GLX code. __GLX_MAX_CONTEXT_PROPS is 3 because glxproto.h is > just a pile of ancient runes, so when the server begins sending more > than 3 context properties this code refuses to work _at all_. Which is > all just silly. If _XReply succeeds, it will have buffered

Re: [Mesa-dev] [PATCH] egl/wayland: Make wayland_drm_init declaration match the implementation

2017-09-26 Thread Daniel Stone
Hi, On 20 September 2017 at 19:02, Emil Velikov wrote: > Krzysztof Sobiecki (sobkas) provided a more elaborate fix on IRC, > which I've applied ~15 minutes before this patch went out. > > Sorry about breaking things :-( Even with the compile fix, this made Wayland compositors instantly die when

[Mesa-dev] [PATCH] glx: Be more tolerant in glXImportContext (v2)

2017-09-26 Thread Adam Jackson
Ugh the GLX code. __GLX_MAX_CONTEXT_PROPS is 3 because glxproto.h is just a pile of ancient runes, so when the server begins sending more than 3 context properties this code refuses to work _at all_. Which is all just silly. If _XReply succeeds, it will have buffered the whole reply, we can just w

[Mesa-dev] [Bug 103002] string_buffer_test.cpp:43: error: ISO C++ forbids initialization of member ‘str1’

2017-09-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103002 Bug ID: 103002 Summary: string_buffer_test.cpp:43: error: ISO C++ forbids initialization of member ‘str1’ Product: Mesa Version: git Hardware: Other OS: Al

Re: [Mesa-dev] [PATCH 00/22] RFC: Batchbuffer Logger for Intel GPU

2017-09-26 Thread Chris Wilson
Quoting Rogovin, Kevin (2017-09-26 10:35:44) > Hi, > > Attached to this message are the following: > 1. a file giving example usage of the tool with a modified apitrace to > produce json output > > 2. the patches to apitrace to make it BatchbufferLogger aware > > 3. the JSON fi

Re: [Mesa-dev] [PATCH] glx: Be slightly more tolerant in glXImportContext

2017-09-26 Thread Adam Jackson
On Tue, 2017-09-26 at 11:59 -0700, Eric Anholt wrote: > Instead of magic numbers, couldn't we just malloc the proplist here and > free it after the loop? Fine. You tyrant. Actually I have a better idea. We've buffered the entire reply by this point, we can just read two dwords at a time until we

Re: [Mesa-dev] [PATCH v3 4/4] meson: build "radv" vulkan driver for radeon hardware

2017-09-26 Thread Dylan Baker
Quoting Nirbheek Chauhan (2017-09-26 12:58:12) > On Wed, Sep 27, 2017 at 1:11 AM, Dylan Baker wrote: > > Quoting Nirbheek Chauhan (2017-09-26 12:29:30) > >> On Tue, Sep 26, 2017 at 9:46 PM, Dylan Baker wrote: > >> > This builds and installs, but I haven't had a chance to test it yet. > >> > > >>

Re: [Mesa-dev] [PATCH v3 3/4] meson: Add build Intel "anv" vulkan driver

2017-09-26 Thread Dylan Baker
Quoting Eric Anholt (2017-09-26 11:46:50) > Dylan Baker writes: > > > This allows building and installing the Intel "anv" Vulkan driver using > > meson and ninja, the driver has been tested against the CTS and has > > seems to pass the same series of tests (they both segfault when the CTS > > tri

Re: [Mesa-dev] [PATCH v3 4/4] meson: build "radv" vulkan driver for radeon hardware

2017-09-26 Thread Nirbheek Chauhan
On Wed, Sep 27, 2017 at 1:11 AM, Dylan Baker wrote: > Quoting Nirbheek Chauhan (2017-09-26 12:29:30) >> On Tue, Sep 26, 2017 at 9:46 PM, Dylan Baker wrote: >> > This builds and installs, but I haven't had a chance to test it yet. >> > >> > v2: - enable radv by default >> > - add shader cache

Re: [Mesa-dev] [PATCH v3 4/4] meson: build "radv" vulkan driver for radeon hardware

2017-09-26 Thread Dylan Baker
Quoting Nirbheek Chauhan (2017-09-26 12:29:30) > On Tue, Sep 26, 2017 at 9:46 PM, Dylan Baker wrote: > > This builds and installs, but I haven't had a chance to test it yet. > > > > v2: - enable radv by default > > - add shader cache support and enforce that it's built for radv > > v3: - Fix t

Re: [Mesa-dev] [PATCH 2/5] st/glsl_to_tgsi: fix conditional assignments to packed shader outputs

2017-09-26 Thread Nicolai Hähnle
On 26.09.2017 20:34, Ian Romanick wrote: I'm hoping to land my patch series that removes ir_assignment::condition either today or tomorrow. I believe that series deletes all of this code... but this patch would still be useful for stable. Yep, that series is much appreciated. If it weren't for

Re: [Mesa-dev] [PATCH v3 4/4] meson: build "radv" vulkan driver for radeon hardware

2017-09-26 Thread Nirbheek Chauhan
On Tue, Sep 26, 2017 at 9:46 PM, Dylan Baker wrote: > This builds and installs, but I haven't had a chance to test it yet. > > v2: - enable radv by default > - add shader cache support and enforce that it's built for radv > v3: - Fix typo in meson_options (Nicholas) > - strip trailing 'svn

Re: [Mesa-dev] [PATCH] glsl: Allow precision mismatch on dead data with GLSL ES 1.00

2017-09-26 Thread Kenneth Graunke
This seems reasonable to me, and gets myReviewed-by: Kenneth Graunke but I would wait to hear back from Ian since he's been looking at this too.Thanks for researching this carefully!___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.fr

Re: [Mesa-dev] [PATCH] glx: Be slightly more tolerant in glXImportContext

2017-09-26 Thread Eric Anholt
Adam Jackson writes: > Ugh the GLX code. __GLX_MAX_CONTEXT_PROPS is 3 because glxproto.h is > just a pile of ancient runes, so when the server begins sending more > than 3 context properties this code refuses to work _at all_. > > This extension is pretty obscure, so this probably isn't a big dea

Re: [Mesa-dev] [PATCH v3 3/4] meson: Add build Intel "anv" vulkan driver

2017-09-26 Thread Eric Anholt
Dylan Baker writes: > This allows building and installing the Intel "anv" Vulkan driver using > meson and ninja, the driver has been tested against the CTS and has > seems to pass the same series of tests (they both segfault when the CTS > tries to run wayland wsi tests). > > There are still a me

Re: [Mesa-dev] XDC 2017 feedback

2017-09-26 Thread Manasi Navare
Hi, XDC was a really great conference and loved the fact that it was in just one room which kept all the hallway conversations in that room resulting into more networking. But I agree with Andres that for the videos, it would be great to split the huge youtube video stream per presentation and hav

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/3] mesa: GL_TEXTURE_BORDER_COLOR exists in OpenGL 1.0, so don't depend on GL_ARB_texture_border_clamp

2017-09-26 Thread Ian Romanick
On 09/26/2017 10:27 AM, Juan A. Suarez Romero wrote: > On Thu, 2017-09-21 at 10:39 -0500, Ian Romanick wrote: >> On 09/20/2017 03:12 AM, Juan A. Suarez Romero wrote: >>> On Sat, 2017-07-08 at 02:03 +0300, Andres Gomez wrote: Ian, it looks like we could want this patch (and the others from the

Re: [Mesa-dev] [PATCH 2/5] st/glsl_to_tgsi: fix conditional assignments to packed shader outputs

2017-09-26 Thread Ian Romanick
I'm hoping to land my patch series that removes ir_assignment::condition either today or tomorrow. I believe that series deletes all of this code... but this patch would still be useful for stable. On 09/26/2017 07:42 AM, Nicolai Hähnle wrote: > From: Nicolai Hähnle > > Overriding the default (

Re: [Mesa-dev] [PATCH] vc4: Fix infinite retry in vc4_bo_alloc()

2017-09-26 Thread Eric Engestrom
On Tuesday, 2017-09-26 07:48:37 +, Boris Brezillon wrote: > cleared_and_retried is always reset to false when jumping to the retry > label, thus leading to an infinite retry loop. > > Fix that by moving the cleared_and_retried variable definitions at the > beginning of the function. Reviewed-

Re: [Mesa-dev] [PATCH 2/2] swr: Remove unneeeded comparison

2017-09-26 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Sep 25, 2017, at 5:28 PM, George Kyriazis > wrote: > > No need to check if screen->pipe != pipe, so we can just assign it. Just do > it. > --- > src/gallium/drivers/swr/swr_state.cpp | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/

Re: [Mesa-dev] [PATCH 1/2] swr: Handle resource across context changes

2017-09-26 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Sep 25, 2017, at 5:28 PM, George Kyriazis > wrote: > > Swr caches fb contents in tiles. Those tiles are stored on a per-context > basis. > > When switching contexts that share resources we need to make sure that > the tiles of the old context are being store

[Mesa-dev] [PATCH] glx: Be slightly more tolerant in glXImportContext

2017-09-26 Thread Adam Jackson
Ugh the GLX code. __GLX_MAX_CONTEXT_PROPS is 3 because glxproto.h is just a pile of ancient runes, so when the server begins sending more than 3 context properties this code refuses to work _at all_. This extension is pretty obscure, so this probably isn't a big deal (if it was we'd need to hack t

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix border color translation for integer textures

2017-09-26 Thread Nicolai Hähnle
On 26.09.2017 18:55, Gustaw Smolarczyk wrote: 2017-09-26 16:46 GMT+02:00 Nicolai Hähnle : From: Nicolai Hähnle This fixes the extremely unlikely case that an application uses 0x8000 or 0x3f80 as border color for an integer texture and helps in the also, but perhaps slightly less, unlik

Re: [Mesa-dev] [Mesa-stable] [PATCH] egl/dri2: Implement swapInterval fallback in a conformant way (v2)

2017-09-26 Thread Juan A. Suarez Romero
On Mon, 2017-09-25 at 16:25 +0900, Tomasz Figa wrote: > On Fri, Aug 11, 2017 at 1:31 PM, Tomasz Figa wrote: > > On Fri, Aug 11, 2017 at 2:29 AM, Emil Velikov > > wrote: > > > On 10 August 2017 at 14:59, Tomasz Figa wrote: > > > > dri2_fallback_swap_interval() currently used to stub out swap int

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/3] mesa: GL_TEXTURE_BORDER_COLOR exists in OpenGL 1.0, so don't depend on GL_ARB_texture_border_clamp

2017-09-26 Thread Juan A. Suarez Romero
On Thu, 2017-09-21 at 10:39 -0500, Ian Romanick wrote: > On 09/20/2017 03:12 AM, Juan A. Suarez Romero wrote: > > On Sat, 2017-07-08 at 02:03 +0300, Andres Gomez wrote: > > > Ian, it looks like we could want this patch (and the others from the > > > series when they land) in -stable (?) > > > > >

Re: [Mesa-dev] XDC 2017 feedback

2017-09-26 Thread Andres Rodriguez
Hi, A small piece of feedback from those of us watching remotely. It would be nice to have a simple to access index for the long livestream videos. I think the XDC 2017 wiki page would be a good place for this information. A brief example: Presentation Title | Presenter Name | Link with tim

Re: [Mesa-dev] [Mesa-stable] [RFC PATCH] radeonsi: flush DB caches when a Z/stencil buffer is attached

2017-09-26 Thread Juan A. Suarez Romero
On Tue, 2017-09-26 at 19:11 +0200, Samuel Pitoiset wrote: > > On 09/26/2017 06:57 PM, Juan A. Suarez Romero wrote: > > On Tue, 2017-07-25 at 17:56 +0200, Samuel Pitoiset wrote: > > > > > > On 07/25/2017 05:51 PM, Nicolai Hähnle wrote: > > > > On 25.07.2017 15:29, Samuel Pitoiset wrote: > > > > >

Re: [Mesa-dev] [RFC PATCH] radeonsi: flush DB caches when a Z/stencil buffer is attached

2017-09-26 Thread Samuel Pitoiset
On 09/26/2017 06:57 PM, Juan A. Suarez Romero wrote: On Tue, 2017-07-25 at 17:56 +0200, Samuel Pitoiset wrote: On 07/25/2017 05:51 PM, Nicolai Hähnle wrote: On 25.07.2017 15:29, Samuel Pitoiset wrote: This is a workaround which fixes a rendering issue with Dawn Of War III in full bindless m

Re: [Mesa-dev] [PATCH 4/8] egl: rework input validation order in _eglCreateWindowSurfaceCommon

2017-09-26 Thread Juan A. Suarez Romero
On Wed, 2017-09-06 at 15:07 +0100, Emil Velikov wrote: > On 5 August 2017 at 00:25, Emil Velikov wrote: > > From: Emil Velikov > > > > As mentioned in previous commit the negative tests in dEQP expect the > > arguments to be evaluated in particular order. > > > > Namely - first the dpy, then th

Re: [Mesa-dev] [Mesa-stable] [PATCH 2/2] egl/drm: set the VISUAL_TYPE alongside the VISUAL_ID

2017-09-26 Thread Juan A. Suarez Romero
On Tue, 2017-08-22 at 09:20 +0100, Daniel Stone wrote: > Hi, > > On 21 August 2017 at 18:30, Emil Velikov wrote: > > On 21 August 2017 at 15:44, Daniel Stone wrote: > > > My take on it is that the visual types are defined by the platform, > > > and 0 is a perfectly sensible visual type for a pla

Re: [Mesa-dev] [RFC PATCH] radeonsi: flush DB caches when a Z/stencil buffer is attached

2017-09-26 Thread Juan A. Suarez Romero
On Tue, 2017-07-25 at 17:56 +0200, Samuel Pitoiset wrote: > > On 07/25/2017 05:51 PM, Nicolai Hähnle wrote: > > On 25.07.2017 15:29, Samuel Pitoiset wrote: > > > This is a workaround which fixes a rendering issue with Dawn > > > Of War III in full bindless mode because a depth texture most > > > l

[Mesa-dev] XDC 2017 feedback

2017-09-26 Thread Daniel Vetter
Hi all, First again big thanks to Stéphane and Jennifer for organizing a great XDC. Like last year we'd like to hear feedback on how this year's XDC went, both the good (and what you'd like to see more of) and the not so good. Talk selection, organization, location, scheduling of talks, anything

Re: [Mesa-dev] [PATCH 3/3] radeonsi: fix border color translation for integer textures

2017-09-26 Thread Gustaw Smolarczyk
2017-09-26 16:46 GMT+02:00 Nicolai Hähnle : > From: Nicolai Hähnle > > This fixes the extremely unlikely case that an application uses > 0x8000 or 0x3f80 as border color for an integer texture and > helps in the also, but perhaps slightly less, unlikely case that 1 is > used as a border co

Re: [Mesa-dev] [PATCH] glx: use correct table offset for glAreTexturesResidentEXT

2017-09-26 Thread Juan A. Suarez Romero
On Tue, 2017-07-25 at 11:43 +0100, Emil Velikov wrote: > On 25 July 2017 at 09:12, Nicolai Hähnle wrote: > > On 21.07.2017 16:57, Emil Velikov wrote: > > > > > > From: Emil Velikov > > > > > > The correct offset is 322 as opposed to 332. > > > Broken since the rework of GET_DISPATCH back in ~20

Re: [Mesa-dev] [PATCH] glcpp: Avoid unnecessary call to strlen

2017-09-26 Thread Thomas Helland
I've now pushed the series, so feel free to rebase =) 2017-09-22 16:10 GMT+02:00 Ian Romanick : > This patch is > > Reviewed-by: Ian Romanick > > I have a couple patches that go on top of this particular patch, and I'd > rather rebase before I send them out for review. :) > > On 09/14/2017 03:39

Re: [Mesa-dev] [Mesa-stable] [PATCH] meta: Fix BlitFramebuffer temp texture setup

2017-09-26 Thread Juan A. Suarez Romero
On Tue, 2017-07-11 at 15:42 +0300, Ville Syrjälä wrote: > On Mon, Jul 10, 2017 at 11:42:18PM +0300, Andres Gomez wrote: > > Ville, has this patch fallen through the cracks ? > > Nope. I've still been looking into the issue whenever I've had a > few minutes to spare. I think I have it more or les f

[Mesa-dev] [PATCH v3 3/4] meson: Add build Intel "anv" vulkan driver

2017-09-26 Thread Dylan Baker
This allows building and installing the Intel "anv" Vulkan driver using meson and ninja, the driver has been tested against the CTS and has seems to pass the same series of tests (they both segfault when the CTS tries to run wayland wsi tests). There are still a mess of TODO, XXX, and FIXME commen

[Mesa-dev] [PATCH v3 4/4] meson: build "radv" vulkan driver for radeon hardware

2017-09-26 Thread Dylan Baker
This builds and installs, but I haven't had a chance to test it yet. v2: - enable radv by default - add shader cache support and enforce that it's built for radv v3: - Fix typo in meson_options (Nicholas) - strip trailing 'svn' from llvm version before setting the version preprocesso

[Mesa-dev] [PATCH v3 1/4] intel: use a flag instead of setting PYTHONPATH

2017-09-26 Thread Dylan Baker
Meson doesn't allow setting environment variables for custom targets, so we either need to not pass this as an environment variable or use a shell script to wrap the invocation. The chosen solution has the advantage of working for both autotools and meson. v2: - put rules back in top scope (Ken)

[Mesa-dev] [PATCH v3 2/4] util/ralloc: Don't define assert with magic member without DEBUG

2017-09-26 Thread Dylan Baker
It is possible to have DEBUG disabled but asserts on (NDEBUG(, which cannot build because these asserts work on members that are only present when DEBUG is on. Reviewed-by: Kenneth Graunke Signed-off-by: Dylan Baker --- src/util/ralloc.c | 8 1 file changed, 8 insertions(+) diff --git

Re: [Mesa-dev] [PATCH] i965: Convert brw->*_program into a brw->programs[i] array.

2017-09-26 Thread Kenneth Graunke
On Tuesday, September 26, 2017 1:13:18 AM PDT Alejandro Piñeiro wrote: > On 26/09/17 09:39, Kenneth Graunke wrote: > > diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c > > b/src/mesa/drivers/dri/i965/genX_state_upload.c > > index 612761601a2..2a99376e3c2 100644 > > --- a/src/mesa/drivers

Re: [Mesa-dev] [PATCH v2 7/7] i965: make use of nir linking

2017-09-26 Thread Kenneth Graunke
On Tuesday, September 26, 2017 2:54:28 AM PDT Timothy Arceri wrote: > On 26/09/17 17:50, Kenneth Graunke wrote: > > A couple more thoughts: > > > > 1. We're calling brw_nir_optimize even more now...it might make sense to > > drop it from brw_preprocess_nir, drop it here, and put it once in the

Re: [Mesa-dev] MESA and KOTOR

2017-09-26 Thread Federico Dossena
The crash is in GLU, and I'm 99% sure that it has to do with the format of that texture. I saw a patch from Miklòs Màté a while ago that changed something in src/mesa/state_tracker/st_atom_sampler.c to fix this (link: https://patchwork.freedesktop.org/patch/68298/). It never made it to master,

Re: [Mesa-dev] [PATCH mesa 6/6] scons: use python3-compatible string-check

2017-09-26 Thread Jose Fonseca
On 26/09/17 12:20, Ilia Mirkin wrote: On Tue, Sep 26, 2017 at 7:07 AM, Jose Fonseca wrote: On 25/09/17 14:30, Eric Engestrom wrote: I pushed the rest of the series. See below for discussion on this patch. On Wednesday, 2017-09-20 17:05:21 +, Jose Fonseca wrote: On 19/09/17 15:14, Eric

[Mesa-dev] [PATCH] glsl: do not set the 'smooth' qualifier by default on ES shaders

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle It leads to surprising states with integer inputs and outputs on vertex processing stages (e.g. geometry stages). Instead, rely on the driver to choose smooth interpolation by default. We still allow varyings to match when one stage declares it as smooth and the other declar

[Mesa-dev] [PATCH] st/va: use pipe transfer_map to upload mapped buffer

2017-09-26 Thread Leo Liu
The function pipe_buffer_map() is only for linear pipe buffer, with height as 0, and it's not for any 2D textures. Signed-off-by: Leo Liu Cc: mesa-sta...@lists.freedesktop.org Cc: Mark Thompson --- src/gallium/state_trackers/va/buffer.c | 12 +--- 1 file changed, 9 insertions(+), 3 dele

[Mesa-dev] [PATCH] radv: fix saved compute state when doing statistics/occlusion queries

2017-09-26 Thread Samuel Pitoiset
We are pushing 16-bytes of constants, so we have to save/restore the same amount of data to avoid data corruption. Signed-off-by: Samuel Pitoiset Cc: 17.2 --- src/amd/vulkan/radv_query.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_query.c b/src/am

Re: [Mesa-dev] [PATCH 2/2] i965: Implement ARB_indirect_parameters

2017-09-26 Thread Manolova, Plamena
Hi Ken, Thank you so much for reviewing and helping me out with this! I'll make the changes you suggested to both patches and resubmit. Thanks, Pam On Tue, Sep 26, 2017 at 3:32 AM, Kenneth Graunke wrote: > On Tuesday, August 29, 2017 9:24:01 AM PDT Plamena Manolova wrote: > > We can implement A

[Mesa-dev] [PATCH 1/3] radeonsi: clamp depth comparison value only for fixed point formats

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle The hardware usually does this automatically. However, we upgrade depth to Z32_FLOAT to enable TC-compatible HTILE, which means the hardware no longer clamps the comparison value for us. The only way to tell in the shader whether a clamp is required seems to be to communicat

[Mesa-dev] [PATCH 2/3] radeonsi: clamp border colors for upgraded depth textures

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle The hardware does this automatically for unorm formats, but we need to do it manually for unorm depth formats that have been upgraded to Z32_FLOAT. Fixes dEQP-GLES31.functional.texture.border_clamp.range_clamp.nearest_unorm_depth and others. Fixes: d4d9ec55c589 ("radeonsi:

[Mesa-dev] [PATCH 3/3] radeonsi: fix border color translation for integer textures

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle This fixes the extremely unlikely case that an application uses 0x8000 or 0x3f80 as border color for an integer texture and helps in the also, but perhaps slightly less, unlikely case that 1 is used as a border color. --- src/gallium/drivers/radeonsi/si_descriptors.c

[Mesa-dev] [PATCH 0/3] radeonsi: depth texture clamping and border color fixes

2017-09-26 Thread Nicolai Hähnle
Hi all, radeonsi can transparently upgrade unorm depth textures to float, which means that some of the depth value clamping that is usually performed in hardware must be done manually. Also, setting the border color for integer textures properly requires doing it slightly differently. This is som

[Mesa-dev] [PATCH 3/5] amd/common: fix build_cube_select

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle Fix the custom cube coord selection sequence to be identical to the hardware v_cubesc/tc and OpenGL spec. Affects texture sampling with user-provided derivatives. Fixes dEQP-GLES3.functional.shaders.texture_functions.texturegrad.* Cc: mesa-sta...@lists.freedesktop.org ---

[Mesa-dev] [PATCH 5/5] radeonsi/gfx9: fix geometry shaders without output vertices

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle Not that those are super common or useful, but hey! Fun corner cases of the API... Fixes dEQP-GLES31.functional.geometry_shading.emit.* Cc: mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/radeonsi/si_state_shaders.c | 8 +--- 1 file changed, 5 insertions(+),

[Mesa-dev] [PATCH 1/5] st/glsl_to_tgsi: fix a use-after-free in merge_two_dsts

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle Found by address sanitizer. The loop here tries to be safe, but in doing so, it ends up doing exactly the wrong thing: the safe foreach is for when the loop variable (inst) could be deleted and nothing else. However, this particular can delete inst's successor, but not inst

[Mesa-dev] [PATCH 4/5] amd/common: save an instruction in the build_cube_select sequence

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle Avoid a v_cndmask: the absolute value is free due to input modifiers. --- src/amd/common/ac_llvm_build.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 8c050f31a76..71468df

[Mesa-dev] [PATCH 2/5] st/glsl_to_tgsi: fix conditional assignments to packed shader outputs

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle Overriding the default (no-op) swizzle is clearly counter-productive, since the whole point is putting the destination register as one of the source operands so that it remains unmodified when the assignment condition is false. Fragment depth and stencil outputs are a specia

[Mesa-dev] [PATCH 0/5] st/mesa,radeonsi: various compiler fixes

2017-09-26 Thread Nicolai Hähnle
Hi all, There isn't much of a theme to this series, except that all those patches are vaguely compiler-related. Please review! Thanks, Nicolai -- src/amd/common/ac_llvm_build.c| 17 + .../drivers/radeonsi/si_state_shaders.c | 8 +--- src/mesa/state_tra

[Mesa-dev] [PATCH 1/3] gallium/radeon: fix a comment

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/gallium/drivers/radeon/cayman_msaa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/cayman_msaa.c b/src/gallium/drivers/radeon/cayman_msaa.c index 33f1040185a..ec6c49bafa0 100644 --- a/src/gallium/drivers/radeon/cayman

[Mesa-dev] [PATCH 3/3] radeonsi: move descriptor logs to after corresponding draw/compute packet

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle It has to happen after descriptor uploads since otherwise we'll print out the wrong GPU list / incorrectly claim descriptor corruption. --- src/gallium/drivers/radeonsi/si_compute.c| 7 +++ src/gallium/drivers/radeonsi/si_state_draw.c | 7 +++ 2 files changed, 6

[Mesa-dev] [PATCH 2/3] amd/common: remove ac_shader_abi::chip_class

2017-09-26 Thread Nicolai Hähnle
From: Nicolai Hähnle Redundant with the recently added ac_llvm_context::chip_class. --- src/amd/common/ac_nir_to_llvm.c | 21 ++--- src/amd/common/ac_shader_abi.h | 2 -- src/gallium/drivers/radeonsi/si_shader.c | 2 -- 3 files changed, 10 insertions(+), 15 d

Re: [Mesa-dev] [PATCH 00/11] glsl, tgsi, radeonsi: ldexp and frexp bug fixes and features

2017-09-26 Thread Nicolai Hähnle
Ping. On 16.09.2017 13:23, Nicolai Hähnle wrote: Hi all, This series was motivated by radeonsi failing some ldexp tests due to not handling denorms correctly and not handling overflows (which GLSL doesn't require, but GLSL ES does). The first patch fixes the GLSL IR lowering of ldexp() to hand

Re: [Mesa-dev] [PATCH v3 1/2] etnaviv: fix varying interpolation

2017-09-26 Thread Wladimir J. van der Laan
Hello Lucas, On Fri, Sep 22, 2017 at 11:27:36AM +0200, Lucas Stach wrote: > It seems that newer cores don't use the PA_ATTRIBUTES to decide if the > varying should bypass the flat shading, but derive this from the component > use. This fixes flat shading on GC880+. > > VARYING_COMPONENT_USE_POINT

Re: [Mesa-dev] [PATCH v2 7/7] i965: make use of nir linking

2017-09-26 Thread Jason Ekstrand
On September 26, 2017 4:05:04 AM Timothy Arceri wrote: On 26/09/17 17:50, Kenneth Graunke wrote: On Monday, September 25, 2017 6:23:13 PM PDT Timothy Arceri wrote: For now linking is just removing unused varyings between stages. shader-db results BDW: total instructions in shared programs:

Re: [Mesa-dev] [PATCH] [rfc] spirv/nir: handle casting in OpSampledImage

2017-09-26 Thread Jason Ekstrand
On Mon, Sep 25, 2017 at 7:36 PM, Dave Airlie wrote: > From: Dave Airlie > > %9903 = OpImageSampleDrefExplicitLod %float %14616 %14315 %16081 Lod > %float_0 > %14616 = OpSampledImage %510 %8499 %13137 > > %278 = OpTypeImage %float 2D 1 0 0 1 Unknown > %510 = OpTypeSampledImage %278 > > %8499 = Op

Re: [Mesa-dev] [PATCH 2/2] anv: add an assertion in genX(BeginCommandBuffer)

2017-09-26 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Tue, Sep 26, 2017 at 1:14 AM, Gwan-gyeong Mun wrote: > To check a valid usage requirement. > > Signed-off-by: Mun Gwan-gyeong > --- > src/intel/vulkan/genX_cmd_buffer.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/intel/vulkan/genX_cmd_buffer.c >

Re: [Mesa-dev] [PATCH 2/2] radeonsi: remove useless check in si_blit_decompress_color()

2017-09-26 Thread Samuel Pitoiset
On 09/26/2017 12:45 PM, Nicolai Hähnle wrote: Gert's suggestion makes sense. Apart from that, the series is Yeah, I will add an assert over there, thanks! Reviewed-by: Nicolai Hähnle On 22.09.2017 09:22, Samuel Pitoiset wrote: That's unnecessary to double-check that dcc_offset is not 0

Re: [Mesa-dev] [PATCH] egl/dri: link directly to libglapi.so

2017-09-26 Thread Eric Engestrom
On Tuesday, 2017-09-19 17:19:59 +, Emil Velikov wrote: > From: Emil Velikov > > In order to build EGL, one has to use shared glapi - libglapi.so. > > Thus the dlopen/dlsym dance is no longer needed and we can link to the > library directly. > > This allows us to remove a handful of platform

  1   2   >