Re: [Mesa-dev] [PATCH 00/84] Introduce gallium nine internal multithreading

2016-12-07 Thread Axel Davy
On 08/12/2016 00:38, Dieter Nützel wrote: Am 07.12.2016 23:54, schrieb Axel Davy: This patch adds internal multithreading to gallium nine. The goal is to offload almost all gallium nine calls (and some other work) to a worker thread. Hello Axel, really nice job! 'But' show us the 'numbers'..

[Mesa-dev] [PATCH 01/10] radv/ac: use build_gep0 instead of opencoding it.

2016-12-07 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index f644980..0ad9a7a 100644 --- a/src/amd/common/ac_nir_to_llvm

[Mesa-dev] radv cleanup series

2016-12-07 Thread Dave Airlie
While working on spilling, geom shaders and compute queues, I've built up a bunch of cleanups, so best to dequeue them early. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 04/10] radv/meta: clean up buffer->image code.

2016-12-07 Thread Dave Airlie
From: Dave Airlie Removes some unnecessary functions and pull some stuff out of the loop. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_bufimage.c | 42 +++-- 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/src/amd/vulkan/radv_meta_bufim

[Mesa-dev] [PATCH 05/10] radv/meta: split copyimage api into api and meta function

2016-12-07 Thread Dave Airlie
From: Dave Airlie This make it easier to add multiple queues later. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_copy.c | 34 +++--- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/src/amd/vulkan/radv_meta_copy.c b/src/amd/vulkan/radv_meta

[Mesa-dev] [PATCH 08/10] radv: split out a chunk of variant filling code.

2016-12-07 Thread Dave Airlie
From: Dave Airlie This code will have use for copy shaders etc. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_pipeline.c | 76 -- 1 file changed, 43 insertions(+), 33 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pi

[Mesa-dev] [PATCH 10/10] radv: fix warnings in ubo load code.

2016-12-07 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 5820e62..c2a74d4 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_ni

[Mesa-dev] [PATCH 09/10] radv/ac: pass a mask of array params not a number.

2016-12-07 Thread Dave Airlie
From: Dave Airlie This makes it easier to add new params before the array ones. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index

[Mesa-dev] [PATCH 03/10] radv/ac: don't pass nir to create_function

2016-12-07 Thread Dave Airlie
From: Dave Airlie This isn't needed for later things like geom shader copy shaders, we won't have NIR. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/comm

[Mesa-dev] [PATCH 07/10] radv/meta: don't pass rect into blit2d src function.

2016-12-07 Thread Dave Airlie
From: Dave Airlie Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_blit2d.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_meta_blit2d.c b/src/amd/vulkan/radv_meta_blit2d.c index 6e92f80..5a42fd8 100644 --- a/src/amd/vulkan/radv_meta_blit2d.c +

[Mesa-dev] [PATCH 06/10] radv/meta: cleanup image info setup.

2016-12-07 Thread Dave Airlie
From: Dave Airlie This just passes the subresource info in and uses it. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_copy.c | 32 +--- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/src/amd/vulkan/radv_meta_copy.c b/src/amd/vulkan/radv_me

[Mesa-dev] [PATCH 02/10] radv: add missing license file to radv_meta_bufimage.

2016-12-07 Thread Dave Airlie
From: Dave Airlie Just noticed this file was missing license and any explaination of what is in it. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_bufimage.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/src/amd/vulkan/radv_meta_bufimage.c b/src/amd

[Mesa-dev] [PATCH mesa 1/2] radv: name memory heaps

2016-12-07 Thread Eric Engestrom
Give explicit names to the various memory heaps, reducing the risk of bugs when adding or modifying them. While at it, use a static_assert to make sure we don't have too many memory heaps. Signed-off-by: Eric Engestrom --- I'm sure there are better names than these, but this patch is here to su

[Mesa-dev] [PATCH mesa 2/2] radv: name memory types

