Re: [Mesa-dev] [PATCH] glsl/linker: check same name is not used in block and outside

2018-01-31 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 30.01.2018 17:11, Juan A. Suarez Romero wrote: According with OpenGL GLSL 3.20 spec, section 4.3.9: "It is a link-time error if any particular shader interface contains: - two different blocks, each having no instance name, and each having a me

Re: [Mesa-dev] misc pahole repacking

2018-01-31 Thread Tapani Pälli
Reviewed-by: Tapani Pälli (I verified the 1st one and I trust you on the 2nd one.) BTW I witnessed pahole crashing when processing visit() methods of ir_print_visitor class, did you experience that? My pahole version is 1.9, it dies in /lib64/libdwarves.so.1 after some prints like: --- 8< -

Re: [Mesa-dev] Odd input issue with mesa 18-rcX

2018-01-31 Thread Ian Kumlien
On Tue, Jan 30, 2018 at 12:25 PM, Michel Dänzer wrote: > On 2018-01-29 10:34 AM, Ian Kumlien wrote: >> Hi, I know that this is not exactly the right place but I'm kinda >> dumbfounded... >> >> I run wayland with mesa on a radeon rx 480 graphics card - but it >> stopped working a while ago (been fo

Re: [Mesa-dev] [PATCH v2 5/7] disk cache: initialize cache path and index only when used

2018-01-31 Thread Jordan Justen
On 2018-01-30 23:17:04, Tapani Pälli wrote: > This patch makes disk_cache initialize path and index lazily so > that we can utilize disk_cache without a path using callback > functionality introduced by next patch. > > v2: unmap mmap and destroy queue only if index_mmap exists > > Signed-off-by:

Re: [Mesa-dev] [PATCH v3 6/7] disk cache: add callback functionality

2018-01-31 Thread Jordan Justen
On 2018-01-30 23:17:05, Tapani Pälli wrote: > v2: add disk_cache_has_key, disk_cache_put_key support > using blob cache (Nicolai, Jordan) > > v3: rename set_cb as put_cb to match existing naming (Timothy) > > Signed-off-by: Tapani Pälli > --- > src/util/disk_cache.c | 49 +++

Re: [Mesa-dev] [PATCH v2 7/7] i965: add __DRI2_BLOB support and set cache functions

2018-01-31 Thread Jordan Justen
On 2018-01-30 23:17:06, Tapani Pälli wrote: > v2: adjust to change that moved cache from ctx to screen > > Signed-off-by: Tapani Pälli > --- > src/mesa/drivers/dri/i965/intel_screen.c | 21 + > 1 file changed, 21 insertions(+) > > diff --git a/src/mesa/drivers/dri/i965/intel

Re: [Mesa-dev] [PATCH v2] meson: generate translations for driconf

2018-01-31 Thread Marc Dietrich
Am Dienstag, 30. Januar 2018, 00:34:18 CET schrieb Dylan Baker: > Quoting Marc Dietrich (2018-01-27 06:36:51) > > > Hi Dylan, > > > > Am Donnerstag, 25. Januar 2018, 20:32:23 CET schrieb Dylan Baker: > > > Currently meson implements the same logic as SCons for translations, > > > namely it doesn'

Re: [Mesa-dev] [PATCH 4/4] radv: repack some structures post pipeline rework.

2018-01-31 Thread Samuel Pitoiset
Series is: Reviewed-by: Samuel Pitoiset On 01/31/2018 12:41 AM, Dave Airlie wrote: From: Dave Airlie Bas's pipeline rework made me relook at the struct packing: radv_cmd_state: 984->968 radv_cmd_buffer: 2910->2896 radv_image: 1008->1000 radv_pipeline: 1640->1632 Signed-off-by: Dave Airlie

Re: [Mesa-dev] [PATCH] docs/features: mark EXT_semaphore(_fd) as DONE

2018-01-31 Thread Samuel Pitoiset
You also need to update docs/relnotes. On 01/31/2018 03:46 AM, Andres Rodriguez wrote: Support for these extensions is available in radeonsi. Signed-off-by: Andres Rodriguez --- docs/features.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features.txt b/doc

[Mesa-dev] [PATCH] ac/nir: fix emission of ffract for 64-bit

2018-01-31 Thread Samuel Pitoiset
Signed-off-by: Samuel Pitoiset --- src/amd/common/ac_nir_to_llvm.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index fd5989389b..04fe51935a 100644 --- a/src/amd/common/ac_nir_to_llvm

[Mesa-dev] [PATCH] radv: do not dump meta shader stats

2018-01-31 Thread Samuel Pitoiset
That's quite useless and that pollutes the output. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_pipeline.c | 30 +- src/amd/vulkan/radv_shader.h | 9 + 2 files changed, 18 insertions(+), 21 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c

Re: [Mesa-dev] [PATCH] Revert "mesa: add missing RGB9_E5 format in _mesa_base_fbo_format"

2018-01-31 Thread Juan A. Suarez Romero
Reviewed-by: Juan A. Suarez On Fri, 2018-01-26 at 12:10 +0100, Antia Puentes wrote: > This reverts commit 513c2263cbff45edb105c7b46e58f316e06746ab. > > _mesa_base_fbo_format_ is used to validate the internalformat > passed to RenderbufferStorage, which in the OpenGL 4.6 is said: > > "An INVALI

Re: [Mesa-dev] [PATCH] ac/nir: fix emission of ffract for 64-bit

