[Mesa-dev] [PATCH] nvc0: bind a fake tess control program when there isn't one available

2015-07-25 Thread Ilia Mirkin
Apparently this is necessary in order for tess factors to work in a tess eval program without a tess control program bound. Probably because it uses the fake program's shader header to work out the number of patch constants. Fixes vs-tes-tessinner-tessouter-inputs Signed-off-by: Ilia Mirkin ---

Re: [Mesa-dev] [PATCH V2] glsl: fix atomic buffer index for bindings other than 0

2015-07-25 Thread Erik Faye-Lund
On Sat, Jul 25, 2015 at 4:24 PM, Timothy Arceri wrote: > Since commit c0cd5b var->data.binding was being used as a replacement > for atomic buffer index, but they don't have to be the same value they > just happen to end up the same when binding is 0. > > Now we store atomic buffer index in the un

[Mesa-dev] [PATCH 3/3 v4.1] clover: add clLinkProgramm (CL 1.2)

2015-07-25 Thread EdB
--- src/gallium/state_trackers/clover/api/program.cpp | 33 +++ 1 file changed, 33 insertions(+) diff --git a/src/gallium/state_trackers/clover/api/program.cpp b/src/gallium/state_trackers/clover/api/program.cpp index 553bc83..086f952 100644 --- a/src/gallium/state_trackers/c

Re: [Mesa-dev] Using the right context in st_texture_release_all_sampler_views()

2015-07-25 Thread Marek Olšák
FYI, Unreal Engine demos reproduce this issue too: https://wiki.unrealengine.com/Linux_Demos Marek On Thu, Jul 23, 2015 at 6:59 PM, Stéphane Marchesin wrote: > On Thu, Jul 23, 2015 at 9:55 AM, Alex Deucher wrote: >> On Wed, Jul 22, 2015 at 6:32 PM, Brian Paul wrote: >>> Hi Marek, >>> >>> This

[Mesa-dev] [PATCH 2/3] gallium: add flags parameter to pipe_screen::context_create

2015-07-25 Thread Marek Olšák
From: Marek Olšák This allows creating compute-only and debug contexts. --- src/gallium/auxiliary/util/u_tests.c | 2 +- src/gallium/auxiliary/vl/vl_mpeg12_decoder.c | 2 +- src/gallium/drivers/freedreno/a2xx/fd2_context.c | 2 +- src/gallium/drivers/freedreno/a2xx/fd2_cont

[Mesa-dev] [PATCH 1/3] gallium: add an interface for dumping debug driver state

2015-07-25 Thread Marek Olšák
From: Marek Olšák --- src/gallium/include/pipe/p_context.h | 12 src/gallium/include/pipe/p_defines.h | 5 + 2 files changed, 17 insertions(+) diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h index f89dae9..52f51f6 100644 --- a/src/gall

[Mesa-dev] [PATCH 3/3] gallium/ddebug: new pipe for hang detection and driver state dumping

2015-07-25 Thread Marek Olšák
From: Marek Olšák This is like identity or trace, but simpler. It doesn't wrap most states. Run with: GALLIUM_DDEBUG=1000 [executable] where "executable" is the app and "1000" is in miliseconds, meaning that the context will be considered hung if a fence fails to signal in 1000 ms. If that ha

Re: [Mesa-dev] [PATCH V2] glsl: fix atomic buffer index for bindings other than 0

2015-07-25 Thread Alejandro Piñeiro
Hi Timothy, thanks for CCing me. Just to say that it looks good to me. And FWIW, with this patch, the piglit subtest included on the second version of my patch (second version after the first review of Ian Romanick) here: http://lists.freedesktop.org/archives/piglit/2015-May/015979.html pass pro

[Mesa-dev] [PATCH V2] glsl: fix atomic buffer index for bindings other than 0

2015-07-25 Thread Timothy Arceri
Since commit c0cd5b var->data.binding was being used as a replacement for atomic buffer index, but they don't have to be the same value they just happen to end up the same when binding is 0. Now we store atomic buffer index in the unused var->data.index to avoid the extra memory of putting back th

[Mesa-dev] [Bug 91387] Mesa 10.6.1 implementation error: invalid target in _swrast_choose_texture_sample_func

2015-07-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91387 --- Comment #6 from Michael Godfrey --- The Octave developer for this code made a change based on: I attached a preliminary patch that avoids using the GL_SELECT mechanism when we are only looking for axes objects. This change prevents the seg

Re: [Mesa-dev] [PATCH 3/3] clover: add clLinkProgramm (CL 1.2)

2015-07-25 Thread Francisco Jerez
EdB writes: > --- > src/gallium/state_trackers/clover/api/program.cpp | 35 > ++ > src/gallium/state_trackers/clover/core/error.hpp | 7 + > src/gallium/state_trackers/clover/core/program.cpp | 4 +++ > src/gallium/state_trackers/clover/core/program.hpp | 1 + > ..

Re: [Mesa-dev] [PATCH] clover: Pass image attributes to the kernel

2015-07-25 Thread Francisco Jerez
Zoltan Gilian writes: > Read-only and write-only image arguments are recognized and > distinguished. > Attributes of the image arguments are passed to the kernel as implicit > arguments. > --- > src/gallium/state_trackers/clover/core/kernel.cpp | 46 ++- > src/gallium/state_trackers/clover

Re: [Mesa-dev] [PATCH] radeonsi: add fine derivate control (v2.1)

2015-07-25 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Sat, Jul 25, 2015 at 2:14 AM, Dave Airlie wrote: > From: Dave Airlie > > This adds support for fine derivatives and enables > ARB_derivative_control on radeonsi. > > (just fell out of my working out interpolation) > > v2: cleanup some bits, write a comment > v