2016-12-07 Thread Eric Engestrom
Following the previous patch, give explicit names to the various memory types, reducing the risk of bugs when adding or modifying them. While at it, use a static_assert to make sure we don't have too many memory types. Signed-off-by: Eric Engestrom --- This one isn't really useful yet, but I th

Re: [Mesa-dev] Potentially EOL ilo gallium driver

2016-12-07 Thread Roland Scheidegger
I haven't seen the driver author's opinion on this yet, so it's probably fair to give him some more time to answer. It's not like this is really urgent... Roland Am 08.12.2016 um 01:11 schrieb Edward O'Callaghan: > Hi all, > > So I'll get right to the crux of this; In summary the consensus would

Re: [Mesa-dev] radv cleanup series

2016-12-07 Thread Edward O'Callaghan
This series is, Reviewed-by: Edward O'Callaghan On 12/08/2016 11:18 AM, Dave Airlie wrote: > While working on spilling, geom shaders and compute queues, I've built > up a bunch of cleanups, so best to dequeue them early. > > Dave. > > ___ > mesa-dev m

[Mesa-dev] [PATCH mesa] egl/x11: cleanup init code

2016-12-07 Thread Eric Engestrom
No functional change, just rewriting it in an easier-to-understand way. Signed-off-by: Eric Engestrom --- src/egl/drivers/dri2/platform_x11.c | 24 ++-- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2

Re: [Mesa-dev] Potentially EOL ilo gallium driver

2016-12-07 Thread Edward O'Callaghan
On 12/08/2016 11:28 AM, Roland Scheidegger wrote: > I haven't seen the driver author's opinion on this yet, so it's probably > fair to give him some more time to answer. It's not like this is really > urgent... Absolutely! > > Roland > > Am 08.12.2016 um 01:11 schrieb Edward O'Callaghan: >> H

[Mesa-dev] [PATCH mesa 1/2] egl: rename static functions to match convention

2016-12-07 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- src/egl/main/eglapi.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 9950a72..925e881 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -890,7 +890,7 @@ eg

[Mesa-dev] [PATCH mesa 2/2] egl: unexport _eglConvertIntsToAttribs

2016-12-07 Thread Eric Engestrom
Nobody else makes use of this function. We can always re-export it if someone ever needs it. Signed-off-by: Eric Engestrom --- src/egl/main/eglapi.c | 2 +- src/egl/main/eglapi.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c

[Mesa-dev] [PATCH] radv/ac: no need to pass nir to the post outputs handling

2016-12-07 Thread Dave Airlie
From: Dave Airlie We don't use the nir shader in here at all. Signed-off-by: Dave Airlie --- src/amd/common/ac_nir_to_llvm.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index bb52e8f..f5f7

Re: [Mesa-dev] Potentially EOL ilo gallium driver

2016-12-07 Thread Rob Clark
+author again.. no idea why list keeps loosing extra cc's.. it is kinda annoying.. BR, -R On Wed, Dec 7, 2016 at 7:28 PM, Roland Scheidegger wrote: > I haven't seen the driver author's opinion on this yet, so it's probably > fair to give him some more time to answer. It's not like this is really

Re: [Mesa-dev] [PATCH] radv/ac: no need to pass nir to the post outputs handling

2016-12-07 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan On 12/08/2016 11:55 AM, Dave Airlie wrote: > From: Dave Airlie > > We don't use the nir shader in here at all. > > Signed-off-by: Dave Airlie > --- > src/amd/common/ac_nir_to_llvm.c | 15 ++- > 1 file changed, 6 insertions(+), 9 deletions(-) > > d

[Mesa-dev] [PATCH v2] swr: [rasterizer common/core/jitter] fetch support for GL_FIXED

2016-12-07 Thread Tim Rowley
v2: use fmul(1/65536) instead of fdiv(65535) --- .../drivers/swr/rasterizer/common/formats.cpp | 104 ++--- .../drivers/swr/rasterizer/common/formats.h| 7 +- .../drivers/swr/rasterizer/core/format_traits.h| 90 +- .../drivers/swr/rasterizer/jitt

