[Mesa-dev] [Bug 101378] interpolateAtSample check for input parameter is too strict

2017-09-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101378 Matias N. Goldberg changed: What|Removed |Added CC||dark_syl...@yahoo.com.ar --- Comme

[Mesa-dev] [PATCH 2/4] i965: Use atomic ops in get_new_program_id().

2017-09-23 Thread Kenneth Graunke
We have a nice utility function for this, which eliminates the need for locking stuff. This isn't really performance critical, but it's less code to use the atomic. p_atomic_inc_return does pre-increment rather than post-increment, so we change screen->program_id to be initialized to 0 instead of

[Mesa-dev] [PATCH 3/4] i965: Rename do_flush_locked to submit_batch().

2017-09-23 Thread Kenneth Graunke
do_flush_locked isn't a great name - especially given that there's no locking going on in our code relating to execbuf. --- src/mesa/drivers/dri/i965/intel_batchbuffer.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/

[Mesa-dev] [PATCH 1/4] i965: Convert brw_bufmgr to use C11 mutexes instead of pthreads.

2017-09-23 Thread Kenneth Graunke
There's no real advantage or disadvantage here, it's just for stylistic consistency with the rest of the codebase. --- src/mesa/drivers/dri/i965/brw_bufmgr.c | 35 +- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_bufmg

[Mesa-dev] [PATCH 4/4] i965: Drop the batch and limp along if execbuf fails.

2017-09-23 Thread Kenneth Graunke
The execbuf2 ioctl can fail for several reasons: - a catastrophic bug in Mesa (we're programming garbage commands) - repeated GPU hangs, where the kernel has stepped in and banned our process (or at least fd) from talking to the GPU anymore - some sort of transient failures (low memory, GPU rese

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

2017-09-23 Thread Nicholas Miell
On 09/23/2017 08:39 AM, Dylan Baker wrote: > diff --git a/meson_options.txt b/meson_options.txt > index e52cec31f11..854cba851d7 100644 > --- a/meson_options.txt > +++ b/meson_options.txt > @@ -20,8 +20,10 @@ > > option('platforms', type : 'string', value : 'x11,wayland', > desc

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

2017-09-23 Thread Bas Nieuwenhuizen
Hi Dylan, Awesome work. I noticed though that when llvm-config gives 6.0.0svn we don't strip the svn away when passing to HAVE_LLVM and MESA_LLVM_VERSION_PATCH, which results in compile errors. - Bas On Sun, Sep 24, 2017 at 12:08 AM, Dylan Baker wrote: > I have tested this, and as of v2 it actu

Re: [Mesa-dev] [PATCH 2/9] swr/rast: New GS state/context API

2017-09-23 Thread Cherniak, Bruce
> On Sep 21, 2017, at 7:46 PM, Tim Rowley wrote: > > One piglit regression, which was a false pass: > spec@glsl-1.50@execution@geometry@dynamic_input_array_index > --- > .../drivers/swr/rasterizer/core/frontend.cpp | 227 - > src/gallium/drivers/swr/rasterizer/core/stat

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

2017-09-23 Thread Dylan Baker
I have tested this, and as of v2 it actually works. I'll update the commitment message. Dylan On September 23, 2017 8:39:06 AM PDT, 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 enforc

Re: [Mesa-dev] [PATCH 2/8] glsl: mark xfb varyings as always active

2017-09-23 Thread Kenneth Graunke
On Friday, September 22, 2017 8:29:31 PM PDT Timothy Arceri wrote: > > On 23/09/17 02:59, Kenneth Graunke wrote: > > On Tuesday, September 12, 2017 4:37:29 PM PDT Timothy Arceri wrote: > >> This will be used by the nir linking pass so that we don't remove > >> otherwise unused varyings. > >> --- >

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

2017-09-23 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 Signed-off-by: Dylan Baker --- meson.build | 27 - meson_options.txt | 4 +- src

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

2017-09-23 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 v2 2/4] util/ralloc: Don't define assert with magic member without DEBUG

2017-09-23 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 v2 1/4] intel: use a flag instead of setting PYTHONPATH

2017-09-23 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)