2018-01-31 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Jan 31, 2018 at 11:23 AM, Samuel Pitoiset wrote: > Signed-off-by: Samuel Pitoiset > --- > src/amd/common/ac_nir_to_llvm.c | 23 --- > 1 file changed, 16 insertions(+), 7 deletions(-) > > diff --git a/src/amd/common/ac_nir_to_llvm.c b/

Re: [Mesa-dev] [PATCH libdrm] meson: fix libdrm_nouveau pkgconfig include directories

2018-01-31 Thread Eric Engestrom
On Thursday, 2018-01-25 16:14:45 -0800, Dylan Baker wrote: > Signed-off-by: Dylan Baker Reviewed-by: Eric Engestrom > --- > > I have tested building every mesa driver against this (with and without udev!) > so I'm pretty sure that this is the last pkgbuild problem. > > I'm sure I'll be sad in

[Mesa-dev] [PATCH] radv: Don't expose VK_KHX_multiview on android.

2018-01-31 Thread Bas Nieuwenhuizen
deqp does not allow any KHX extensions, and since deqp is included in android-cts, android does not allow any khx extensions. So disable VK_KHX_multiview on android. --- src/amd/vulkan/radv_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_exten

Re: [Mesa-dev] [PATCH] radv: Don't expose VK_KHX_multiview on android.

2018-01-31 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 01/31/2018 12:31 PM, Bas Nieuwenhuizen wrote: deqp does not allow any KHX extensions, and since deqp is included in android-cts, android does not allow any khx extensions. So disable VK_KHX_multiview on android. --- src/amd/vulkan/radv_extensions.py | 2 +- 1

Re: [Mesa-dev] [PATCH] renderonly: fix dumb BO allocation for non 32bpp formats

2018-01-31 Thread Daniel Stone
On 30 January 2018 at 14:22, Lucas Stach wrote: > Take into account the resource format, instead of applying a hardcoded > 32bpp. This not only over-allocates 16bpp formats, but also results in > a wrong stride being filled into the handle. Bikeshed: just use util_format_getblocksizebits()? getbl

Re: [Mesa-dev] [PATCH mesa 1/2] meson: centralise the libdrm versions information

2018-01-31 Thread Emil Velikov
On 30 January 2018 at 21:31, Dylan Baker wrote: > Quoting Emil Velikov (2018-01-30 10:43:06) >> On 29 January 2018 at 18:57, Dylan Baker wrote: >> > Quoting Eric Engestrom (2018-01-29 10:15:50) >> >> The big comment is taken from the equivalent block in configure.ac >> >> >> >> Signed-off-by: Eri

Re: [Mesa-dev] [PATCH 3/4] radv: reduce vk_format_descriptions memory usage.

2018-01-31 Thread Emil Velikov
On 30 January 2018 at 23:41, Dave Airlie wrote: > From: Dave Airlie > > This repacks to reduce the usage from 72->64 bytes, but also > makes the descriptions static const so they don't just stay in > the same unit. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/vk_format.h| 3 ++-

Re: [Mesa-dev] [PATCH mesa 1/2] meson: centralise the libdrm versions information

2018-01-31 Thread Eric Engestrom
On Tuesday, 2018-01-30 13:31:09 -0800, Dylan Baker wrote: > Quoting Emil Velikov (2018-01-30 10:43:06) > > On 29 January 2018 at 18:57, Dylan Baker wrote: > > > Quoting Eric Engestrom (2018-01-29 10:15:50) > > >> The big comment is taken from the equivalent block in configure.ac > > >> > > >> Sign

[Mesa-dev] [PATCH mesa v2 1/2] meson: centralise the libdrm versions information

2018-01-31 Thread Eric Engestrom
The big comment is taken from the equivalent block in configure.ac Signed-off-by: Eric Engestrom --- meson.build | 30 + src/gallium/targets/d3dadapter9/meson.build | 2 +- src/mesa/drivers/dri/meson.build| 2 +- 3 files c

[Mesa-dev] [PATCH mesa v2 2/2] meson: move dep_libdrm_intel with the other dep_libdrm_*

2018-01-31 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- meson.build | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index 30c2198d77dde383d7ac..a98410133d462028d670 100644 --- a/meson.build +++ b/meson.build @@ -211,11 +211,6 @@ if with_gallium_pl111 and not with_

Re: [Mesa-dev] [PATCH 3/4] radv: reduce vk_format_descriptions memory usage.

2018-01-31 Thread Eric Engestrom
On Wednesday, 2018-01-31 11:44:11 +, Emil Velikov wrote: > On 30 January 2018 at 23:41, Dave Airlie wrote: > > From: Dave Airlie > > > > This repacks to reduce the usage from 72->64 bytes, but also > > makes the descriptions static const so they don't just stay in > > the same unit. > > > > S

[Mesa-dev] [PATCH mesa 2/2] gallium/util: used designated initialisers in formats table

2018-01-31 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- src/gallium/auxiliary/util/u_format_table.py | 98 ++-- 1 file changed, 50 insertions(+), 48 deletions(-) diff --git a/src/gallium/auxiliary/util/u_format_table.py b/src/gallium/auxiliary/util/u_format_table.py index a09ae53cbc8966ba5bb1

[Mesa-dev] [PATCH mesa 1/2] radv: used designated initialisers in formats table

2018-01-31 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- src/amd/vulkan/vk_format_table.py | 22 -- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/amd/vulkan/vk_format_table.py b/src/amd/vulkan/vk_format_table.py index 36352b108d0b5220a901..f903e21f697dc42981ed 100644 --- a/src