Re: [Mesa-dev] [PATCH 1/3] cso: don't release sampler states that are bound

2016-12-07 Thread Michel Dänzer
On 07/12/16 07:16 PM, Nicolai Hähnle wrote: > On 07.12.2016 08:50, Michel Dänzer wrote: >> On 06/12/16 10:24 PM, Marek Olšák wrote: >>> On Mon, Dec 5, 2016 at 10:05 AM, Michel Dänzer >>> wrote: On 03/12/16 05:38 AM, Marek Olšák wrote: > From: Marek Olšák > > This fixes random rad

Re: [Mesa-dev] Potentially EOL ilo gallium driver

2016-12-07 Thread Chia-I Wu
Hi all, Sorry for the slow response. I think it is fine to drop the driver :( Not because the driver is currently unmaintained, which is very true and is a very good reason, but that there is now a Intel Vulkan driver. Vulkan is somewhat as low-level as Gallium is (or even lower-level). The dr

[Mesa-dev] [PATCH 0/6] configure.ac: Bug fixes and related optimizations

2016-12-07 Thread Tobias Droste
Patches 1 to 4 (hopefully) fix https://bugs.freedesktop.org/show_bug.cgi?id=99010. Patch 5 and 6 are cosmetic changes. I build and run tested this with radeonsi, radv and llvmpipe and build tested with softpipe. @Emil: Please test and push if everything is ok. Tobias Droste (6): configure.a

[Mesa-dev] [PATCH 1/6] configure.ac: Rename MESA_LLVM to FOUND_LLVM

2016-12-07 Thread Tobias Droste
this renames MESA_LLVM to FOUND_LLVM and updates the config.log report to say if LLVM is found or not, to make clear that this does not mean that it is used. Signed-off-by: Tobias Droste --- configure.ac | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/

[Mesa-dev] [PATCH 4/6] configure.ac: Set and use HAVE_GALLIUM_LLVM define

2016-12-07 Thread Tobias Droste
Gallium code used HAVE_LLVM to check if it needs to compile code for LLVM in header and source files. With the new logic HAVE_LLVM is always set. Use extra define to figure out if LLVM is used. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99010 Signed-off-by: Tobias Droste --- config

[Mesa-dev] [PATCH 6/6] configure.ac: Don't check LLVM version in gallium_require_llvm

2016-12-07 Thread Tobias Droste
This is actually not needed because the version is checked later. Line 2609: if test "x$enable_gallium_llvm" == "xyes"; then llvm_require_version $LLVM_REQUIRED_GALLIUM "gallium" llvm_add_default_components "gallium" HAVE_GALLIUM_LLVM=xyes DEFINES="${DEFINES} -DHAVE_GALLIUM_LLVM"

[Mesa-dev] [PATCH 5/6] configure.ac: Make setting LLVM_LIBS a function

2016-12-07 Thread Tobias Droste
Make setting LLVM_LIBS a function, put it to the other LLVM related functions and call it if LLVM is used. Signed-off-by: Tobias Droste --- configure.ac | 109 +-- 1 file changed, 54 insertions(+), 55 deletions(-) diff --git a/configure.ac

[Mesa-dev] [PATCH 2/6] configure.ac: Only set LLVM_LIBS if LLVM is used

2016-12-07 Thread Tobias Droste
This renames llvm_check_version_for to llvm_require_version and let it set a variable to mark that LLVM will be used. Use this to make a usefull configure output and to only check if the libs are found in LLVM if it is actually used. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99010 S

[Mesa-dev] [PATCH 3/6] configure.ac: Only define HAVE_LLVM if LLVM is used

2016-12-07 Thread Tobias Droste
Make sure that HAVE_LLVM compiler define is only set if LLVM is actually used. Signed-off-by: Tobias Droste --- configure.ac | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a209d87e62..7362ecdfaf 100644 --- a/configure.ac +++ b/configur

[Mesa-dev] [Bug 99010] --disable-gallium-llvm no longer recognized

2016-12-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99010 --- Comment #14 from Tobias Droste --- Oops. Fixes sent to mailing list: https://lists.freedesktop.org/archives/mesa-dev/2016-December/137798.html You now get a output like this: llvm found: yes llvm-config: /llvm-conf

Re: [Mesa-dev] Potentially EOL ilo gallium driver

2016-12-07 Thread Michel Dänzer
On 08/12/16 09:59 AM, Rob Clark wrote: > +author again.. no idea why list keeps loosing extra cc's.. Mailman removes addresses from Cc which are subscribed to the list and have "Avoid duplicate copies of messages?" enabled in the list Subscription Options. -- Earthling Michel Dänzer

[Mesa-dev] [PATCH] nir: update opt_dead_cf to merge some consecutive ifs

2016-12-07 Thread Timothy Arceri
This handles two cases. The first is where the second ifs condition is a phi with constant srcs origination from the first if. The second is where both ifs have the same condtion. A limitation to merging is that currently this code will only merge the ifs if there is only a single phi instruction

Re: [Mesa-dev] [PATCH v2] swr: [rasterizer common/core/jitter] fetch support for GL_FIXED

2016-12-07 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Dec 7, 2016, at 7:16 PM, Tim Rowley wrote: > > v2: use fmul(1/65536) instead of fdiv(65535) > --- > .../drivers/swr/rasterizer/common/formats.cpp | 104 ++--- > .../drivers/swr/rasterizer/common/formats.h| 7 +- > .../drivers/swr/ra

Re: [Mesa-dev] [PATCH] swr: [rasterizer core/memory] Finish R24_UNORM_X8_TYPELESS for AVX512

2016-12-07 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Dec 7, 2016, at 5:55 PM, Rowley, Timothy O > wrote: > > This one-off specialization was missed. > --- > src/gallium/drivers/swr/rasterizer/core/backend.h | 4 +- > .../drivers/swr/rasterizer/memory/StoreTile.h | 46 +++--- > 2 files change

Re: [Mesa-dev] Potentially EOL ilo gallium driver

2016-12-07 Thread Pierre-Loup A. Griffais
On 12/07/2016 06:13 PM, Michel Dänzer wrote: On 08/12/16 09:59 AM, Rob Clark wrote: +author again.. no idea why list keeps loosing extra cc's.. Mailman removes addresses from Cc which are subscribed to the list and have "Avoid duplicate copies of messages?" enabled in the list Subscription O

Re: [Mesa-dev] Potentially EOL ilo gallium driver

2016-12-07 Thread Michel Dänzer
On 08/12/16 11:53 AM, Pierre-Loup A. Griffais wrote: > On 12/07/2016 06:13 PM, Michel Dänzer wrote: >> On 08/12/16 09:59 AM, Rob Clark wrote: >>> +author again.. no idea why list keeps loosing extra cc's.. >> >> Mailman removes addresses from Cc which are subscribed to the list and >> have "Avoid d

Re: [Mesa-dev] [PATCH] gallivm: use getHostCPUFeatures on x86/llvm-4.0+.

2016-12-07 Thread Michel Dänzer
On 08/12/16 12:02 AM, Roland Scheidegger wrote: > The bug in llvm has been fixed, can you confirm lp_test_format passes again? Yep, it does, thanks! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X develop

Re: [Mesa-dev] [PATCH 1/3] gallium: add renderonly library

2016-12-07 Thread Alexandre Courbot
On 11/30/2016 10:44 PM, Christian Gmeiner wrote: > This a very lightweight library to add basic support for > renderonly GPUs. It does all the magic regarding in/exporting > buffers etc. This library will likely break android support and > hopefully will get replaced with a better solution based on

<    1   2   3