Re: [Mesa-dev] [PATCH] Implement x86_64 atomics for compilers w/o intrinsics.

2010-09-30 Thread tom fogal
Kenneth Graunke writes: > On Thursday 30 September 2010 12:22:37 tom fogal wrote: > > Jos=C3=A9 Fonseca writes: > > > I didn't test but looks fine to me. Please commit. > > > > Thanks. > > > > The merge of 7.8 into master was complex at best, so I pushed 7.8 > > and then cherry-picked the commits

[Mesa-dev] [PATCH] dri/r600: Fix insufficient return type

2010-09-30 Thread Nicolas Kaiser
Two functions with unsigned return type, but returning negative constants to indicate an error condition. Inspired by similar Linux kernel patches by Julia Lawall (http://coccinelle.lip6.fr/). Signed-off-by: Nicolas Kaiser --- src/mesa/drivers/dri/r600/evergreen_render.c |2 +- src/mesa/dri

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH] Implement x86_64 atomics for compilers w/o intrinsics.

2010-09-30 Thread tom fogal
José Fonseca writes: > I didn't test but looks fine to me. Please commit. Thanks. The merge of 7.8 into master was complex at best, so I pushed 7.8 and then cherry-picked the commits to master. Hope that's okay.. -tom > On Wed, 2010-09-29 at 12:37 -0700, tom fogal wrote: > > ping? > > > > -

Re: [Mesa-dev] depth writing and missing something

2010-09-30 Thread Marek Olšák
On Thu, Sep 30, 2010 at 4:57 PM, Brian Paul wrote: > On 09/29/2010 07:34 PM, Dave Airlie wrote: > >> So I've been playing with stencil writing on r600, and it lead me to >> examine the depth writing. >> >> So at the moment in gallium if we are writing to depth via DrawPixels, >> we construct a fr

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Alex Deucher
On Thu, Sep 30, 2010 at 1:43 PM, José Fonseca wrote: > On Thu, 2010-09-30 at 10:19 -0700, Roland Scheidegger wrote: >> On 30.09.2010 16:44, José Fonseca wrote: >> > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: >> >> On 09/30/2010 12:41 AM, Dave Airlie wrote: >> >>> some background: >> >>>

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread José Fonseca
On Thu, 2010-09-30 at 10:19 -0700, Roland Scheidegger wrote: > On 30.09.2010 16:44, José Fonseca wrote: > > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: > >> On 09/30/2010 12:41 AM, Dave Airlie wrote: > >>> some background: > >>> > >>> so on r600g, the only way to directly write to the sten

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Roland Scheidegger
On 30.09.2010 16:44, José Fonseca wrote: > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: >> On 09/30/2010 12:41 AM, Dave Airlie wrote: >>> some background: >>> >>> so on r600g, the only way to directly write to the stencil is via the >>> shader, using a transfer would require an extra step t

Re: [Mesa-dev] depth writing and missing something

2010-09-30 Thread José Fonseca
On Thu, 2010-09-30 at 07:57 -0700, Brian Paul wrote: > On 09/29/2010 07:34 PM, Dave Airlie wrote: > > So I've been playing with stencil writing on r600, and it lead me to > > examine the depth writing. > > > > So at the moment in gallium if we are writing to depth via DrawPixels, > > we construct a

Re: [Mesa-dev] [PATCH 0/24] remove duplicated includes

2010-09-30 Thread Brian Paul
On 09/30/2010 08:18 AM, Nicolas Kaiser wrote: These patches remove duplicated includes of guarded headers. Nicolas Kaiser (24): swrast: remove duplicated include egl: remove duplicated include gallium/rtasm: remove duplicated include gallium/util: remove duplicated include gallium

Re: [Mesa-dev] depth writing and missing something

2010-09-30 Thread Brian Paul
On 09/29/2010 07:34 PM, Dave Airlie wrote: So I've been playing with stencil writing on r600, and it lead me to examine the depth writing. So at the moment in gallium if we are writing to depth via DrawPixels, we construct a fragment program that samples from a texture. TEX OUT[0].z, IN[1], SAM

[Mesa-dev] [PATCH 24/24] st: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/state_tracker/st_cb_rasterpos.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_rasterpos.c b/src/mesa/state_tracker/st_cb_rasterpos.c index 7b2eb80..e5f7b6f 100644 --- a/src/mesa/state_tracker/st_cb_ras

