[Mesa-dev] [PATCH] glsl: Add an optimization pass to flatten simple nested if blocks.

2013-04-03 Thread Kenneth Graunke
GLBenchmark 2.7's shaders contain conditional blocks like: if (x) { if (y) { ... } } where the outer conditional's then clause contains exactly one statement (the nested if) and there are no else clauses. This can easily be optimized into: if (x && y) { ... } This saves a f

Re: [Mesa-dev] [PATCH] i965: Ask the register allocator to round-robin through registers.

2013-04-03 Thread Kenneth Graunke
On 04/03/2013 11:59 AM, Matt Turner wrote: On Wed, Apr 3, 2013 at 10:25 AM, Eric Anholt wrote: The way we were allocating registers before, packing into low register numbers for Ironlake, resulted in an overly-constrained dependency graph for instruction scheduling. Improves GLBenchmark 2.1 pe

Re: [Mesa-dev] [PATCH 1/4] i965: Remove fixed-function texture projection avoidance optimization.

2013-04-03 Thread Kenneth Graunke
On 03/13/2013 09:17 AM, Eric Anholt wrote: Kenneth Graunke writes: This optimization attempts to avoid extra attribute interpolation instructions for texture coordinates where the W-component is 1.0. Unfortunately, it requires a lot of complexity: the brw_wm_input_sizes state atom (all the br

[Mesa-dev] [Bug 63097] libegl1-mesa-drivers from git (xedgers ppa) can't be installed due to dependencie change on ubuntu raring.

2013-04-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63097 --- Comment #1 from b2e6d...@opayq.com --- Created attachment 77398 --> https://bugs.freedesktop.org/attachment.cgi?id=77398&action=edit Error on synaptic -- You are receiving this mail because: You are the assignee for the bug. __

[Mesa-dev] [Bug 63097] New: libegl1-mesa-drivers from git (xedgers ppa) can't be installed due to dependencie change on ubuntu raring.

2013-04-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63097 Priority: medium Bug ID: 63097 Assignee: mesa-dev@lists.freedesktop.org Summary: libegl1-mesa-drivers from git (xedgers ppa) can't be installed due to dependencie change on ubuntu rari

[Mesa-dev] [PATCH] tgsi: Add a conditional move inststruction

2013-04-03 Thread Zack Rusin
It's part of SM4 (http://goo.gl/4IpeK). It's also fairly painful to emulate without branching. Most hardware supports it natively and even llvm has a 'select' opcode which can handle it without too much hassle. Signed-off-by: Zack Rusin --- src/gallium/auxiliary/gallivm/lp_bld_tgsi_action.c |

[Mesa-dev] [PATCH 4/4] st/wgl: add HUD support

2013-04-03 Thread Brian Paul
--- src/gallium/state_trackers/wgl/stw_context.c |9 + src/gallium/state_trackers/wgl/stw_context.h |3 +++ src/gallium/state_trackers/wgl/stw_framebuffer.c |9 + src/gallium/state_trackers/wgl/stw_st.c | 13 + src/gallium/state_trackers/w

[Mesa-dev] [PATCH 3/4] st/wgl: make stw_current_context() non-static

2013-04-03 Thread Brian Paul
--- src/gallium/state_trackers/wgl/stw_context.c |2 +- src/gallium/state_trackers/wgl/stw_context.h |4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/wgl/stw_context.c b/src/gallium/state_trackers/wgl/stw_context.c index 1488bee..5e5b41f 1

[Mesa-dev] [PATCH 2/4] util: add debug_memory_check_block(), debug_memory_tag()

2013-04-03 Thread Brian Paul
The former just checks that the given block is valid by checking the header and footer. The later sets the memory block's tag. With extra debug code, we can use that for monitoring/checking particular allocations. --- src/gallium/auxiliary/os/os_memory_debug.h |6 +++ src/gallium/auxiliary/

[Mesa-dev] [PATCH 1/4] gallium/hud: replace malloc w/ MALLOC

2013-04-03 Thread Brian Paul
To match the FREE() called used later. Fixes things on Windows. --- src/gallium/auxiliary/hud/hud_context.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index 5511f8e..b417f5d 100644 --

[Mesa-dev] [PATCH 2/2] gallium/radeonsi: add 2d tiling support for texture

2013-04-03 Thread j . glisse
From: Jerome Glisse Signed-off-by: Jerome Glisse --- src/gallium/drivers/radeonsi/r600_texture.c | 4 +- src/gallium/drivers/radeonsi/si_state.c | 83 + 2 files changed, 14 insertions(+), 73 deletions(-) diff --git a/src/gallium/drivers/radeonsi/r600_texture.c

[Mesa-dev] radeonsi 2d tiling

2013-04-03 Thread j . glisse
This is mesa match for 2d tiling, it's missing change to configure.ac to require proper libdrm. Will respin once i know. Cheers, Jerome ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] r600g: Fallback to shader decoding if UVD isn't available

2013-04-03 Thread Andreas Boll
FYI this and the radeonsi patch assume that the kernel driver with UVD support reports version 2.31.0 (needs to be bumped) 2013/4/3 Andreas Boll > Cc: Christian König > --- > src/gallium/drivers/r600/r600_pipe.c | 63 > +++--- > src/gallium/drivers/r600/r600_pipe

Re: [Mesa-dev] [PATCH] Fix glXChooseFBConfig with GLX_DRAWABLE_TYPE GLX_DONT_CARE

2013-04-03 Thread Ian Romanick
On 04/01/2013 02:42 PM, Alexander Monakov wrote: On Mon, Apr 1, 2013 at 11:05 PM, Alexander Monakov wrote: https://bugs.freedesktop.org/show_bug.cgi?id=47478 https://bugs.freedesktop.org/show_bug.cgi?id=62999 (dup of the above) I don't have commit access so please push if OK. Hm, now I see t

Re: [Mesa-dev] [PATCH 7/8] glsl: Don't emit spurious errors for constant indexes of the wrong type

2013-04-03 Thread Ian Romanick
On 04/02/2013 10:58 AM, Kenneth Graunke wrote: On 04/01/2013 11:25 AM, Ian Romanick wrote: From: Ian Romanick Previously the shader uniform float x[6]; void main() { gl_Position.x = x[1.0]; } would have generated the errors 0:2(33): error: array index must be integer type 0:2(36): error: ar

Re: [Mesa-dev] [PATCH v2] Avoid spurious GCC warnings in STATIC_ASSERT() macro.

2013-04-03 Thread Kenneth Graunke
On 04/03/2013 12:22 PM, Paul Berry wrote: GCC 4.8 now warns about typedefs that are local to a scope and not used anywhere within that scope. This produced spurious warnings with the STATIC_ASSERT() macro (which used a typedef to provoke a compile error in the event of an assertion failure). Th

Re: [Mesa-dev] [PATCH] register_allocate: Fix the type of best_benefit.

2013-04-03 Thread Ian Romanick
On 04/02/2013 01:38 PM, Matt Turner wrote: Candidate for stable branches? --- src/mesa/program/register_allocate.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c index a9064c3..7d11b73 100

[Mesa-dev] [PATCH v2] Avoid spurious GCC warnings in STATIC_ASSERT() macro.

2013-04-03 Thread Paul Berry
GCC 4.8 now warns about typedefs that are local to a scope and not used anywhere within that scope. This produced spurious warnings with the STATIC_ASSERT() macro (which used a typedef to provoke a compile error in the event of an assertion failure). This patch switches to a simpler technique tha

Re: [Mesa-dev] [PATCH] register_allocate: Fix the type of best_benefit.

2013-04-03 Thread Matt Turner
On Tue, Apr 2, 2013 at 2:28 PM, Tom Stellard wrote: > On Tue, Apr 02, 2013 at 01:38:07PM -0700, Matt Turner wrote: >> --- > > Nice catch, will this change have any affect on the compiled code? I think so, in this block: if (benefit / cost > best_benefit) { best_benefit = benefit / cost; be

Re: [Mesa-dev] [PATCH] i965: Ask the register allocator to round-robin through registers.

2013-04-03 Thread Matt Turner
On Wed, Apr 3, 2013 at 10:25 AM, Eric Anholt wrote: > The way we were allocating registers before, packing into low register > numbers for Ironlake, resulted in an overly-constrained dependency graph > for instruction scheduling. Improves GLBenchmark 2.1 performance by > 3.4% +/- 0.6% (n=26) > --

[Mesa-dev] [PATCH] radeonsi: Fallback to shader decoding if UVD isn't available

2013-04-03 Thread Andreas Boll
Cc: Christian König --- Note: Compile tested only src/gallium/drivers/radeonsi/radeonsi_pipe.c | 39 -- src/gallium/drivers/radeonsi/radeonsi_pipe.h |1 + 2 files changed, 37 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c

Re: [Mesa-dev] mesa 9.1.1 for arm

2013-04-03 Thread Matt Turner
On Wed, Apr 3, 2013 at 5:25 AM, Michel Dänzer wrote: > On Mit, 2013-04-03 at 14:40 +0400, Alexander Khryukin wrote: >> Hi all! >> >> i'm trying to build latest mesa release 9.1.1 on my arm board i.mx6 >> >> and i got >> >> >> .c -fPIC -DPIC -o .libs/xorg_driver.o >> In file included from xorg_dri

[Mesa-dev] [PATCH] r600g: Fallback to shader decoding if UVD isn't available

2013-04-03 Thread Andreas Boll
Cc: Christian König --- src/gallium/drivers/r600/r600_pipe.c | 63 +++--- src/gallium/drivers/r600/r600_pipe.h |1 + 2 files changed, 60 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.c b/src/gallium/drivers/r600/r600_pipe.c index

[Mesa-dev] [PATCH] i965: Ask the register allocator to round-robin through registers.

2013-04-03 Thread Eric Anholt
The way we were allocating registers before, packing into low register numbers for Ironlake, resulted in an overly-constrained dependency graph for instruction scheduling. Improves GLBenchmark 2.1 performance by 3.4% +/- 0.6% (n=26) --- src/mesa/drivers/dri/i965/brw_fs_reg_allocate.cpp |2 ++

[Mesa-dev] [PATCH 3/3] svga: add new memory-used HUD query

2013-04-03 Thread Brian Paul
From: Brian Paul To track the amount of memory used by all pipe_resources (textures and buffers). --- src/gallium/drivers/svga/svga_context.h |1 + src/gallium/drivers/svga/svga_pipe_query.c | 11 +++ src/gallium/drivers/svga/svga_resource_buffer.c |6 ++ sr

[Mesa-dev] [PATCH 2/3] util: add new util_resource_size() function in u_resource.[ch]

2013-04-03 Thread Brian Paul
From: Brian Paul --- src/gallium/auxiliary/util/u_resource.c | 65 ++- src/gallium/auxiliary/util/u_resource.h | 34 2 files changed, 98 insertions(+), 1 deletion(-) create mode 100644 src/gallium/auxiliary/util/u_resource.h diff --git a/src/gal

[Mesa-dev] [PATCH 1/3] util: move functions from u_resource.c to u_transfer.c

2013-04-03 Thread Brian Paul
From: Brian Paul The functions are prototyped in u_transfer.h and are related to the other functions in u_transfer.c. The next patch will re-use the u_resource.c file for new code. --- src/gallium/auxiliary/util/u_resource.c | 76 +-- src/gallium/auxiliary/util/u_t

Re: [Mesa-dev] [PATCH 2/5] draw/llvm: use an enum instead of magic numbers

2013-04-03 Thread Jose Fonseca
- Original Message - > I think this was there before and got accidently > removed during a merge. Same code as for the GS > context, which is also using an enum instead of > hardcoded numbers. > > Signed-off-by: Zack Rusin > --- > src/gallium/auxiliary/draw/draw_llvm.c |8

Re: [Mesa-dev] [PATCH 3/3] gallivm: honor explicit derivatives values for cube maps.

2013-04-03 Thread Jose Fonseca
I only had time to skim through your changes but the series looks great, Roland. If it's not too much trouble, could you please add a piglit test for explicit cube derivatives? Also, please confirm there are no piglit regressions. Jose - Original Message - > From: Roland Scheidegger >

Re: [Mesa-dev] Adjust MIMG writemask to only the used components

2013-04-03 Thread Michel Dänzer
On Mit, 2013-04-03 at 15:38 +0200, Christian König wrote: > Am 03.04.2013 15:19, schrieb Michel Dänzer: > > On Mit, 2013-03-27 at 17:57 +0100, Christian König wrote: > >> the attached patches dynamically adjust the writemask of MIMG > >> instructions depending on the used components. Additional to

Re: [Mesa-dev] Adjust MIMG writemask to only the used components

2013-04-03 Thread Christian König
Am 03.04.2013 15:19, schrieb Michel Dänzer: On Mit, 2013-03-27 at 17:57 +0100, Christian König wrote: the attached patches dynamically adjust the writemask of MIMG instructions depending on the used components. Additional to that it also adjust the register class of MIMG instruction so that we a

[Mesa-dev] [Bug 63078] New: EGL X11 Regression: Maximum swap interval is 0 (worked with 9.0)

2013-04-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63078 Priority: medium Bug ID: 63078 Assignee: mesa-dev@lists.freedesktop.org Summary: EGL X11 Regression: Maximum swap interval is 0 (worked with 9.0) Severity: normal Classif

Re: [Mesa-dev] Adjust MIMG writemask to only the used components

2013-04-03 Thread Michel Dänzer
On Mit, 2013-03-27 at 17:57 +0100, Christian König wrote: > > the attached patches dynamically adjust the writemask of MIMG > instructions depending on the used components. Additional to that it > also adjust the register class of MIMG instruction so that we also > reduce register pressure. T

Re: [Mesa-dev] mesa 9.1.1 for arm

2013-04-03 Thread Michel Dänzer
On Mit, 2013-04-03 at 14:40 +0400, Alexander Khryukin wrote: > Hi all! > > i'm trying to build latest mesa release 9.1.1 on my arm board i.mx6 > > and i got > > > .c -fPIC -DPIC -o .libs/xorg_driver.o > In file included from xorg_driver.c:36:0: > /usr/include/xorg/xf86PciInfo.h:50:2: warning:

[Mesa-dev] mesa 9.1.1 for arm

2013-04-03 Thread Alexander Khryukin
Hi all! i'm trying to build latest mesa release 9.1.1 on my arm board i.mx6 and i got .c -fPIC -DPIC -o .libs/xorg_driver.o In file included from xorg_driver.c:36:0: /usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is deprecated. For greater compatibility, drivers should i

[Mesa-dev] [Bug 47607] [advocacy] Make Anomaly Warzone Earth work with Mesa

2013-04-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47607 --- Comment #8 from bartosz.brzos...@11bitstudios.com --- (In reply to comment #0) > The game "Anomaly Warzone Earth" from the previous Humble Android Bundle > does not work with Mesa. > Guys, we solved the crash and updated the Steam version fi

Re: [Mesa-dev] [PATCH] radeonsi: add more cases for copying unsupported formats to resource_copy_region

2013-04-03 Thread Christian König
Am 03.04.2013 10:21, schrieb Michel Dänzer: On Die, 2013-04-02 at 18:56 -0400, Tom Stellard wrote: From: Marek Olšák Ported from r600g commit: 8891b2f9c91b2f6c8625184c23a10b8e55875dc0 NOTE: This is a candidate for the stable branches. Just for the 9.1 branch. I wasn't hitting this problem,

Re: [Mesa-dev] [PATCH 2/3] intel: Do temporary CPU maps of textures that are too big to GTT map.

2013-04-03 Thread Daniel Vetter
On Tue, Apr 02, 2013 at 06:46:32PM -0700, Eric Anholt wrote: > This still fails, since 8192*4bpp == 32768, which is too big to use the > blitter on. Meh, I should take coffee first before doing reviews ... Iirc on gen4+ for tiled src/dst the blt stride limit is 128k (since the stride is supplied

Re: [Mesa-dev] [PATCH 2/3] intel: Do temporary CPU maps of textures that are too big to GTT map.

2013-04-03 Thread Daniel Vetter
On Tue, Apr 02, 2013 at 06:46:32PM -0700, Eric Anholt wrote: > This still fails, since 8192*4bpp == 32768, which is too big to use the > blitter on. > > Reviewed-by: Kenneth Graunke > --- > src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 21 + > 1 file changed, 21 insertio

Re: [Mesa-dev] [PATCH] radeonsi: add more cases for copying unsupported formats to resource_copy_region

2013-04-03 Thread Michel Dänzer
On Die, 2013-04-02 at 18:56 -0400, Tom Stellard wrote: > From: Marek Olšák > > Ported from r600g commit: > > 8891b2f9c91b2f6c8625184c23a10b8e55875dc0 > > NOTE: This is a candidate for the stable branches. Just for the 9.1 branch. I wasn't hitting this problem, maybe because I'm building with

Re: [Mesa-dev] [PATCH] radeon/uvd: add UVD implementation

2013-04-03 Thread Christian König
Am 03.04.2013 02:17, schrieb Matt Turner: On Tue, Apr 2, 2013 at 4:19 PM, Christian König wrote: diff --git a/configure.ac b/configure.ac index 81d4a3f..93ec1d2 100644 --- a/configure.ac +++ b/configure.ac @@ -1814,6 +1814,7 @@ if test "x$with_gallium_drivers" != x; then if test "