[Mesa-dev] st/mesa depth mode + sampler

2012-01-29 Thread Dave Airlie
Hi guys, on softpipe, the 2D sampler tests which use an ALPHA depthmode are failing, now the reason seems to be that the texture sampling puts the compare value into A and 0 into RGB, but the writemask only stores the X component from R and doesn't take the fact that it should be using A. I'm not

Re: [Mesa-dev] [PATCH] add wayland cflags when building wayland-egl

2012-01-29 Thread Benjamin Franzke
Thanks, commited. 2012/1/29 : > From: Juan Zhao > > to fix the header file missing when building wayland-egl > --- >  src/egl/wayland/wayland-egl/Makefile.am |    3 ++- >  1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/src/egl/wayland/wayland-egl/Makefile.am > b/src/egl/wayla

[Mesa-dev] [PATCH] mesa/format_unpack: add LUMINANCE 8/16 UINT/INT

2012-01-29 Thread Dave Airlie
From: Dave Airlie This just copies what the LUMINANCE_ALPHA bits do. Fixes piglit tests on softpipe complaining about missing unpack. Signed-off-by: Dave Airlie --- src/mesa/main/format_unpack.c | 59 + 1 files changed, 59 insertions(+), 0 deletions(-

[Mesa-dev] [PATCH 1/2] softpipe: don't attempt to blend integer formats.

2012-01-29 Thread Dave Airlie
From: Dave Airlie This blocks blending in the simple path, need to look at the more complicated paths. Signed-off-by: Dave Airlie --- src/gallium/drivers/softpipe/sp_quad_blend.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_quad_ble

[Mesa-dev] [PATCH 2/2] softpipe: don't alpha test when integer color buffer.

2012-01-29 Thread Dave Airlie
From: Dave Airlie This helps pass one of the texture integer tests. Signed-off-by: Dave Airlie --- src/gallium/drivers/softpipe/sp_quad_depth_test.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_quad_depth_test.c b/src/gallium/driv

[Mesa-dev] [PATCH] st/dri: Support 24bit formats in dri2_allocate_buffer

2012-01-29 Thread Benjamin Franzke
Prior commit 576161289df68eedade591fbca4013329c9e5ded, the parameter format was bpp, thus both 24bit and 32bit formats were requested with format set to 32. Handle 24bit seperately now. Fixes RGBX formats in wayland platform for egl_dri2 (EGL_ALPHA_SIZE=0). Note: This is a candidate for the 8.0 b

[Mesa-dev] [PATCH] mesa: pack int from uint with clamping.

2012-01-29 Thread Dave Airlie
From: Dave Airlie if the test I wrote in piglit for sint-uint is correct, this fixes things in one direction, reading a UINT32 buffer into a INT32 output. The other case will need a bit more work. Signed-off-by: Dave Airlie --- src/mesa/main/pack.c | 11 +-- 1 files changed, 9 inser

Re: [Mesa-dev] [PATCH] mesa/format_unpack: add LUMINANCE 8/16 UINT/INT

2012-01-29 Thread Brian Paul
On Sun, Jan 29, 2012 at 9:27 AM, Dave Airlie wrote: > From: Dave Airlie > > This just copies what the LUMINANCE_ALPHA bits do. > > Fixes piglit tests on softpipe complaining about missing unpack. > > Signed-off-by: Dave Airlie > --- >  src/mesa/main/format_unpack.c |   59 >

Re: [Mesa-dev] [PATCH 1/2] softpipe: don't attempt to blend integer formats.

2012-01-29 Thread Brian Paul
On Sun, Jan 29, 2012 at 9:35 AM, Dave Airlie wrote: > From: Dave Airlie > > This blocks blending in the simple path, need to look at the more > complicated paths. > > Signed-off-by: Dave Airlie > --- >  src/gallium/drivers/softpipe/sp_quad_blend.c |    3 ++- >  1 files changed, 2 insertions(+),

[Mesa-dev] [Bug 45277] [bisected] Shading not working properly in Heroes of Newerth

2012-01-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45277 maxi...@free.fr changed: What|Removed |Added CC||maxi...@free.fr -- Configure bugmail:

Re: [Mesa-dev] [PATCH 1/2] softpipe: don't attempt to blend integer formats.

2012-01-29 Thread Dave Airlie
On Sun, Jan 29, 2012 at 5:26 PM, Brian Paul wrote: > On Sun, Jan 29, 2012 at 9:35 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This blocks blending in the simple path, need to look at the more >> complicated paths. >> >> Signed-off-by: Dave Airlie >> --- >>  src/gallium/drivers/softpipe/sp

Re: [Mesa-dev] [PATCH] mesa/format_unpack: add LUMINANCE 8/16 UINT/INT

2012-01-29 Thread Dave Airlie
> > I think the [i * 2 + 0] indexing is wrong.  If the source data is just > luminance, the index should be [i]. doh, yes, will send a fixed version. thanks, Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mai

Re: [Mesa-dev] [PATCH 1/2] softpipe: don't attempt to blend integer formats.

2012-01-29 Thread Dave Airlie
On Sun, Jan 29, 2012 at 5:51 PM, Dave Airlie wrote: > On Sun, Jan 29, 2012 at 5:26 PM, Brian Paul wrote: >> On Sun, Jan 29, 2012 at 9:35 AM, Dave Airlie wrote: >>> From: Dave Airlie >>> >>> This blocks blending in the simple path, need to look at the more >>> complicated paths. >>> >>> Signed-o

[Mesa-dev] [PATCH 00/19] Remove all uses of the register mask

2012-01-29 Thread Marek Olšák
Hi everyone, This is a cleanup in a series of cleanups I am going to make to improve the horribly over-engineered and slow state management of r600g. This particular patch series brings nothing new or special, it's merely a preparation for future work. This series removes any uses of the regis

[Mesa-dev] [PATCH 01/19] r600g: don't use register mask for SQ_GPR_RESOURCE_MGMT_1

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_pipe.h |1 + src/gallium/drivers/r600/r600_state.c |4 +++- 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 7d0d697..b4898a4 100644 --- a/src/gallium/drivers

[Mesa-dev] [PATCH 02/19] r600g: rework and consolidate stencilref state setting

2012-01-29 Thread Marek Olšák
Stop using the register mask. --- src/gallium/drivers/r600/evergreen_state.c | 48 +++- src/gallium/drivers/r600/r600_pipe.h | 13 +- src/gallium/drivers/r600/r600_state.c| 48 +++- src/gallium/drivers/r600/r600_state_common.c | 60

[Mesa-dev] [PATCH 03/19] r600g: cleanup setting DB_SHADER_CONTROL

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_state.c | 20 src/gallium/drivers/r600/r600_state.c | 19 +++ 2 files changed, 7 insertions(+), 32 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.

[Mesa-dev] [PATCH 04/19] r600g: don't use register mask for DB_RENDER_CONTROL

2012-01-29 Thread Marek Olšák
We don't set the other bits anywhere else except the other DSA states, which are mutually-exclusive with this one. --- src/gallium/drivers/r600/evergreen_state.c |4 +--- src/gallium/drivers/r600/r600_state.c |4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/

[Mesa-dev] [PATCH 05/19] r600g: use a more clever way to disable per-vertex point size

2012-01-29 Thread Marek Olšák
This uses point size clamping to force point size to a particular value, making the vertex shader output irrelevant. --- src/gallium/drivers/r600/evergreen_state.c | 19 --- src/gallium/drivers/r600/r600_shader.c |1 + src/gallium/drivers/r600/r600_shader.h |1 +

[Mesa-dev] [PATCH 06/19] r600g: set full register mask for CB_COLOR_CONTROL on evergreen

2012-01-29 Thread Marek Olšák
We don't set the other bits anywhere else. --- src/gallium/drivers/r600/evergreen_state.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 57942fb..7fd3a36 100644 --- a/src/galli

[Mesa-dev] [PATCH 07/19] r600g: don't set CB_TARGET_MASK in set_framebuffer_state

2012-01-29 Thread Marek Olšák
It's emitted in draw_vbo, always. --- src/gallium/drivers/r600/evergreen_state.c |8 +--- src/gallium/drivers/r600/r600_state.c |7 +-- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergr

[Mesa-dev] [PATCH 08/19] r600g: don't use register mask for CB_COLOR_CONTROL on r6xx-r7xx

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_pipe.h |2 ++ src/gallium/drivers/r600/r600_state.c|8 +--- src/gallium/drivers/r600/r600_state_common.c | 14 ++ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/

[Mesa-dev] [PATCH 09/19] r600g: don't add PA_SC_LINE_STIPPLE to rasterizer_state

2012-01-29 Thread Marek Olšák
It's always emitted in draw_vbo. --- src/gallium/drivers/r600/evergreen_state.c | 11 +++ src/gallium/drivers/r600/r600_pipe.h |2 ++ src/gallium/drivers/r600/r600_state.c| 10 +++--- src/gallium/drivers/r600/r600_state_common.c |7 +++ 4 files changed

[Mesa-dev] [PATCH 10/19] r600g: don't use register mask for PA_SU_SC_MODE_CNTL

2012-01-29 Thread Marek Olšák
It's always emitted in draw_vbo. --- src/gallium/drivers/r600/evergreen_state.c | 32 + src/gallium/drivers/r600/r600_pipe.h |2 + src/gallium/drivers/r600/r600_state.c| 32 + src/gallium/drivers/r600/r600_state_common.c |

[Mesa-dev] [PATCH 11/19] r600g: set full register mask for PA_CL_CLIP_CNTL

2012-01-29 Thread Marek Olšák
We don't set the other bits anywhere else. --- src/gallium/drivers/r600/evergreen_state.c |4 +--- src/gallium/drivers/r600/r600_state.c |4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/everg

[Mesa-dev] [PATCH 12/19] r600g: don't use register mask for PA_CL_VS_OUT_CNTL

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_state.c | 16 +--- src/gallium/drivers/r600/r600_pipe.h |2 +- src/gallium/drivers/r600/r600_state.c| 16 +--- src/gallium/drivers/r600/r600_state_common.c | 11 --- 4 files changed, 15 insertions(+)

[Mesa-dev] [PATCH 13/19] r600g: don't use register mask for PA_CL_CLIP_CNTL

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/evergreen_state.c | 10 +- src/gallium/drivers/r600/r600_pipe.h |3 ++- src/gallium/drivers/r600/r600_state.c| 10 +- src/gallium/drivers/r600/r600_state_common.c | 18 +++--- 4 files changed, 19 insertions(+), 22

[Mesa-dev] [PATCH 14/19] r600g: don't use register mask for TA_CNTL_AUX

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_state.c | 20 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index 73c0608..e27ab2b 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/

[Mesa-dev] [PATCH 16/19] r600g: get rid of the mask in r600_pipe_reg

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/r600.h |1 - src/gallium/drivers/r600/r600_hw_context.c |8 ++-- src/gallium/drivers/r600/r600_state_common.c |2 -- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/r600/r600.h b/src/gallium/drivers/r600

[Mesa-dev] [PATCH 17/19] r600g: don't use r600_context_reg on evergreen

2012-01-29 Thread Marek Olšák
Just getting rid of things which use the register mask. --- src/gallium/drivers/r600/evergreen_hw_context.c | 30 +-- src/gallium/drivers/r600/evergreen_state.c |1 + src/gallium/drivers/r600/r600.h |1 + src/gallium/drivers/r600/r600_hw_context_p

[Mesa-dev] [PATCH 18/19] r600g: don't use r600_context_reg on r6xx-r7xx

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/r600.h |1 + src/gallium/drivers/r600/r600_hw_context.c | 40 - src/gallium/drivers/r600/r600_pipe.h |1 + src/gallium/drivers/r600/r600_state.c| 22 ++ src/gallium/drivers/r600/r600_state_c

[Mesa-dev] [PATCH 19/19] r600g: get rid of r600_context_reg

2012-01-29 Thread Marek Olšák
--- src/gallium/drivers/r600/r600_hw_context.c | 27 --- src/gallium/drivers/r600/r600_hw_context_priv.h |3 -- 2 files changed, 0 insertions(+), 30 deletions(-) diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c in

Re: [Mesa-dev] [PATCH 1/2] softpipe: don't attempt to blend integer formats.

2012-01-29 Thread Christoph Bumiller
On 01/29/2012 06:26 PM, Brian Paul wrote: > On Sun, Jan 29, 2012 at 9:35 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This blocks blending in the simple path, need to look at the more >> complicated paths. >> >> Signed-off-by: Dave Airlie >> --- >> src/gallium/drivers/softpipe/sp_quad_blen

Re: [Mesa-dev] [PATCH 00/19] Remove all uses of the register mask

2012-01-29 Thread Dave Airlie
> Hi everyone, > > This is a cleanup in a series of cleanups I am going to make to improve the > horribly over-engineered and slow state management of r600g. This particular > patch series brings nothing new or special, it's merely a preparation for > future work. > > This series removes any use

[Mesa-dev] [PATCH] gallium: add PIPE_CAP_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION

2012-01-29 Thread Christoph Bumiller
Just let the hardware do it if it can and avoid drivers having to check for the special case on each draw call. --- src/gallium/docs/source/cso/rasterizer.rst |7 --- src/gallium/docs/source/screen.rst |2 ++ src/gallium/drivers/i915/i915_screen.c |1 + src/galliu

Re: [Mesa-dev] [PATCH 1/2] softpipe: don't attempt to blend integer formats.

2012-01-29 Thread Jose Fonseca
- Original Message - > On 01/29/2012 06:26 PM, Brian Paul wrote: > > On Sun, Jan 29, 2012 at 9:35 AM, Dave Airlie > > wrote: > >> From: Dave Airlie > >> > >> This blocks blending in the simple path, need to look at the more > >> complicated paths. > >> > >> Signed-off-by: Dave Airlie >

[Mesa-dev] [PATCH 1/3] mesa: added _mesa_pack_ubyte_rgba_rect() function

2012-01-29 Thread Brian Paul
From: Brian Paul --- src/mesa/main/format_pack.c | 42 ++ src/mesa/main/format_pack.h |4 2 files changed, 46 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/format_pack.c b/src/mesa/main/format_pack.c index 85b2c69..ea1d95e 100644 ---

[Mesa-dev] [PATCH 2/3] mesa: use _mesa_pack_ubyte_rgba_rect() in texstore code

2012-01-29 Thread Brian Paul
From: Brian Paul Simplifies the general case code in the ubyte-valued texture format functions. More consolidation to come in subsequent commits. --- src/mesa/main/texstore.c | 283 +++--- 1 files changed, 64 insertions(+), 219 deletions(-) diff --git a

[Mesa-dev] [PATCH 3/3] mesa: consolidate general ubyte texstore code

2012-01-29 Thread Brian Paul
From: Brian Paul --- src/mesa/main/texstore.c | 242 ++ 1 files changed, 71 insertions(+), 171 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 2f5686e..8c51a94 100644 --- a/src/mesa/main/texstore.c +++ b/src/mesa/m

[Mesa-dev] Automaking src/glsl

2012-01-29 Thread Matt Turner
Here's a patch series to convert the glsl directory to automake. I've worked out all the kinks I could find, and the meat of this series has been posted for review a couple of times already, so I plan to commit this after Kenneth's two variable_entry patches go in, probably Monday. (It also trivia

[Mesa-dev] [PATCH 1/5] glsl: rename Makefile.sources' _SOURCES variables

2012-01-29 Thread Matt Turner
automake uses variables named *_SOURCES. --- src/glsl/Android.mk | 18 +- src/glsl/Makefile | 16 src/glsl/Makefile.sources | 18 +- src/glsl/SConscript |6 +++--- 4 files changed, 29 insertions(+), 29 deletions(-) dif

[Mesa-dev] [PATCH 2/5] autoconf: use AC_PROG_YACC/LEX

2012-01-29 Thread Matt Turner
Needed for automake. Using AC_PROG_PATH(bison/flex) causes automake to fail to build .y and .l files. It is up to the builder to use bison/flex instead of yacc/lex. --- bin/.gitignore |1 + configs/autoconf.in |4 ++-- configure.ac| 13 - 3 files changed, 11 ins

[Mesa-dev] [PATCH 3/5] automake: src/glsl and src/glsl/glcpp

2012-01-29 Thread Matt Turner
--- configure.ac|2 + src/glsl/.gitignore |8 ++ src/glsl/Makefile | 172 --- src/glsl/Makefile.am| 81 src/glsl/glcpp/.gitignore |3 + src/glsl/glcpp

[Mesa-dev] [PATCH 4/5] glcpp-test: don't return failure if valgrind tests aren't run

2012-01-29 Thread Matt Turner
Success was (tests-passed AND valgrind-tests-passed) but this meant that if the valgrind tests weren't run it would be considered a failure. The logic is now (tests-passed AND (!valgrind OR valgrind-tests-passed)) which lets us return success if the valgrind tests aren't run. --- src/glsl/glcpp/t

[Mesa-dev] [PATCH 5/5] src/glsl/glcpp: wire up glcpp-test to make check

2012-01-29 Thread Matt Turner
--- src/glsl/glcpp/Makefile.am |2 ++ src/glsl/glcpp/tests/glcpp-test |6 +- 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/glsl/glcpp/Makefile.am b/src/glsl/glcpp/Makefile.am index 198908c..68f55dc 100644 --- a/src/glsl/glcpp/Makefile.am +++ b/src/glsl/glcpp/M

[Mesa-dev] [PATCH/RFC] glsl: Avoid excessive loop unrolling.

2012-01-29 Thread Mathias Fröhlich
Hi, I am trying to make the shaders from a sky scattering shader work with mesa. One of the problems is that the shader contains a nested 16 x 32 loop with an instruction intensive body. The glsl loop unrolling pass is trying to unroll both loops since both of them have a fixed size <=32. Compi

Re: [Mesa-dev] Help required in configuring mesa 3d in non X environment.

2012-01-29 Thread Sanjoy Saha - ERS, HCL Tech
Mat, Thanks for your reply. Just to update you on my requirement i wanted to run mesa on HPCN8641 (PPC) without X server, Graphics card PCIE ATI radeon E4690. I ran ./autogen.sh and i get the below error (No X server present/header/library). I patched up the configure script to ignore dependen