[Mesa-dev] [PATCH 23/24] math: remove duplicated includes

2010-09-30 Thread Nicolas Kaiser
Remove duplicated includes. --- src/mesa/math/m_matrix.c |1 - src/mesa/math/m_vector.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/mesa/math/m_matrix.c b/src/mesa/math/m_matrix.c index 048b231..02aedba 100644 --- a/src/mesa/math/m_matrix.c +++ b/src/mesa/math/

[Mesa-dev] [PATCH 22/24] main: remove duplicated includes

2010-09-30 Thread Nicolas Kaiser
Remove duplicated includes. --- src/mesa/main/api_exec.c |5 + src/mesa/main/dlist.c|1 - src/mesa/main/renderbuffer.c |1 - 3 files changed, 1 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index b87aa47..ae653e1 100644

[Mesa-dev] [PATCH 21/24] dri/savage: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/savage/savage_xmesa.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/savage/savage_xmesa.c b/src/mesa/drivers/dri/savage/savage_xmesa.c index cbdc9c8..bbf2fd3 100644 --- a/src/mesa/drivers/dri/savag

[Mesa-dev] [PATCH 20/24] dri/radeon: remove duplicated includes

2010-09-30 Thread Nicolas Kaiser
Remove duplicated includes. --- src/mesa/drivers/dri/radeon/radeon_ioctl.c |1 - src/mesa/drivers/dri/radeon/radeon_maos_verts.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.c b/src/mesa/drivers/dri/radeon/radeon_ioctl.

[Mesa-dev] [PATCH 19/24] dri/r600: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/r600/r600_cmdbuf.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/r600/r600_cmdbuf.c b/src/mesa/drivers/dri/r600/r600_cmdbuf.c index b3331fc..ce2f777 100644 --- a/src/mesa/drivers/dri/r600/r600_cmdb

[Mesa-dev] [PATCH 18/24] dri/r300: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/r300/radeon_context.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/r300/radeon_context.h b/src/mesa/drivers/dri/r300/radeon_context.h index da4812d..e793656 100644 --- a/src/mesa/drivers/dri/r300

[Mesa-dev] [PATCH 17/24] dri/r128: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/r128/r128_tex.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/r128/r128_tex.c b/src/mesa/drivers/dri/r128/r128_tex.c index b5a19b5..2dd47b0 100644 --- a/src/mesa/drivers/dri/r128/r128_tex.c +++ b/s

[Mesa-dev] [PATCH 16/24] dri/mga: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/mga/mga_xmesa.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/mga/mga_xmesa.c b/src/mesa/drivers/dri/mga/mga_xmesa.c index 069947e..13f73a8 100644 --- a/src/mesa/drivers/dri/mga/mga_xmesa.c +++ b/s

[Mesa-dev] [PATCH 15/24] dri/intel: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/intel/intel_tex_image.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_tex_image.c b/src/mesa/drivers/dri/intel/intel_tex_image.c index 03aba58..187e537 100644 --- a/src/mesa/drivers/dri

[Mesa-dev] [PATCH 09/24] gallium/winsys: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/gallium/winsys/svga/drm/vmw_screen_dri.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/gallium/winsys/svga/drm/vmw_screen_dri.c b/src/gallium/winsys/svga/drm/vmw_screen_dri.c index 7bd4407..258084a 100644 --- a/src/gallium/winsys/s

[Mesa-dev] [PATCH 14/24] dri/i965: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/i965/brw_vtbl.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c index 8f1601d..3d7a98c 100644 --- a/src/mesa/drivers/dri/i965/brw_vtbl.c +++ b/s

[Mesa-dev] [PATCH 13/24] dri/i915: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/i915/i915_context.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c index bf6762d..412714a 100644 --- a/src/mesa/drivers/dri/i915/i915_c

[Mesa-dev] [PATCH 12/24] dri/i810: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/i810/i810tex.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i810/i810tex.c b/src/mesa/drivers/dri/i810/i810tex.c index 2ccb956..5c5c80d 100644 --- a/src/mesa/drivers/dri/i810/i810tex.c +++ b/src/m

[Mesa-dev] [PATCH 11/24] dri/common: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/drivers/dri/common/vblank.h |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/common/vblank.h b/src/mesa/drivers/dri/common/vblank.h index 29d1ad8..067fb5e 100644 --- a/src/mesa/drivers/dri/common/vblank.h +++