[Mesa-dev] [Bug 7391] Memory leak detected in _mesa_HashInsert with cairo-dock

2018-01-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=7391 yanhua <78666...@qq.com> changed: What|Removed |Added CC||78666...@qq.com -- You are rec

Re: [Mesa-dev] [PATCH v2 2/7] egl: add support for EGL_ANDROID_blob_cache

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 07:17, Tapani Pälli wrote: > v2: cleanup, move callbacks to _egl_display struct (Emil Velikov) > adapt to earlier ctx->screen changes > > Signed-off-by: Tapani Pälli > --- > src/egl/drivers/dri2/egl_dri2.c | 25 + > src/egl/drivers/dri2/egl_dri2.

Re: [Mesa-dev] [PATCH 3/7] glsl/tests: move utility functions in cache_test

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 07:17, Tapani Pälli wrote: > Patch moves functions higher so that we can utilize them from > test_disk_cache_create which is modified by next patch. > > Signed-off-by: Tapani Pälli > --- I realise you're just moving stuff, so feel free to ignore the nits. > src/compiler/gl

Re: [Mesa-dev] [PATCH] radv: do not dump meta shader stats

2018-01-31 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Jan 31, 2018 at 11:40 AM, Samuel Pitoiset wrote: > That's quite useless and that pollutes the output. > > Signed-off-by: Samuel Pitoiset > --- > src/amd/vulkan/radv_pipeline.c | 30 +- > src/amd/vulkan/radv_shader.h | 9 +++

Re: [Mesa-dev] [PATCH v2 7/7] i965: add __DRI2_BLOB support and set cache functions

2018-01-31 Thread Tapani Pälli
On 31.01.2018 11:27, Jordan Justen wrote: On 2018-01-30 23:17:06, Tapani Pälli wrote: v2: adjust to change that moved cache from ctx to screen Signed-off-by: Tapani Pälli --- src/mesa/drivers/dri/i965/intel_screen.c | 21 + 1 file changed, 21 insertions(+) diff --git

Re: [Mesa-dev] [PATCH v3 6/7] disk cache: add callback functionality

2018-01-31 Thread Tapani Pälli
On 31.01.2018 11:18, Jordan Justen wrote: On 2018-01-30 23:17:05, Tapani Pälli wrote: v2: add disk_cache_has_key, disk_cache_put_key support using blob cache (Nicolai, Jordan) v3: rename set_cb as put_cb to match existing naming (Timothy) Signed-off-by: Tapani Pälli --- src/util/disk

Re: [Mesa-dev] [PATCH v2 2/7] egl: add support for EGL_ANDROID_blob_cache

2018-01-31 Thread Tapani Pälli
On 31.01.2018 13:58, Emil Velikov wrote: On 31 January 2018 at 07:17, Tapani Pälli wrote: v2: cleanup, move callbacks to _egl_display struct (Emil Velikov) adapt to earlier ctx->screen changes Signed-off-by: Tapani Pälli --- src/egl/drivers/dri2/egl_dri2.c | 25 ++

Re: [Mesa-dev] [PATCH] mesa: fix broken glGet*(GL_POLYGON_MODE) query

2018-01-31 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Jan 31, 2018 at 3:35 AM, Brian Paul wrote: > This reverts part of the patch which introduced the GLenum16 change. > Fixes a conform regression found by Roland. > > Fixes: f96a69f916aed405 ("mesa: replace GLenum with GLenum16 in > common structures (v4)") >

Re: [Mesa-dev] [PATCH v2 5/7] disk cache: initialize cache path and index only when used

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 07:17, Tapani Pälli wrote: > This patch makes disk_cache initialize path and index lazily so > that we can utilize disk_cache without a path using callback > functionality introduced by next patch. > > v2: unmap mmap and destroy queue only if index_mmap exists > > Signed-off-

Re: [Mesa-dev] [PATCH 1/4] mesa: don't flag _NEW_COLOR for KHR adv.blend if prog constant doesn't change

2018-01-31 Thread Marek Olšák
On Wed, Jan 31, 2018 at 4:34 AM, Ian Romanick wrote: > On 01/30/2018 07:48 AM, Marek Olšák wrote: >> From: Marek Olšák >> >> This only affects drivers that set DriverFlags.NewBlend. >> --- >> src/mesa/main/blend.c | 6 -- >> src/mesa/main/blend.h | 41 >> +++

Re: [Mesa-dev] [PATCH v2 2/7] egl: add support for EGL_ANDROID_blob_cache

2018-01-31 Thread Tapani Pälli
On 31.01.2018 15:07, Tapani Pälli wrote: On 31.01.2018 13:58, Emil Velikov wrote: On 31 January 2018 at 07:17, Tapani Pälli wrote: v2: cleanup, move callbacks to _egl_display struct (Emil Velikov) adapt to earlier ctx->screen changes Signed-off-by: Tapani Pälli ---   src/egl/drivers

Re: [Mesa-dev] [PATCH v2 5/7] disk cache: initialize cache path and index only when used

2018-01-31 Thread Tapani Pälli
On 31.01.2018 15:18, Emil Velikov wrote: On 31 January 2018 at 07:17, Tapani Pälli wrote: This patch makes disk_cache initialize path and index lazily so that we can utilize disk_cache without a path using callback functionality introduced by next patch. v2: unmap mmap and destroy queue only

