[Mesa-dev] [PATCH] glx/dri2: add dri2 prime support.

2012-07-29 Thread Dave Airlie
From: Dave Airlie This adds support for having libGL pick a different driver for prime support. DRI_PRIME env var is set to the value retrieved from the server randr provider calls, by the calling process. (generally DRI_PRIME=1 will be the right answer). Signed-off-by: Dave Airlie --- src/gl

[Mesa-dev] [Bug 52930] New: glXWaitX is often ineffective

2012-07-29 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=52930 Bug #: 52930 Summary: glXWaitX is often ineffective Classification: Unclassified Product: Mesa Version: 8.0 Platform: Other OS/Version: All Status: NEW Sever

[Mesa-dev] [PATCH] mesa: Fix wrong sizeof argument in _math_matrix_copy.

2012-07-29 Thread Vinson Lee
Fixes Coverity wrong sizeof argument defect. Signed-off-by: Vinson Lee --- src/mesa/math/m_matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index 40f9229..7c4e9fd 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/

[Mesa-dev] [PATCH] gallium/util: Use GCC built-in functions for NaN and infinity.

2012-07-29 Thread Vinson Lee
This patch fixes this build failure with Intel Compiler. src/gallium/auxiliary/util/u_format_tests.c(903): error: floating-point operation result is out of range {PIPE_FORMAT_R16_FLOAT, PACKED_1x16(0x), PACKED_1x16(0x7c01), UNPACKED_1x1(NAN, 0.0, 0.0, 1.0)}, Signed-off-by: Vins

Re: [Mesa-dev] some radeon/r200 cleanup/fixes

2012-07-29 Thread Barto
Ok thanks, so the solution is to run the piglit script like this : python2 piglit-run.py tests/sanity.tests results/sanity.results in my archlinux installation I have 2 different python packages: python2 and python3 by default it's the python3 interpreter who runs for python scripts, that's why

Re: [Mesa-dev] some radeon/r200 cleanup/fixes

2012-07-29 Thread Matt Turner
On Sun, Jul 29, 2012 at 1:41 PM, Barto wrote: > thanks for the tip, > > I have compiled piglist without problems, I read the "readme" file and I > have this error message when I launch the piglit-run.py script : > > ./piglit-run.py tests/sanity.tests results/sanity.results > > File "./piglit-run.p

Re: [Mesa-dev] some radeon/r200 cleanup/fixes

2012-07-29 Thread Barto
thanks for the tip, I have compiled piglist without problems, I read the "readme" file and I have this error message when I launch the piglit-run.py script : ./piglit-run.py tests/sanity.tests results/sanity.results File "./piglit-run.py", line 71 print USAGE % {'progName': sys.argv[0]} I d

Re: [Mesa-dev] [PATCH 1/2] r600g: add htile support v9

2012-07-29 Thread Marek Olšák
On Tue, Jul 17, 2012 at 7:58 PM, wrote: > From: Jerome Glisse > > htile is used for HiZ and HiS support and fast Z/S clears. > This commit just adds the htile setup and Fast Z clear. > We don't take full advantage of HiS with that patch. > > v2 really use fast clear, still random issue with some

Re: [Mesa-dev] [PATCH 1/5] intel gen4/5: fix GL_VERTEX_PROGRAM_TWO_SIDE.

2012-07-29 Thread Olivier Galibert
On Tue, Jul 17, 2012 at 07:37:43AM -0700, Paul Berry wrote: > If possible, I would still like to think of a way to address this situation > that (a) doesn't require modifying both fragment shader back-ends and the > SF program, and (b) helps all Mesa drivers, not just Intel Gen4-5. > Especially bec

[Mesa-dev] [PATCH 8/8] radeonsi: fix stencil setup

2012-07-29 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/r600_resource.h |1 - src/gallium/drivers/radeonsi/r600_texture.c | 22 src/gallium/drivers/radeonsi/si_state.c | 74 +- 3 files changed, 37 insertions(+), 60 deletions(-) diff --git a/

[Mesa-dev] [PATCH 7/8] radeonsi: fix stencil op mapping

2012-07-29 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/si_state.c | 74 ++- 1 file changed, 34 insertions(+), 40 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 3da236c..b2dabf5 100644 --- a

[Mesa-dev] [PATCH 6/8] radeonsi: fix assertion in si_bind_vs_sampler

2012-07-29 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/si_state.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index a80e169..3da236c 100644 --- a/src/gallium/drivers/radeonsi/si_

[Mesa-dev] [PATCH 5/8] radeonsi: fix shader binding

2012-07-29 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/si_state.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index c417c9c..a80e169 100644 --- a/src/gallium/drivers/ra

[Mesa-dev] [PATCH 1/8] radeonsi: rename r600_resource to si_resource

2012-07-29 Thread Christian König
Also split it into seperate header and add some helper functions. Signed-off-by: Christian König Reviewed-by: Alex Deucher --- src/gallium/drivers/radeonsi/r600.h| 21 ++ src/gallium/drivers/radeonsi/r600_buffer.c | 12 ++-- src/gallium/drivers/radeonsi/r600_hw_c

[Mesa-dev] [PATCH 4/8] radeonsi: fix dummy export in shaders

2012-07-29 Thread Christian König
Signed-off-by: Christian König --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 17 + 1 file changed, 17 insertions(+) diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c index 66050d3..67a5465 100644 --- a/src/galli

[Mesa-dev] [PATCH 3/8] radeonsi: fix vertex buffer and elements

2012-07-29 Thread Christian König
Let's just use the T# descriptors until we get a fetch shader. Signed-off-by: Christian König Reviewed-by: Alex Deucher --- src/gallium/drivers/radeonsi/radeonsi_shader.c |6 +- src/gallium/drivers/radeonsi/si_state.c| 43 +++-- src/gallium/drivers/radeonsi/si_state.h

[Mesa-dev] [PATCH 2/8] radeonsi: fix shader size and handling

2012-07-29 Thread Christian König
We should always upload the shader here. Signed-off-by: Christian König Reviewed-by: Alex Deucher --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 26 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b