[Mesa-dev] [PATCH 10/24] glx: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/glx/glxclient.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h index 324b5a6..36a0808 100644 --- a/src/glx/glxclient.h +++ b/src/glx/glxclient.h @@ -89,8 +89,6 @@ typedef struct __GLXDRIdisplayR

[Mesa-dev] [PATCH 08/24] gallium/st: remove duplicated includes

2010-09-30 Thread Nicolas Kaiser
Remove duplicated includes. --- src/gallium/state_trackers/python/st_device.c |1 - src/gallium/state_trackers/vega/api_images.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/python/st_device.c b/src/gallium/state_trackers/python/st_devic

[Mesa-dev] [PATCH 07/24] gallium/softpipe: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/gallium/drivers/softpipe/sp_state_sampler.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_state_sampler.c b/src/gallium/drivers/softpipe/sp_state_sampler.c index aedb5bb..b59fbc3 100644 --- a/src/gallium

[Mesa-dev] [PATCH 06/24] gallium/llvmpipe: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/gallium/drivers/llvmpipe/lp_setup_point.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_setup_point.c b/src/gallium/drivers/llvmpipe/lp_setup_point.c index a95c157..3b217f9 100644 --- a/src/gallium/drive

[Mesa-dev] [PATCH 05/24] gallium/i915: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/gallium/drivers/i915/i915_state_emit.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c index 7bb7893..bd059d5 100644 --- a/src/gallium/drivers/i915/i

[Mesa-dev] [PATCH 04/24] gallium/util: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/gallium/auxiliary/util/u_sse.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_sse.h b/src/gallium/auxiliary/util/u_sse.h index 87959ab..03198c9 100644 --- a/src/gallium/auxiliary/util/u_sse.h +++ b/src/gall

[Mesa-dev] [PATCH 03/24] gallium/rtasm: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/gallium/auxiliary/rtasm/rtasm_execmem.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/rtasm/rtasm_execmem.c b/src/gallium/auxiliary/rtasm/rtasm_execmem.c index 65d5ce7..fbde1d1 100644 --- a/src/gallium/auxiliary/r

[Mesa-dev] [PATCH 02/24] egl: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/egl/main/egldriver.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index 67f1d3d..a4ff691 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -18,7 +18,6 @@ #inclu

[Mesa-dev] [PATCH 01/24] swrast: remove duplicated include

2010-09-30 Thread Nicolas Kaiser
Remove duplicated include. --- src/mesa/swrast/s_aatriangle.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mesa/swrast/s_aatriangle.c b/src/mesa/swrast/s_aatriangle.c index 1d90f32..1753167 100644 --- a/src/mesa/swrast/s_aatriangle.c +++ b/src/mesa/swrast/s_aatriang

[Mesa-dev] [PATCH 0/24] remove duplicated includes

2010-09-30 Thread Nicolas Kaiser
These patches remove duplicated includes of guarded headers. Nicolas Kaiser (24): swrast: remove duplicated include egl: remove duplicated include gallium/rtasm: remove duplicated include gallium/util: remove duplicated include gallium/i915: remove duplicated include gallium/llvmpipe:

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread José Fonseca
On Thu, 2010-09-30 at 07:44 -0700, José Fonseca wrote: > On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: > > On 09/30/2010 12:41 AM, Dave Airlie wrote: > > > some background: > > > > > > so on r600g, the only way to directly write to the stencil is via the > > > shader, using a transfer would

Re: [Mesa-dev] depth writing and missing something

2010-09-30 Thread Brian Paul
Actually, how bits are packed in texels is orthogonal to understanding what the TEX/TXP/etc instructions return. I think the current table is in the right place but we should probably have another table elsewhere that explains all the texel/pixel layouts. -Brian On 09/30/2010 01:08 AM, Co

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread José Fonseca
On Thu, 2010-09-30 at 07:32 -0700, Brian Paul wrote: > On 09/30/2010 12:41 AM, Dave Airlie wrote: > > some background: > > > > so on r600g, the only way to directly write to the stencil is via the > > shader, using a transfer would require an extra step to flush the DS > > buffer out via the pipe a

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Brian Paul
On 09/30/2010 12:41 AM, Dave Airlie wrote: some background: so on r600g, the only way to directly write to the stencil is via the shader, using a transfer would require an extra step to flush the DS buffer out via the pipe again to make it useable by the hw as a DS buffer. So using the current g

