Re: [Mesa-dev] [PATCH 2/8] radeon: add basic register setup for per-sample shading

2014-05-12 Thread Michel Dänzer
On 07.05.2014 23:00, Marek Olšák wrote: > From: Marek Olšák > > Only for Cayman, SI, CIK. [...] > diff --git a/src/gallium/drivers/radeon/r600d_common.h > b/src/gallium/drivers/radeon/r600d_common.h > index 1172af0..fa6131f 100644 > --- a/src/gallium/drivers/radeon/r600d_common.h > +++ b/src/g

[Mesa-dev] [PATCH V2 0/6] support packing of arrays of arrays

2014-05-12 Thread Timothy Arceri
V2: The main change in v2 is adding a convenience function to avoid code like this: while (check_type->is_array()) check_type = check_type->element_type(); and if (type->is_record() || (type->is_array() && type->fields.array->is_record()) they can now support arrays of arr

[Mesa-dev] [PATCH 6/6] glsl: avoid hitting assert for arrays of arrays

2014-05-12 Thread Timothy Arceri
Also add TODO comment about adding proper support Signed-off-by: Timothy Arceri --- src/glsl/ir_set_program_inouts.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/ir_set_program_inouts.cpp b/src/glsl/ir_set_program_inouts.cpp index 5163eb2..779cf2a 100644 --- a/src/glsl/i

[Mesa-dev] [PATCH 4/6] glsl: support packing of arrays of arrays

2014-05-12 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/lower_packed_varyings.cpp | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/glsl/lower_packed_varyings.cpp b/src/glsl/lower_packed_varyings.cpp index e865474..b641d6d 100644 --- a/src/glsl/lower_packed_varyings.cpp +++ b/sr

[Mesa-dev] [PATCH 3/6] glsl: replace while loop with new convenience function

2014-05-12 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/ast_to_hir.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 7516c33..3529314 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -3390,9 +3390,7 @@ ast_de

[Mesa-dev] [PATCH 5/6] glsl: the number of samplers is already calculated so use it

2014-05-12 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/link_uniforms.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp index 29dc0b1..c7147e0 100644 --- a/src/glsl/link_uniforms.cpp +++ b/src/glsl/link_uniforms.cpp @@ -308,8 +308

[Mesa-dev] [PATCH 2/6] glsl: add function to return outermost array type

2014-05-12 Thread Timothy Arceri
This will avoid a bunch of code when implementing arrays of arrays support. Signed-off-by: Timothy Arceri --- src/glsl/glsl_types.h | 16 1 file changed, 16 insertions(+) diff --git a/src/glsl/glsl_types.h b/src/glsl/glsl_types.h index dca5492..51147e9 100644 --- a/src/glsl/gls

[Mesa-dev] [PATCH 1/6] glsl: calculate component size for arrays of arrays when varying packing disabled

2014-05-12 Thread Timothy Arceri
Signed-off-by: Timothy Arceri --- src/glsl/link_varyings.cpp | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 45f1b10..5a18e40 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp

[Mesa-dev] [Bug 78581] OpenCL: clBuildProgram prints error messages directly rather than storing them

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78581 --- Comment #1 from Tom Stellard --- I though this was working. Can you provide and example of the output when a shader fails to compile. -- You are receiving this mail because: You are the assignee for the bug. ___

Re: [Mesa-dev] [PATCH v2 1/3] gallium: add bit to pipe_blit_info to leave current query enabled

2014-05-12 Thread Roland Scheidegger
Am 11.05.2014 02:34, schrieb Ilia Mirkin: > Previously the implication was that queries should be disabled during > blits. However glBlitFramebuffer() is supposed to obey the current > query, and this new bit will indicate that to the driver. > > Signed-off-by: Ilia Mirkin > Cc: "10.2" > --- >

[Mesa-dev] [Bug 78604] New: swrast/radeonsi: Supertuxkart 0.8.1 xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 Priority: medium Bug ID: 78604 Assignee: mesa-dev@lists.freedesktop.org Summary: swrast/radeonsi: Supertuxkart 0.8.1 xserver segfault Severity: normal Classification: Unclassified

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #1 from Ilia Mirkin --- I'm guessing you meant http://cgit.freedesktop.org/mesa/mesa/commit/?id=1db993f2fe1c2b43a9658efba6eac93665bb859c Can you double-check the results of your bisect? This commit adds support for some new opcodes

Re: [Mesa-dev] [PATCH v2 1/3] gallium: add bit to pipe_blit_info to leave current query enabled

2014-05-12 Thread Ilia Mirkin
On Mon, May 12, 2014 at 9:53 AM, Roland Scheidegger wrote: > Am 11.05.2014 02:34, schrieb Ilia Mirkin: >> Previously the implication was that queries should be disabled during >> blits. However glBlitFramebuffer() is supposed to obey the current >> query, and this new bit will indicate that to the

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #2 from smoki --- Created attachment 98926 --> https://bugs.freedesktop.org/attachment.cgi?id=98926&action=edit log Yes i doublechecked it, 1db993f2fe1c2b43a9658efba6eac93665bb859c introduce this bug, but ab4927f3e04918fd8a53c2d9

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #3 from Ilia Mirkin --- (In reply to comment #2) > Created attachment 98926 [details] > log > > > Yes i doublechecked it, 1db993f2fe1c2b43a9658efba6eac93665bb859c introduce > this bug, but ab4927f3e04918fd8a53c2d91be4dfc65fe9782d w

[Mesa-dev] [Bug 57013] Enable --without-glut

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57013 --- Comment #3 from Drew Moseley --- (In reply to comment #2) > Created attachment 98768 [details] [review] > Updated patch. > > I think embedding "/lib" in the GLUT_LIBS definition makes this not work on > 64-bit systems that use /lib64. OK,

[Mesa-dev] [v2] Meta path for gen8 stencil

2014-05-12 Thread Topi Pohjolainen
In addition to first version there is now also path for miptree updownsampling. While the relevant piglit tests don't crash on BDW anymore, they do not pass either - it seems that there are still SRGB blits needed that on previous hardware are covered by blorp. Using the stencil texturing support o

[Mesa-dev] [v2 1/8] i965/wm: Surface state overrides for configuring w-tiled as y-tiled

2014-05-12 Thread Topi Pohjolainen
v2: Use intel_mipmap_tree::total_width in order to get correct alignment automatically. Also use "mt->total_height / mt->physical_depth0" as surface height allowing hardware to offset to correct slice. Cc: "10.2" Signed-off-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke (v1) --- src

[Mesa-dev] [v2 7/8] i965/meta: Stencil blit for miptree updownsampling

2014-05-12 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/brw_context.h | 4 +++ src/mesa/drivers/dri/i965/brw_meta_stencil_blit.c | 34 +++ 2 files changed, 38 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_

[Mesa-dev] [v2 3/8] i965: Extend brw_get_rb_for_first_slice() for specified level/layer

2014-05-12 Thread Topi Pohjolainen
v2: Configure stencil directly for final dimensions instead of adjusting bit by bit for tiling, mip level and msaa. Cc: "10.2" Signed-off-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke (v1) --- src/mesa/drivers/dri/i965/brw_context.h | 4 +++ src/mesa/drivers/dri/i965/brw_met

[Mesa-dev] [v2 4/8] meta: Refactor state save/restore for framebuffer texture blits

2014-05-12 Thread Topi Pohjolainen
Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/common/meta.h | 15 ++ src/mesa/drivers/common/meta_blit.c | 59 +++-- 2 files changed, 52 insertions(+), 22 deletions(-) diff --git a/src/mesa/drivers/common/meta.h b/src/mesa/drivers/common/meta.h

[Mesa-dev] [v2 2/8] i965/gen8: Surface state overriding for stencil

2014-05-12 Thread Topi Pohjolainen
v2: Allow hardware to offset accesses to individual layers. Also leave the mip-level overriding for the creator of the intel renderbuffer to handle. Merged with "i965/gen8: Allow stencil buffers to be configured as single sampled" Ken: I left the "_mesa_problem()" still in place. I thi

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #4 from smoki --- Builded it with --enable-debug, but get the same message in Xorg.0.log. Sounds odd but who knows it just reporducable here, Athlon 5350 and Debian Sid 32bit, maybe someone can reproduce it too, this is the game:

[Mesa-dev] [v2 5/8] i965/meta: Stencil blits

2014-05-12 Thread Topi Pohjolainen
v2: Create the intel renderbuffer with level hardcoded to zero instead of overriding it in the surface state configuration. Also moved the dimension adjustments for tiling, mip level, msaa into the render buffer creation. Finally prepares for another blit path needed for miptree upd

[Mesa-dev] [v2 6/8] i965/fb: Use meta path for stencil blits

2014-05-12 Thread Topi Pohjolainen
This is effective only on gen8 for now as previous generations still go through blorp. Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_fbo.c | 9 + 1 file changed, 9 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_fbo.c b/src/mesa/drivers/dri/i965/intel_f

[Mesa-dev] [v2 8/8] i965/fb: Use meta path for stencil up/downsampling

2014-05-12 Thread Topi Pohjolainen
--- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index b23fddf..88bd8f0 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tr

Re: [Mesa-dev] [PATCH] i965: Don't _swrast_BlitFramebuffer when doing CopyTexSubImage.

2014-05-12 Thread Eric Anholt
Kenneth Graunke writes: > The point of copytexsubimage_using_blit_framebuffer is to use a hardware > accelerated BlitFramebuffer path. If that fails, we shouldn't do a > swrast blit---we should try our CTSI fallback code. > > This is especially important for i965 and GLES, where we don't even >

Re: [Mesa-dev] [PATCH 2/8] radeon: add basic register setup for per-sample shading

2014-05-12 Thread Marek Olšák
On Mon, May 12, 2014 at 9:54 AM, Michel Dänzer wrote: > On 07.05.2014 23:00, Marek Olšák wrote: >> From: Marek Olšák >> >> Only for Cayman, SI, CIK. > > [...] > >> diff --git a/src/gallium/drivers/radeon/r600d_common.h >> b/src/gallium/drivers/radeon/r600d_common.h >> index 1172af0..fa6131f 1006

Re: [Mesa-dev] [Mesa-users] Problem with ARB_copy_buffer on Mesa 9.2.4

2014-05-12 Thread Ian Romanick
Carl (the stable branch maintainer) doesn't have plans to do another 10.0.x release. That said, if the fix is found (by bisecting), it might still get picked to the branch. If Fedora is shipping 9.2 or 10.0, they might get the update. Dunno. On 05/06/2014 11:01 AM, Benjamin Bellec wrote: > Hell

Re: [Mesa-dev] [PATCH] mesa: Dump ARB_vp/fp source and IR when MESA_GLSL=dump.

2014-05-12 Thread Ian Romanick
On 05/11/2014 11:03 PM, Kenneth Graunke wrote: > As far as I can tell, Mesa hasn't had a convenient way to dump ARB_vp/fp > source until now. Using MESA_GLSL=dump is convenient, since it means > you can use a single environment variable to dump a program's shaders, > no matter which language they'

Re: [Mesa-dev] [PATCH] ralloc: Omit detailed license information about talloc.

2014-05-12 Thread Ian Romanick
On 05/09/2014 02:55 AM, jfons...@vmware.com wrote: > From: José Fonseca > > That information misleads source code auditing tools to think that > ralloc itself is released under LGPL v3. > > Instead, simply state talloc is not licensed under a permissive license. > --- > src/glsl/ralloc.h | 7 ++

Re: [Mesa-dev] [PATCH 09/13] meta: Refactor binding of renderbuffer as texture image

2014-05-12 Thread Ian Romanick
Reviewed-by: Ian Romanick On 05/09/2014 01:28 AM, Topi Pohjolainen wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/common/meta.h | 7 > src/mesa/drivers/common/meta_blit.c | 70 > + > 2 files changed, 47 insertions(+), 30 deletio

Re: [Mesa-dev] [PATCH 10/13] meta: Refactor configuration of renderbuffer sampling

2014-05-12 Thread Ian Romanick
Reviewed-by: Ian Romanick On 05/09/2014 01:28 AM, Topi Pohjolainen wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/common/meta.h | 5 + > src/mesa/drivers/common/meta_blit.c | 38 > - > 2 files changed, 30 insertions(+), 13 deleti

Re: [Mesa-dev] [v2 4/8] meta: Refactor state save/restore for framebuffer texture blits

2014-05-12 Thread Ian Romanick
Reviewed-by: Ian Romanick On 05/12/2014 08:42 AM, Topi Pohjolainen wrote: > Signed-off-by: Topi Pohjolainen > --- > src/mesa/drivers/common/meta.h | 15 ++ > src/mesa/drivers/common/meta_blit.c | 59 > +++-- > 2 files changed, 52 insertions(+), 22 d

Re: [Mesa-dev] [PATCH] glsl: the number of samplers is already calculated so use it

2014-05-12 Thread Ian Romanick
Reviewed-by: Ian Romanick On 05/11/2014 05:25 AM, Timothy Arceri wrote: > Signed-off-by: Timothy Arceri > --- > src/glsl/link_uniforms.cpp | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/src/glsl/link_uniforms.cpp b/src/glsl/link_uniforms.cpp > index 29dc0b1..cd231cb

Re: [Mesa-dev] [PATCH 08/13] meta: Merge compiling and linking of blit program

2014-05-12 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick For 10.3, I think we should look to migrate meta to using separate shader objects and explicit attrib locations... or at least make some short-cut functions to reduce the number of calls made in meta. On 05/09/2014 01:28 AM, Topi Pohjolainen wrote: > Sign

Re: [Mesa-dev] [PATCH] glsl: Rename linker's is_varying_var

2014-05-12 Thread Ian Romanick
Reviewed-by: Ian Romanick On 05/08/2014 04:28 PM, Chris Forbes wrote: > Both the ast->IR and linker have functions with this name, but different > behavior. > > Rename the linker's version to var_counts_against_varying_limit to be > closer to what it is actually used for. > > Suggested by Ian a

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #5 from smoki --- Just tried 64bit variant and that works, so cannot reproduce it on 64bit Debian, using 64bit supertuxkart binary... seems like some kind of 32bit only issue :). -- You are receiving this mail because: You are the

Re: [Mesa-dev] How user space applications load registers on HSW?

2014-05-12 Thread Kenneth Graunke
On 05/12/2014 01:02 AM, Yang, Rong R wrote: > Hi, Ken, > > Thanks for your patch. But how do you release your driver on the HSW > products? If can't LRI/LRM from userspace batches, almost all of > OpenCL application can't run. So if I want to announce that the > OpenCL driver support HSW, it must

[Mesa-dev] [Bug 78581] OpenCL: clBuildProgram prints error messages directly rather than storing them

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78581 --- Comment #2 from Luke-Jr --- (In reply to comment #1) > I though this was working. Can you provide and example of the output when a > shader fails to compile. With my current setup, what happens seems to be LLVM tries to format FROM unalloca

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 (32bit) xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 smoki changed: What|Removed |Added Summary|swrast/radeonsi:|swrast/radeonsi: |Supertuxkart

Re: [Mesa-dev] [PATCH] i965: Don't _swrast_BlitFramebuffer when doing CopyTexSubImage.

2014-05-12 Thread Chris Forbes
Reviewed-by: Chris Forbes On Tue, May 13, 2014 at 4:36 AM, Eric Anholt wrote: > Kenneth Graunke writes: > >> The point of copytexsubimage_using_blit_framebuffer is to use a hardware >> accelerated BlitFramebuffer path. If that fails, we shouldn't do a >> swrast blit---we should try our CTSI fa

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 (32bit) xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 Benjamin Bellec changed: What|Removed |Added CC||b.bel...@gmail.com --- Comment #6 from

[Mesa-dev] [Bug 78581] OpenCL: clBuildProgram prints error messages directly rather than storing them

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78581 --- Comment #3 from Tom Stellard --- Did you upgrade llvm and clang at the same time? Did you do a clean rebuild of Mesa after upgrading? Mesa statically links with clang, so you need to make sure the clover is completely rebuilt after you upgr

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 (32bit) xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #7 from Benjamin Bellec --- Hum... in fact Steam games doesn't work anymore too, eg. Left 4 Dead 2 or Team Fortress 2. The problem is the same from the log (unable to load the driver). -- You are receiving this mail because: You are

[Mesa-dev] [PATCH] clover: Prevent Clang from printing number of errors and warnings to stderr.

2014-05-12 Thread Tom Stellard
https://bugs.freedesktop.org/show_bug.cgi?id=78581 CC: "10.1 10.2" --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp inde

Re: [Mesa-dev] [PATCH] i965/fs: Add pass to rename registers to break live ranges.

2014-05-12 Thread Eric Anholt
Eric Anholt writes: > Matt Turner writes: > >> From: Kenneth Graunke >> >> The pass breaks live ranges of virtual registers by allocating new >> registers when it sees an assignment to a virtual GRF it's already seen >> written. >> >> total instructions in shared programs: 1656292 -> 1651898 (-

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 (32bit) xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #8 from Ilia Mirkin --- (In reply to comment #6) > I can reproduce this issue on Evergreen. > The information provided by "smoki" seems correct. > > The 64-bit game provided by Fedora 19 works fine with current master. > But the 32-b

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 (32bit) xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #9 from Tobias Droste --- Yes it's the same issue. Delete 'libgcc_s.so.1' from the bin folder in supertuxkart to make it use the system one. For me it also reliable crashes X if I use the 'libgcc_s.so.1' supertuxkart provides. Btw. I

[Mesa-dev] [Bug 78604] swrast/radeonsi: Supertuxkart 0.8.1 (32bit) xserver segfault

2014-05-12 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78604 --- Comment #10 from smoki --- Ilia indeed it is odd, but it does cause xserver to crash :). I investigated this further and both 64bit and 32bit version shiped in Debian does not have this bug ;). It happens with that 32bit 0.8.1 game downloa

Re: [Mesa-dev] [PATCH 08/13] meta: Merge compiling and linking of blit program

2014-05-12 Thread Kenneth Graunke
On 05/12/2014 10:12 AM, Ian Romanick wrote: > This patch is > > Reviewed-by: Ian Romanick > > For 10.3, I think we should look to migrate meta to using separate > shader objects and explicit attrib locations... or at least make some > short-cut functions to reduce the number of calls made in met

Re: [Mesa-dev] [PATCH 5/6] glsl: the number of samplers is already calculated so use it

2014-05-12 Thread Timothy Arceri
Please ignore this patch I already sent it out by itself and its been reviewed and pushed. Its not really related to this series its more of a clean up before the uniform work. On Mon, 2014-05-12 at 21:16 +1000, Timothy Arceri wrote: > Signed-off-by: Timothy Arceri > --- > src/glsl/link_uniforms

[Mesa-dev] [PATCH 3/3] egl-static: include libradeonwinsys.la only once

2014-05-12 Thread Emil Velikov
With this and the previous patch, we no longer have multiple definitions in the final egl_gallium.so. Cc: Chia-I Wu Signed-off-by: Emil Velikov --- src/gallium/targets/egl-static/Makefile.am | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/gallium/targets/egl

[Mesa-dev] [PATCH 2/3] gallium/radeon: link in libradeon.la at target level

2014-05-12 Thread Emil Velikov
It makes more sense to link the core and common parts of the driver as the target is build. Additionally this will help us drop duplicating symbols for targets that static link mulitple pipe-drivers. Only egl-static needs that currently with more to come. To simplify things a bit add HAVE_GALLIUM_

[Mesa-dev] [PATCH 1/3] gallium/radeon: build only a single common library libradeon

2014-05-12 Thread Emil Velikov
Just fold libllvmradeon in libradeon. Signed-off-by: Emil Velikov --- src/gallium/drivers/r600/Makefile.am | 2 -- src/gallium/drivers/radeon/Makefile.am | 12 src/gallium/drivers/radeonsi/Makefile.am | 3 +-- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/s

Re: [Mesa-dev] [PATCH] clover: Prevent Clang from printing number of errors and warnings to stderr.

2014-05-12 Thread Francisco Jerez
Tom Stellard writes: > https://bugs.freedesktop.org/show_bug.cgi?id=78581 > > CC: "10.1 10.2" > --- > src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp > b/src/gallium/state_t

[Mesa-dev] [PATCH] mesa: Remove glClear optimization based on drawable size

2014-05-12 Thread Kristian Høgsberg
A drawable size of 0x0 means that we don't have buffers for a drawable yet, not that we have a zero-sized buffer. Core mesa shouldn't be optimizing out drawing based on buffer size, since the draw call could be what triggers the driver to go and get buffers. As discussed in the referenced bug rep

Re: [Mesa-dev] [PATCH v2] automake: don't enable -Wl, --no-undefined on OpenBSD

2014-05-12 Thread Julien Cristau
On Thu, Apr 3, 2014 at 15:46:01 +1100, Jonathan Gray wrote: > OpenBSD does not have DT_NEEDED entries for libc by design, > over concerns how the symbols would be referenced after > changing the major version of the library. > > So avoid -no-undefined checks on OpenBSD as they will fail. > > v2

[Mesa-dev] [PATCH] configure: correctly set LD_NO_UNDEFINED

2014-05-12 Thread Emil Velikov
Commit 11623be934f85 was meant to have this hunk, which I accidently dropped during git rebase. Cc: 10.2 Signed-off-by: Emil Velikov --- Thanks for catching this Julien. Emil configure.ac | 13 + 1 file changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index 99a

Re: [Mesa-dev] [PATCH] clover: Prevent Clang from printing number of errors and warnings to stderr.

2014-05-12 Thread Tom Stellard
On Tue, May 13, 2014 at 01:23:03AM +0200, Francisco Jerez wrote: > Tom Stellard writes: > > > https://bugs.freedesktop.org/show_bug.cgi?id=78581 > > > > CC: "10.1 10.2" > > --- > > src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 > > 1 file changed, 4 insertions(+) > > > > diff -

Re: [Mesa-dev] [rong.r.y...@intel.com: [Intel-gfx] How user space applications load registers on HSW?]

2014-05-12 Thread Yang, Rong R
Hi, Ken, Thanks for your patch. But how do you release your driver on the HSW products? If can't LRI/LRM from userspace batches, almost all of OpenCL application can't run. So if I want to announce that the OpenCL driver support HSW, it must have a way to load L3CTRLREG2 and L3CTRL

Re: [Mesa-dev] [PATCH 2/3] gallium/egl: st_profiles are build time decision, treat them as such

2014-05-12 Thread Chia-I Wu
On Sat, May 10, 2014 at 10:41 AM, Emil Velikov wrote: > The profiles are present depending on the defines at build time. > Drop the extra functions and feed the defines directly into the > state-tracker at build time. Do you have other changes planned that require this one? The current code deals

Re: [Mesa-dev] [PATCH 3/3] egl-static: include libradeonwinsys.la only once

2014-05-12 Thread Chia-I Wu
On Tue, May 13, 2014 at 7:15 AM, Emil Velikov wrote: > With this and the previous patch, we no longer have multiple > definitions in the final egl_gallium.so. Looks good to me. > > Cc: Chia-I Wu > Signed-off-by: Emil Velikov > --- > src/gallium/targets/egl-static/Makefile.am | 12 +--- >

[Mesa-dev] [PATCH 1/5] gallivm: (trivial) remove unnecessary disabled debug code

2014-05-12 Thread sroland
From: Roland Scheidegger gallivm_verify_function is the only caller of gallivm_optimize_function and it already does this (except it's enabled there). --- src/gallium/auxiliary/gallivm/lp_bld_init.c | 8 1 file changed, 8 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_i

[Mesa-dev] [PATCH 5/5] draw: better llvm names for shaders for debugging.

2014-05-12 Thread sroland
From: Roland Scheidegger All shaders had the same name. We could probably use some identifier per shader too, but for now only use the variant number. --- src/gallium/auxiliary/draw/draw_llvm.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/gallium/au

[Mesa-dev] [PATCH 2/5] gallivm: print out how long it takes to optimize shader IR.

2014-05-12 Thread sroland
From: Roland Scheidegger Enabled with GALLIVM_DEBUG=perf (which up to now was only used to print warnings for unoptimized code). The output will look like this: optimizing fs88_variant0_partial took 13541 msec optimizing draw_llvm_shader took 21 msec optimizing draw_llvm_shader_elts took 21 msec

[Mesa-dev] [PATCH 4/5] llvmpipe: improve setup shader names (for debugging)

2014-05-12 Thread sroland
From: Roland Scheidegger The setup shaders were composed of both a fs shader number and a variant number. But since they aren't tied to a particular fragment shader, the former was a fixed zero while the latter was also always zero because it was never assigned. So, similar to what the fs code do

[Mesa-dev] [PATCH 3/5] llvmpipe: kill off llvmpipe_variant_count

2014-05-12 Thread sroland
From: Roland Scheidegger Unused except it was increased for both fs and setup shader variants created. Probably some leftover from ages ago. --- src/gallium/drivers/llvmpipe/lp_context.c | 4 src/gallium/drivers/llvmpipe/lp_context.h | 10 +- src/gallium/drivers/llvmpipe/lp

Re: [Mesa-dev] [Mesa-stable] A candidate branch for the next stable release

2014-05-12 Thread Chia-I Wu
Hi Carl, On Fri, May 2, 2014 at 1:44 AM, Carl Worth wrote: > I've recently pushed an update to the 10.1 branch. I anticipate making a > release from this branch tomorrow. The state of this branch is > summarized here: > > > http://cworth.org/~cworth/mesa-stable-queue/ > > As always, pleas

[Mesa-dev] [PATCH] gallium/docs: clarify get_query_result()

2014-05-12 Thread Rob Clark
From: Rob Clark It wasn't completely clear from the docs, so I had to figure out by looking at piglit results. Hopefully this saves the next driver writer implementing queries some time. Signed-off-by: Rob Clark --- src/gallium/docs/source/context.rst | 4 1 file changed, 4 insertions(+)

Re: [Mesa-dev] [PATCH 2/3] gallium/egl: st_profiles are build time decision, treat them as such

2014-05-12 Thread Emil Velikov
On 13/05/14 02:57, Chia-I Wu wrote: > On Sat, May 10, 2014 at 10:41 AM, Emil Velikov > wrote: >> The profiles are present depending on the defines at build time. >> Drop the extra functions and feed the defines directly into the >> state-tracker at build time. > Do you have other changes planned

Re: [Mesa-dev] [PATCH 2/8] radeon: add basic register setup for per-sample shading

2014-05-12 Thread Michel Dänzer
On 13.05.2014 01:40, Marek Olšák wrote: > On Mon, May 12, 2014 at 9:54 AM, Michel Dänzer wrote: >> On 07.05.2014 23:00, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> Only for Cayman, SI, CIK. >> >> [...] >> >>> diff --git a/src/gallium/drivers/radeon/r600d_common.h >>> b/src/gallium/drivers/r

Re: [Mesa-dev] [rong.r.y...@intel.com: [Intel-gfx] How user space applications load registers on HSW?]

2014-05-12 Thread Daniel Vetter
On Mon, May 12, 2014 at 10:02 AM, Yang, Rong R wrote: > Hi, Ken, > > Thanks for your patch. > But how do you release your driver on the HSW products? If can't LRI/LRM > from userspace batches, almost all of OpenCL application can't run. > So if I want to announce that the OpenCL drive