Re: [Mesa-dev] [PATCH 4/7] glsl/tests: changes to test_disk_cache_create test

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 07:17, Tapani Pälli wrote: > - /* Before doing anything else, ensure that with > -* MESA_GLSL_CACHE_DISABLE set to true, that disk_cache_create returns > NULL. > -*/ > - setenv("MESA_GLSL_CACHE_DISABLE", "true", 1); > - cache = disk_cache_create("test", "make_

Re: [Mesa-dev] [PATCH 4/7] glsl/tests: changes to test_disk_cache_create test

2018-01-31 Thread Tapani Pälli
On 31.01.2018 15:41, Emil Velikov wrote: On 31 January 2018 at 07:17, Tapani Pälli wrote: - /* Before doing anything else, ensure that with -* MESA_GLSL_CACHE_DISABLE set to true, that disk_cache_create returns NULL. -*/ - setenv("MESA_GLSL_CACHE_DISABLE", "true", 1); - cache =

Re: [Mesa-dev] [PATCH 4/7] glsl/tests: changes to test_disk_cache_create test

2018-01-31 Thread Tapani Pälli
On 31.01.2018 15:51, Tapani Pälli wrote: On 31.01.2018 15:41, Emil Velikov wrote: On 31 January 2018 at 07:17, Tapani Pälli wrote: -   /* Before doing anything else, ensure that with -    * MESA_GLSL_CACHE_DISABLE set to true, that disk_cache_create returns NULL. -    */ -   setenv("MES

Re: [Mesa-dev] [PATCH v2 5/7] disk cache: initialize cache path and index only when used

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 13:39, Tapani Pälli wrote: > > > On 31.01.2018 15:18, Emil Velikov wrote: >> >> On 31 January 2018 at 07:17, Tapani Pälli wrote: >>> >>> This patch makes disk_cache initialize path and index lazily so >>> that we can utilize disk_cache without a path using callback >>> funct

[Mesa-dev] [PATCH] radv: do not insert shaders in cache when it's disabled

2018-01-31 Thread Samuel Pitoiset
When the application doesn't provide its own pipeline cache, the driver uses a in-memory cache but it shouldn't insert any entries when the cache is explicitely disabled by the user. Found while running my experimental pipeline-db tool with a ton of shaders, the memory footprint was just huge, and

Re: [Mesa-dev] [PATCH 4/7] glsl/tests: changes to test_disk_cache_create test

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 13:55, Tapani Pälli wrote: > > > On 31.01.2018 15:51, Tapani Pälli wrote: >> >> >> >> On 31.01.2018 15:41, Emil Velikov wrote: >>> >>> On 31 January 2018 at 07:17, Tapani Pälli wrote: >>> - /* Before doing anything else, ensure that with -* MESA_GLSL_CACHE_DI

Re: [Mesa-dev] [PATCH 12/20] mesa: implement buffer/texture barriers for semaphore signal/wait v2

2018-01-31 Thread Jon Turney
On 23/01/2018 18:05, Andres Rodriguez wrote: Make sure memory is accessible to the external client, for the specified memory object, before the signal/after the wait. v2: fixed flush order with respect to wait/signal emission Signed-off-by: Andres Rodriguez --- src/mesa/main/dd.h

Re: [Mesa-dev] [PATCH 4/6] meson: osx doesn't have librt, so don't require it

2018-01-31 Thread Emil Velikov
On 30 January 2018 at 20:27, Dylan Baker wrote: > Quoting Emil Velikov (2018-01-30 10:56:42) >> Hi Jon, >> >> On 28 January 2018 at 14:24, Jon Turney wrote: >> > --- >> > meson.build | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/meson.build b/meson.build >> >

[Mesa-dev] [Bug 104777] Attaching multiple shader objects for the same stage to a GLSL program triggers a linker error

2018-01-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104777 Anton Sudak changed: What|Removed |Added CC||anton.su...@gmail.com -- You are receivi

Re: [Mesa-dev] misc pahole repacking

2018-01-31 Thread Brian Paul
On 01/31/2018 01:48 AM, Tapani Pälli wrote: Reviewed-by: Tapani Pälli (I verified the 1st one and I trust you on the 2nd one.) BTW I witnessed pahole crashing when processing visit() methods of ir_print_visitor class, did you experience that? My pahole version is 1.9, it dies in /lib64/libdw

Re: [Mesa-dev] [PATCH 4/6] meson: osx doesn't have librt, so don't require it

2018-01-31 Thread Jon Turney
On 31/01/2018 15:21, Emil Velikov wrote: On 30 January 2018 at 20:27, Dylan Baker wrote: Quoting Emil Velikov (2018-01-30 10:56:42) Hi Jon, On 28 January 2018 at 14:24, Jon Turney wrote: --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/mes

Re: [Mesa-dev] [PATCH 4/6] meson: osx doesn't have librt, so don't require it

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 16:07, Jon Turney wrote: > On 31/01/2018 15:21, Emil Velikov wrote: >> >> On 30 January 2018 at 20:27, Dylan Baker wrote: >>> >>> Quoting Emil Velikov (2018-01-30 10:56:42) Hi Jon, On 28 January 2018 at 14:24, Jon Turney wrote: > > --- >

[Mesa-dev] [Bug 104836] Missing library link breaks mesa on Debian/ia64

2018-01-31 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104836 --- Comment #3 from Emil Velikov --- Having played with this at bit - it's a massive yak exercise. It's not a new bug by any means, so I'll lower it, slightly, on my priority list. Will CC you on the series when it's finished. -- You are rece

Re: [Mesa-dev] [PATCH 3/8] mesa: Put materials at the end of the generic block.

2018-01-31 Thread Brian Paul
On 01/31/2018 12:55 AM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich The materials are now moved to the end of the generic attributes block to the range 4-15. Before, the way the position and generic 0 attribute is handled was dependent on the presence and kind of the currently atta

Re: [Mesa-dev] [PATCH 1/8] vbo: Correctly handle attribute offsets in dlist draw.

2018-01-31 Thread Brian Paul
Hi Matthias, Nice work! It's nice to get rid of some of those attribute loops. The series looks good to me, just assorted nit-picks and comments on a few patches. -Brian On 01/31/2018 12:55 AM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich When executing a display list draw, fo

Re: [Mesa-dev] [PATCH 4/8] mesa: Track position/generic0 aliasing in the VAO.

2018-01-31 Thread Brian Paul
On 01/31/2018 12:55 AM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich Since the first material attribute no longer aliases with the generic0 attribute, only aliasing between generic0 and position is left and entirely dependent on the enabled state of the VAO. So introduce a gl_attribu

Re: [Mesa-dev] [PATCH 5/8] vbo: Use static const VERT_ATTRIB->VBO_ATTRIB maps.

2018-01-31 Thread Brian Paul
On 01/31/2018 12:55 AM, mathias.froehl...@gmx.net wrote: From: Mathias Fröhlich Instead of each context having its own map instance for this purpose, use a global static const map. Signed-off-by: Mathias Fröhlich --- src/mesa/vbo/vbo_context.c| 23 ++ src/mesa/vbo/vbo_exec.

Re: [Mesa-dev] [PATCH 1/8] vbo: Correctly handle attribute offsets in dlist draw.

2018-01-31 Thread Brian Paul
On 01/31/2018 09:54 AM, Brian Paul wrote: Hi Matthias, Nice work!  It's nice to get rid of some of those attribute loops. The series looks good to me, just assorted nit-picks and comments on a few patches. Oh, and it might be good to write a new piglit test or two to exercise the POS/GENERIC

[Mesa-dev] [PATCH] docs/features: mark EXT_semaphore(_fd) as DONE v2

2018-01-31 Thread Andres Rodriguez
Support for these extensions is available in radeonsi. v2: also updated relnotes Signed-off-by: Andres Rodriguez --- Let me know if the formatting for the relnotes is what is expected. I based it on the previous versions. docs/features.txt | 4 ++-- docs/relnotes/18.1.0.html | 3 ++-

Re: [Mesa-dev] [PATCH 12/20] mesa: implement buffer/texture barriers for semaphore signal/wait v2

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 15:20, Jon Turney wrote: > On 23/01/2018 18:05, Andres Rodriguez wrote: >> >> Make sure memory is accessible to the external client, for the specified >> memory object, before the signal/after the wait. >> >> v2: fixed flush order with respect to wait/signal emission >> >> Si

Re: [Mesa-dev] [PATCH 2/4] ac/shader: repack ac_shader_info

2018-01-31 Thread Nicolai Hähnle
Patches 1 & 2: Reviewed-by: Nicolai Hähnle On 31.01.2018 00:41, Dave Airlie wrote: From: Dave Airlie This reduces the size from 28->24 bytes. Signed-off-by: Dave Airlie --- src/amd/common/ac_shader_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/commo

Re: [Mesa-dev] [PATCH] docs/features: mark EXT_semaphore(_fd) as DONE v2

2018-01-31 Thread Samuel Pitoiset
Reviewed-by: Samuel Pitoiset On 01/31/2018 06:04 PM, Andres Rodriguez wrote: Support for these extensions is available in radeonsi. v2: also updated relnotes Signed-off-by: Andres Rodriguez --- Let me know if the formatting for the relnotes is what is expected. I based it on the previous ve

[Mesa-dev] [PATCH] mesa: remove usage of alloca in externalobjects.c

2018-01-31 Thread Andres Rodriguez
Don't want an overly large numBufferBarriers/numTextureBarriers to blow up the stack. Suggested-by: Emil Velikov Signed-off-by: Andres Rodriguez --- src/mesa/main/externalobjects.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/externalobjects.

[Mesa-dev] [PATCH mesa] gallium/util: used designated initialisers in formats table

2018-01-31 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- v2: I missed a few lines in v1 for some reason; converted as well --- src/gallium/auxiliary/util/u_format_table.py | 108 ++- 1 file changed, 55 insertions(+), 53 deletions(-) diff --git a/src/gallium/auxiliary/util/u_format_table.py b/s

Re: [Mesa-dev] [PATCH v2 17/24] anv: Use blorp_ccs_ambiguate instead of fast-clears

2018-01-31 Thread Nanley Chery
On Tue, Jan 30, 2018 at 05:14:39PM -0800, Jason Ekstrand wrote: > On Tue, Jan 30, 2018 at 5:03 PM, Nanley Chery wrote: > > > On Tue, Jan 30, 2018 at 04:25:59PM -0800, Jason Ekstrand wrote: > > > On Tue, Jan 30, 2018 at 2:54 PM, Nanley Chery > > wrote: > > > > > > > On Fri, Jan 19, 2018 at 03:47:

Re: [Mesa-dev] [PATCH] mesa: remove usage of alloca in externalobjects.c

2018-01-31 Thread Emil Velikov
On 31 January 2018 at 17:30, Andres Rodriguez wrote: > Don't want an overly large numBufferBarriers/numTextureBarriers to blow > up the stack. > > Suggested-by: Emil Velikov > Signed-off-by: Andres Rodriguez > --- Thanks for sorting this Andres. > src/mesa/main/externalobjects.c | 14 +

[Mesa-dev] [PATCH] mesa: remove usage of alloca in externalobjects.c v2

2018-01-31 Thread Andres Rodriguez
Don't want an overly large numBufferBarriers/numTextureBarriers to blow up the stack. v2: handle malloc errors Suggested-by: Emil Velikov Signed-off-by: Andres Rodriguez --- src/mesa/main/externalobjects.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/

Re: [Mesa-dev] [PATCH v2] i965: perform 2 uploads with dual slot *64*PASSTHRU formats on gen<8

2018-01-31 Thread Rafael Antognolli
Ugh, I had to read this change many times to understand it, but I do think it makes sense. The comments in the code helped a lot too. Reviewed-by: Rafael Antognolli On Mon, Jan 29, 2018 at 06:25:30PM +0200, Andres Gomez wrote: > The emission of vertex attributes corresponding to dvec3 and dvec4

Re: [Mesa-dev] [PATCH] mesa: remove usage of alloca in externalobjects.c v2

2018-01-31 Thread Andres Rodriguez
On 2018-01-31 01:25 PM, Andres Rodriguez wrote: Don't want an overly large numBufferBarriers/numTextureBarriers to blow up the stack. v2: handle malloc errors Someone forgot to update his patch correctly before sending it out... Suggested-by: Emil Velikov Signed-off-by: Andres Rodriguez

[Mesa-dev] [PATCH] mesa: remove usage of alloca in externalobjects.c v3

2018-01-31 Thread Andres Rodriguez
Don't want an overly large numBufferBarriers/numTextureBarriers to blow up the stack. v2: handle malloc errors v3: fix patch Suggested-by: Emil Velikov Signed-off-by: Andres Rodriguez --- src/mesa/main/externalobjects.c | 48 +++-- 1 file changed, 42 inserti

[Mesa-dev] [PATCH 1/2] nir: add nir_opt_shrink_load pass

2018-01-31 Thread Samuel Pitoiset
This is a very simple pass that just shrinks load_push_constant intrinsics when some components are unused. For now, it can just shrink vec4 to vec3, vec3 to vec2 and so on. Signed-off-by: Samuel Pitoiset --- src/compiler/Makefile.sources | 1 + src/compiler/nir/meson.build

[Mesa-dev] [PATCH 2/2] radv: run nir_opt_shrink_load

2018-01-31 Thread Samuel Pitoiset
LLVM can't shrink loads. Totals from affected shaders: SGPRS: 62528 -> 59955 (-4.11 %) VGPRS: 44708 -> 44616 (-0.21 %) Spilled SGPRs: 16 -> 8 (-50.00 %) Spilled VGPRs: 0 -> 0 (0.00 %) Private memory VGPRs: 0 -> 0 (0.00 %) Scratch size: 0 -> 0 (0.00 %) dwords per thread Code Size: 1355528 -> 135517

[Mesa-dev] [PATCH] i965: Bump official kernel requirement to Linux v3.9.

2018-01-31 Thread Kenneth Graunke
In commit 3f353342a6b6744773c26ed66b12afed42bd57af (present in 17.3.0) we started unconditionally using I915_EXEC_NO_RELOC, which was introduced in Linux v3.9. ChromeOS kernel 3.8 has backported this, so it should work too. Running on older kernels would likely result in every single batch being

[Mesa-dev] [PATCH] mesa: don't flag _NEW_COLOR for KHR adv.blend if prog constant doesn't change

2018-01-31 Thread Marek Olšák
From: Marek Olšák This only affects drivers that set DriverFlags.NewBlend. v2: - fix typo advanded -> advanced - return "enum gl_advanced_blend_mode" from _mesa_get_advanced_blend_sh_constant - don't call FLUSH_VERTICES twice --- src/mesa/main/blend.c | 6 -- src/

[Mesa-dev] [PATCH 3/5] st/mesa: don't translate blend state when it's disabled for a colorbuffer

2018-01-31 Thread Marek Olšák
From: Marek Olšák --- src/mesa/state_tracker/st_atom_blend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_atom_blend.c b/src/mesa/state_tracker/st_atom_blend.c index 8f644ba..62042a6 100644 --- a/src/mesa/state_tracker/st_atom_blend.c +++ b/sr

[Mesa-dev] [PATCH 2/5] st/mesa: don't check for ARB_draw_buffers_blend in update_blend

2018-01-31 Thread Marek Olšák
From: Marek Olšák If the GL API is missing, different blend functions can't be set through GL. --- src/mesa/state_tracker/st_atom_blend.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_blend.c b/src/mesa/state_tracker/st_

[Mesa-dev] [PATCH 5/5] st/mesa: generate blend state according to the number of enabled color buffers

2018-01-31 Thread Marek Olšák
From: Marek Olšák Non-MRT cases always translate blend state for 1 color buffer only. MRT cases only check and translate blend state for enabled color buffers. This also avoids an assertion failure in translate_blend for: dEQP-GLES31.functional.draw_buffers_indexed.overwrite_common.common_adv

[Mesa-dev] [PATCH 1/5] mesa: change ctx->Color.ColorMask into a 32-bit bitmask

2018-01-31 Thread Marek Olšák
From: Marek Olšák 4 bits per draw buffer, 8 draw buffers in total --> 32 bits. This is easier to work with. --- src/mesa/drivers/common/driverfuncs.c| 8 ++-- src/mesa/drivers/common/meta.c | 41 +++--- src/mesa/drivers/common/meta.h

[Mesa-dev] [PATCH 4/5] st/mesa: don't translate blend state when color writes are disabled

2018-01-31 Thread Marek Olšák
From: Marek Olšák --- src/mesa/state_tracker/st_atom_blend.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesa/state_tracker/st_atom_blend.c b/src/mesa/state_tracker/st_atom_blend.c index 62042a6..24ef09b 100644 --- a/src/mesa/state_tracker/st_atom_blend.c

[Mesa-dev] [PATCH] gallium: remove pipe_blend_state::dither

2018-01-31 Thread Marek Olšák
From: Marek Olšák very few drivers actually implement it. --- src/gallium/auxiliary/util/u_dump_state.c | 1 - src/gallium/auxiliary/vl/vl_compositor.c | 1 - src/gallium/auxiliary/vl/vl_idct.c | 1 - src/gallium/auxiliary/vl/vl_mc.c | 1 - src/gallium/au

Re: [Mesa-dev] [PATCH] gallium: remove pipe_blend_state::dither

2018-01-31 Thread Ilia Mirkin
nine uses it, GL uses it, a bunch of drivers implement it ... why is it being removed? On Wed, Jan 31, 2018 at 2:55 PM, Marek Olšák wrote: > From: Marek Olšák > > very few drivers actually implement it. > --- > src/gallium/auxiliary/util/u_dump_state.c | 1 - > src/gallium/auxiliary/vl/vl

Re: [Mesa-dev] [PATCH] gallium: remove pipe_blend_state::dither

2018-01-31 Thread Marek Olšák
On Wed, Jan 31, 2018 at 8:58 PM, Ilia Mirkin wrote: > nine uses it, GL uses it, a bunch of drivers implement it ... why is > it being removed? very few drivers actually implement it. Marek ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https:

Re: [Mesa-dev] [PATCH] gallium: remove pipe_blend_state::dither

2018-01-31 Thread Ilia Mirkin
On Wed, Jan 31, 2018 at 2:59 PM, Marek Olšák wrote: > On Wed, Jan 31, 2018 at 8:58 PM, Ilia Mirkin wrote: >> nine uses it, GL uses it, a bunch of drivers implement it ... why is >> it being removed? > > very few drivers actually implement it. nv30, a2xx-a4xx, etnaviv, i915, virgl. None of the m

Re: [Mesa-dev] [PATCH] gallium/st/clover: remove unused PIPE_SHADER_IR_LLVM

2018-01-31 Thread Marek Olšák
Acked-by: Marek Olšák Marek On Wed, Jan 31, 2018 at 6:37 AM, Timothy Arceri wrote: > On 31/01/18 15:05, Timothy Arceri wrote: >> >> This has been unused since 100796c15c3a. >> --- >> >> Please note this is not even compile tested as I don't have clover > >> 7.0.0 repo to go with my current ll

Re: [Mesa-dev] [PATCH] st/glsl_to_nir: add more nir opts to st_nir_opts()

2018-01-31 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Jan 31, 2018 at 3:00 AM, Timothy Arceri wrote: > I forgot to add that adding the opts also required some of the lowering > passes to be called slightly earlier. > > > On 31/01/18 12:58, Timothy Arceri wrote: >> >> All of the current gallium nir driver use

Re: [Mesa-dev] [PATCH 1/5] mesa: change ctx->Color.ColorMask into a 32-bit bitmask

2018-01-31 Thread Roland Scheidegger
Am 31.01.2018 um 20:55 schrieb Marek Olšák: > From: Marek Olšák > > 4 bits per draw buffer, 8 draw buffers in total --> 32 bits. > > This is easier to work with. > --- > src/mesa/drivers/common/driverfuncs.c| 8 ++-- > src/mesa/drivers/common/meta.c | 41 +++--

Re: [Mesa-dev] [PATCH] i965: Bump official kernel requirement to Linux v3.9.

2018-01-31 Thread Chris Wilson
Quoting Kenneth Graunke (2018-01-31 19:33:13) > In commit 3f353342a6b6744773c26ed66b12afed42bd57af (present in 17.3.0) > we started unconditionally using I915_EXEC_NO_RELOC, which was > introduced in Linux v3.9. ChromeOS kernel 3.8 has backported this, > so it should work too. > > Running on olde

Re: [Mesa-dev] [PATCH 1/5] mesa: change ctx->Color.ColorMask into a 32-bit bitmask

2018-01-31 Thread Marek Olšák
On Wed, Jan 31, 2018 at 9:31 PM, Roland Scheidegger wrote: > Am 31.01.2018 um 20:55 schrieb Marek Olšák: >> From: Marek Olšák >> >> 4 bits per draw buffer, 8 draw buffers in total --> 32 bits. >> >> This is easier to work with. >> --- >> src/mesa/drivers/common/driverfuncs.c| 8 ++--

Re: [Mesa-dev] [PATCH] st/glsl_to_nir: add more nir opts to st_nir_opts()

2018-01-31 Thread Eric Anholt
Timothy Arceri writes: > All of the current gallium nir driver use these optimisations but > they do so in their backends. Having these called in the backend > only can cause a number of problems: > > - Shader compile times are greater because the opts need to do > significant passes over all s

Re: [Mesa-dev] [PATCH] gallium: remove pipe_blend_state::dither

2018-01-31 Thread Eric Anholt
Marek Olšák writes: > From: Marek Olšák > > very few drivers actually implement it. I disagree. If the hardware supports it and the API supports it, then we should support it, too. I've got a branch around somewhere for vc4 dithering. signature.asc Description: PGP signature ___

Re: [Mesa-dev] [PATCH] gallium: remove pipe_blend_state::dither

2018-01-31 Thread Marek Olšák
On Jan 31, 2018 11:14 PM, "Eric Anholt" wrote: Marek Olšák writes: > From: Marek Olšák > > very few drivers actually implement it. I disagree. If the hardware supports it and the API supports it, then we should support it, too. I've got a branch around somewhere for vc4 dithering. Fair en

[Mesa-dev] [PATCH] r600: fix buffer resinfo opcode translation.

2018-01-31 Thread Dave Airlie
From: Dave Airlie The vtx operations never got translated, so things worked by 0 being equal to 0, translate them so we can use the proper buffer resinfo code. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/r600_asm.c| 2 +- src/gallium/drivers/r600/r600_shader.c | 2 +- 2 files c

Re: [Mesa-dev] [PATCH v3 06/24] anv/image: Add a helper for determining when fast clears are supported

2018-01-31 Thread Nanley Chery
On Mon, Jan 22, 2018 at 12:19:33AM -0800, Jason Ekstrand wrote: > v2 (Jason Ekstrand): > - Return an enum instead of a boolean > > v3 (Jason Ekstrand): > - Return ANV_FAST_CLEAR_NONE instead of false (Topi) > - Rename ANV_FAST_CLEAR_ANY to ANV_FAST_CLEAR_DEFAULT_VALUE > - Add documentation for

Re: [Mesa-dev] [PATCH] r600: fix buffer resinfo opcode translation.

2018-01-31 Thread Roland Scheidegger
Ah I see now how that's supposed to work... Previous to adding GET_BUFFER_RESINFO the op was just a fixed zero, and the op for this is the same on eg/cm (and we should not hit it with r600). But indeed that looks more like the code elsewhere... Reviewed-by: Roland Scheidegger Am 01.02.2018 um 01

[Mesa-dev] [PATCH] i965: Call prepare_external after implicit window-system MSAA resolves

2018-01-31 Thread Jason Ekstrand
This fixes some rendering corruption in a couple of Android apps that use window-system MSAA. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104741 Cc: mesa-sta...@lists.freedesktop.org Cc: Chad Versace --- src/mesa/drivers/dri/i965/brw_context.c | 15 +++ 1 file changed, 15

[Mesa-dev] [PATCH] r600/eg: make sure we allow vpm bit on other CF ops.

2018-01-31 Thread Dave Airlie
From: Dave Airlie the vpm bit wasn't being applied to the push/pop instructions. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/eg_asm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/eg_asm.c b/src/gallium/drivers/r600/eg_asm.c index f8651bd..c03a9d8 10

[Mesa-dev] [PATCH] r600/cayman: initial attempt at gl_HelperInvocation (v2)

2018-01-31 Thread Dave Airlie
From: Dave Airlie This is a cayman only patch, it doesn't appear that evergreen supports the ALU on VPM. I'll try and figure it out later. All I can say for this patch is it passes the piglit test and the CTS tests. This also disable sb for helper invocations until it can handle the special ALU

[Mesa-dev] [PATCH 4/9] glsl/lower_64bit: use the correct packing function for doubles

2018-01-31 Thread Dave Airlie
From: Dave Airlie This picks the correct double packing function. Signed-off-by: Dave Airlie --- src/compiler/glsl/lower_64bit.cpp | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compiler/glsl/lower_64bit.cpp b/src/compiler/glsl/lower_64bit.cpp index c7c6d1cb31..

[Mesa-dev] [PATCH 3/9] glsl/lower_64bit: extract non-64bit sources from vectors.

2018-01-31 Thread Dave Airlie
From: Dave Airlie In order to deal with conversions properly we need to extract non-64bit sources from vectors instead of expanding them as the 64-bit code does. We need non-64bit sources for the 32->64 conversion functions. Signed-off-by: Dave Airlie --- src/compiler/glsl/lower_64bit.cpp | 3

[Mesa-dev] [PATCH 5/9] glsl/lower_64bit: add ability to handle 32-bit sources.

2018-01-31 Thread Dave Airlie
From: Dave Airlie If this function saw a 32-bit source it would just return the IR without doing any conversion, this adds the ability to denote where 32-bit sources are expected and will be used in subsequent patches to add 32->64 conversions. Signed-off-by: Dave Airlie --- src/compiler/glsl/

[Mesa-dev] [PATCH 8/9] st/glsl: lower int->fp64 conversion if cap is set.

2018-01-31 Thread Dave Airlie
From: Dave Airlie This just enables the lowering if requested. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_t

[Mesa-dev] [PATCH 6/9] glsl/lower_64bit: add flag to denote we want to lower int/uint->double

2018-01-31 Thread Dave Airlie
From: Dave Airlie Some hardware has no conversion for these (cayman), so we want to lower them early using the common code. This adds a flag to allow the lowering pass to take these conversions into consideration. Signed-off-by: Dave Airlie --- src/compiler/glsl/ir_optimization.h | 2 ++ src/

[Mesa-dev] some initial fp64 lowering to fix some cayman tests

2018-01-31 Thread Dave Airlie
Elie has been working on soft-fp64 code in a branch for a while, and I've been slowly helping trying to get it in place so we can enable GL4.x on the evergreen GPUs. However I've discovered on cayman we don't have int->double or uint->double support, and my conversion functions which did (int->f32

  1   2   >