[Mesa-dev] [PATCH] glsl: fix crash in loop analysis when some loop controls can't be found

2010-09-30 Thread Aras Pranckevicius
Attached patch fixes crash in GLSL loop analysis when some of the loop's controls (e.g. "from") can not be determined. This happens on a shader like this (there's another loop between counter initialization & loop): void main() { float a = 0.0; int k = 0; for (int i = 0; i < 3; ++i) a += 1.0; for

Re: [Mesa-dev] first attempt at shader stencil export

2010-09-30 Thread Keith Whitwell
On Wed, 2010-09-29 at 23:41 -0700, Dave Airlie wrote: > some background: > > so on r600g, the only way to directly write to the stencil is via the > shader, using a transfer would require an extra step to flush the DS > buffer out via the pipe again to make it useable by the hw as a DS > buffer. S

Re: [Mesa-dev] [PATCH] Implement x86_64 atomics for compilers w/o intrinsics.

2010-09-30 Thread José Fonseca
I didn't test but looks fine to me. Please commit. Jose On Wed, 2010-09-29 at 12:37 -0700, tom fogal wrote: > ping? > > -tom > > tom fogal writes: > > A friend of mine had trouble building 7.8.2 on an old gcc3.3 system > > (no gcc intrinsics). I put together this patch and he said his build >

[Mesa-dev] [Bug 30493] read-front piglit test fails on llvmpipe/softpipe

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30493 --- Comment #1 from Michal Suchanek 2010-09-30 02:15:20 PDT --- The read-front piglit test fails with llvmpipe / softpipe on mesa 7.9-devel / 7.10-devel. The test usually fails on swrast and may fail with other drivers with current freeglut due

[Mesa-dev] [Bug 30493] New: read-front piglit test fails on llvmpipe/softpipe

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30493 Summary: read-front piglit test fails on llvmpipe/softpipe Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: normal

Re: [Mesa-dev] [PATCH] egl_g3d: don't drop single-buffered configs

2010-09-30 Thread Chia-I Wu
On Fri, Sep 24, 2010 at 9:17 PM, Luca Barbieri wrote: > This is needed to be able to use EGL on any existing X window, and > seems a good idea in general, > > Rejecting single-buffered configs should be done in EGL itself if > necessary, and not in the native API. I've commited a modified one whic

[Mesa-dev] [Bug 30490] mesa requires g++ to build but configure does not check for it

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30490 --- Comment #1 from Michal Suchanek 2010-09-30 01:31:46 PDT --- Created an attachment (id=39068) --> (https://bugs.freedesktop.org/attachment.cgi?id=39068) build log -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email -

[Mesa-dev] [Bug 30490] mesa requires g++ to build but configure does not check for it

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30490 Michal Suchanek changed: What|Removed |Added Attachment #39067|application/octet-stream|text/plain mime type|

[Mesa-dev] [Bug 30490] New: mesa requires g++ to build but configure does not check for it

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30490 Summary: mesa requires g++ to build but configure does not check for it Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW

[Mesa-dev] [Bug 30489] mesa 7.9 fails to build on 32bit system with 64bit kernel

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30489 --- Comment #1 from Michal Suchanek 2010-09-30 01:25:36 PDT --- Created an attachment (id=39066) --> (https://bugs.freedesktop.org/attachment.cgi?id=39066) build log -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email -

[Mesa-dev] [Bug 30489] mesa 7.9 fails to build on 32bit system with 64bit kernel

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30489 Michal Suchanek changed: What|Removed |Added Attachment #39065|application/octet-stream|text/plain mime type|

[Mesa-dev] [Bug 30489] New: mesa 7.9 fails to build on 32bit system with 64bit kernel

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=30489 Summary: mesa 7.9 fails to build on 32bit system with 64bit kernel Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2010-09-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Brian Rogers changed: What|Removed |Added CC||br...@xyzw.org -- Configure bugmail: htt

Re: [Mesa-dev] depth writing and missing something

2010-09-30 Thread Corbin Simpson
Just realized that the texture format table in question is in the TGSI doc page, at the bottom. It really should have its own page. ~ C. On Wed, Sep 29, 2010 at 11:36 PM, Jose Fonseca wrote: > Sorry, I've should have drunk my morning coffee before replying. > > You're refferring to writing and n