Re: [Mesa-dev] decoupling XCB from Mesa

2011-03-30 Thread Srini
Hi Jerome, i understand your point,i agree i have registered the pointer for function "dri2_get_buffers_flip" during initialization, and it is called from eglMakeCurrent( ) just after the eglCreateWindowSurface(), as you said. the implementation of get_buffers is as below. static __DRIbuffer *

Re: [Mesa-dev] Gallium softpipe driver build instructions

2011-03-30 Thread kumar vemuri
OK. I tried doing ./configure with --enable-gallium-swrast and i get this error: checking for INTEL... configure: error: Package requirements (libdrm_intel >= 2.4.19) were not met: Requested 'libdrm_intel >= 2.4.19' but version of libdrm is 2.4.18 Consider adjusting the PKG_CONFIG_PATH environme

Re: [Mesa-dev] [PATCH 2/2] prog_optimize: Add reads without writes optimization pass

2011-03-30 Thread Tom Stellard
On Wed, Mar 30, 2011 at 10:09:58AM -0700, Ian Romanick wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On 03/29/2011 08:27 PM, Tom Stellard wrote: > > > > The reason there are reads of undefined values is because of all the > > conditional assignments generated by the IF to condition

Re: [Mesa-dev] [PATCH 1/4] dispatch: Use general-dynamic TLS model rather than initial-exec.

2011-03-30 Thread Jerome Glisse
On Wed, Mar 30, 2011 at 8:18 PM, Christopher James Halse Rogers wrote: > On Wed, 2011-03-30 at 16:21 -0400, Jerome Glisse wrote: >> On Thu, Mar 24, 2011 at 2:32 AM, Christopher James Halse Rogers >> wrote: >> > On Thu, 2011-03-24 at 16:07 +1100, Christopher James Halse Rogers wrote: >> >> On Wed,

Re: [Mesa-dev] [PATCH 1/4] dispatch: Use general-dynamic TLS model rather than initial-exec.

2011-03-30 Thread Christopher James Halse Rogers
On Wed, 2011-03-30 at 16:21 -0400, Jerome Glisse wrote: > On Thu, Mar 24, 2011 at 2:32 AM, Christopher James Halse Rogers > wrote: > > On Thu, 2011-03-24 at 16:07 +1100, Christopher James Halse Rogers wrote: > >> On Wed, 2011-03-23 at 17:48 -0700, Eric Anholt wrote: > >> > On Thu, 24 Mar 2011 10:3

Re: [Mesa-dev] Patch to add a fbo test for multiple drawbuffers, with additive blending enabled

2011-03-30 Thread Julian Adams
whoops, meant to send that to the Piglit list On 30 March 2011 23:08, Julian Adams wrote: > This tests multiple drawbuffers with the same additive blending for each. > It demonstrates an issue with r600g for which I've sent a patch to the > Mesa development list. It would be great if you could re

[Mesa-dev] [PATCH] Added a fbo test for multiple drawbuffer, with additive blending enabled The blend is the same for each drawbuffer.

2011-03-30 Thread Julian Adams
--- tests/all.tests |1 + tests/fbo/CMakeLists.gl.txt |1 + tests/fbo/fbo-drawbuffers-blend-add.c | 251 + 3 files changed, 253 insertions(+), 0 deletions(-) create mode 100644 tests/fbo/fbo-drawbuffers-blend-add.c diff --g

[Mesa-dev] Patch to add a fbo test for multiple drawbuffers, with additive blending enabled

2011-03-30 Thread Julian Adams
This tests multiple drawbuffers with the same additive blending for each. It demonstrates an issue with r600g for which I've sent a patch to the Mesa development list. It would be great if you could review and apply. Thanks, Jools ___ mesa-dev mailing

[Mesa-dev] [PATCH] r600g: fix blend setting with multiple render targets all with the same blend

2011-03-30 Thread Julian Adams
--- src/gallium/drivers/r600/r600_state.c | 22 +- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index e202056..05180bd 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/sr

[Mesa-dev] r600g: fix blend setting with multiple render targets all with the same blend

2011-03-30 Thread Julian Adams
It's a simple patch, please take a look and apply / give feedback. I've got a piglit test for this, which I'll send to the piglit list. thanks, Jools ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listin

Re: [Mesa-dev] Mesa 7.10.2 and Mesa 7.9.3

2011-03-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/27/2011 05:14 PM, Marek Olšák wrote: > Wednesday sounds good. Hopefully I will find some time to actually test > Gallium this time. ;) I'm going to delay a day or two. We had a regression reported with one of the i965 cherry-picks (https://bugs

Re: [Mesa-dev] [PATCH 1/4] dispatch: Use general-dynamic TLS model rather than initial-exec.

2011-03-30 Thread Jerome Glisse
On Thu, Mar 24, 2011 at 2:32 AM, Christopher James Halse Rogers wrote: > On Thu, 2011-03-24 at 16:07 +1100, Christopher James Halse Rogers wrote: >> On Wed, 2011-03-23 at 17:48 -0700, Eric Anholt wrote: >> > On Thu, 24 Mar 2011 10:33:36 +1100, christopher.halse.rog...@canonical.com >> > wrote: >>

[Mesa-dev] [Bug 35814] New: [TRACKER] ARB_texture_float extension support

2011-03-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35814 Summary: [TRACKER] ARB_texture_float extension support Product: Mesa Version: unspecified Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority

Re: [Mesa-dev] [PATCH 2/2] prog_optimize: Add reads without writes optimization pass

2011-03-30 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/29/2011 08:27 PM, Tom Stellard wrote: > On Tue, Mar 29, 2011 at 02:16:39PM -0700, Eric Anholt wrote: > >> On Tue, 29 Mar 2011 11:35:33 -0700, Tom Stellard wrote: >>> On Tue, Mar 29, 2011 at 10:19:13AM -0700, Eric Anholt wrote: On Mon, 28 M

[Mesa-dev] [Bug 35802] SIGSEGV in _mesa_AreProgramsResidentNV

2011-03-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35802 --- Comment #3 from Rui Tiago Matos 2011-03-30 09:29:56 PDT --- (In reply to comment #1) > > $ git bisect bad > > 713230ff39cd22a2082c12b937889c3ef81973ac is the first bad commit > > Wrong! Bisecting further... Sorry for the noise. After a bui

Re: [Mesa-dev] [PATCH 3/4] st/mesa: Clamp min_lod and max_lod to BaseLevel and MaxLevel

2011-03-30 Thread Christoph Bumiller
On 03/30/2011 05:41 PM, Fabian Bieler wrote: > The problem ist that if BaseLevel + MinLod is bigger than MaxLevel, min_lod > becomes bigger than max_lod, so the code below swaps min_lod and max_lod and > we send a max_lod to the driver that is bigger than MaxLevel. > > This could also be fixed b

[Mesa-dev] [Bug 35802] SIGSEGV in _mesa_AreProgramsResidentNV

2011-03-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35802 --- Comment #2 from Marek Olšák 2011-03-30 09:19:25 PDT --- When crossing the "regenerate glapi files" commits, make sure you type 'make clean', otherwise there is a certain probability that every driver will crash because of a build-system bug.

Re: [Mesa-dev] [PATCH 4/4] st/mesa: Set min/max_lod to BaseLevel w/o mipmapping

2011-03-30 Thread Henri Verbeet
You don't want that, the state tracker should just set first_level correctly. In particular, with something like r600g the hardware already takes care of this and min_lod ends up being ignored when mipmapping is disabled. Another consideration is that with sampler objects you could have multiple sa

[Mesa-dev] [Bug 35802] SIGSEGV in _mesa_AreProgramsResidentNV

2011-03-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35802 --- Comment #1 from Rui Tiago Matos 2011-03-30 09:02:42 PDT --- > $ git bisect bad > 713230ff39cd22a2082c12b937889c3ef81973ac is the first bad commit Wrong! Bisecting further... Sorry for the noise. -- Configure bugmail: https://bugs.freedesk

[Mesa-dev] [Bug 35802] New: SIGSEGV in _mesa_AreProgramsResidentNV

2011-03-30 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35802 Summary: SIGSEGV in _mesa_AreProgramsResidentNV Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: normal Priority: medium Co

[Mesa-dev] [PATCH 4/4] st/mesa: Set min/max_lod to BaseLevel w/o mipmapping

2011-03-30 Thread Fabian Bieler
From 555867d4bdbd9463df8b9e85828e6425bf0c14f8 Mon Sep 17 00:00:00 2001 From: Fabian Bieler Date: Tue, 29 Mar 2011 11:59:08 +0200 Subject: [PATCH 4/4] st/mesa: Set min/max_lod to BaseLevel w/o mipmapping According to chapter 3.8.8 of the OpenGL 2.1 specification, the GL should always select base_

[Mesa-dev] [PATCH 3/4] st/mesa: Clamp min_lod and max_lod to BaseLevel and MaxLevel

2011-03-30 Thread Fabian Bieler
The problem ist that if BaseLevel + MinLod is bigger than MaxLevel, min_lod becomes bigger than max_lod, so the code below swaps min_lod and max_lod and we send a max_lod to the driver that is bigger than MaxLevel. This could also be fixed by adding a condition like if (sampler->min_lod > texobj

[Mesa-dev] [PATCH 2/4] st/mesa: Apply LOD from texture object

2011-03-30 Thread Fabian Bieler
From fa33b8f497083b57c3b744a23c92c1260f449b6a Mon Sep 17 00:00:00 2001 From: Fabian Bieler Date: Fri, 25 Mar 2011 11:06:01 +0100 Subject: [PATCH 2/4] st/mesa: Apply LOD from texture object --- src/mesa/state_tracker/st_atom_sampler.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)

[Mesa-dev] [PATCH 1/4] st/mesa: Apply LOD bias from correct texture unit

2011-03-30 Thread Fabian Bieler
From 301b77d35543f7a1540e778b7041d128a858a43e Mon Sep 17 00:00:00 2001 From: Fabian Bieler Date: Fri, 25 Mar 2011 11:04:41 +0100 Subject: [PATCH 1/4] st/mesa: Apply LOD bias from correct texture unit --- src/mesa/state_tracker/st_atom_sampler.c |2 +- 1 files changed, 1 insertions(+), 1 del

Re: [Mesa-dev] decoupling XCB from Mesa

2011-03-30 Thread Jerome Glisse
On Wed, Mar 30, 2011 at 2:30 AM, Srini wrote: > Hi Jerome, > >     Thanks for Reply, what you said is right for my attempt on software > acceleration. I added a folder called "flip" in > mesa/src/gallium/state_tracker/egl/ and created the egl software driver > called "egl_flip_swrast.so" its worki

Re: [Mesa-dev] Gallium softpipe driver build instructions

2011-03-30 Thread Marek Olšák
Try to add this configure parameter: --enable-gallium-swrast Marek On Wed, Mar 30, 2011 at 3:39 PM, kumar vemuri wrote: > Thanks Marek for the reply. > > I compiled Mesa with default params and i dont see swrastg_dri.so built > in the lib/gallium directory. I am doing this on Mesa 7.8.2. > > a

Re: [Mesa-dev] Gallium softpipe driver build instructions

2011-03-30 Thread kumar vemuri
Thanks Marek for the reply. I compiled Mesa with default params and i dont see swrastg_dri.so built in the lib/gallium directory. I am doing this on Mesa 7.8.2. am i missing something. Please let me know. thx K On Wed, 2011-03-30 at 13:41 +0200, Marek Olšák wrote: > Build Mesa with the defaul

Re: [Mesa-dev] [PATCH] draw: implement vertex color clamping

2011-03-30 Thread Keith Whitwell
> On Wed, Mar 30, 2011 at 2:45 PM, Keith Whitwell > wrote: > > > > diff --git a/src/gallium/auxiliary/draw/draw_llvm.h > > b/src/gallium/auxiliary/draw/draw_llvm.h > > > index e8623e7..643a9ef 100644 > > > --- a/src/gallium/auxiliary/draw/draw_llvm.h > > > +++ b/src/gallium/auxiliary/draw/draw_l

Re: [Mesa-dev] [PATCH] draw: implement vertex color clamping

2011-03-30 Thread Marek Olšák
On Wed, Mar 30, 2011 at 2:45 PM, Keith Whitwell wrote: > > diff --git a/src/gallium/auxiliary/draw/draw_llvm.h > b/src/gallium/auxiliary/draw/draw_llvm.h > > index e8623e7..643a9ef 100644 > > --- a/src/gallium/auxiliary/draw/draw_llvm.h > > +++ b/src/gallium/auxiliary/draw/draw_llvm.h > > @@ -162

Re: [Mesa-dev] [PATCH] draw: implement vertex color clamping

2011-03-30 Thread Keith Whitwell
On Wed, 2011-03-30 at 14:33 +0200, Marek Olšák wrote: > From: Luca Barbieri > > Disclaimer: > I will not push this code if this patch does not get any attention, > because I cannot say if it is 100% correct (the code is not mine). > However last time I checked, it passed all the related tes

Re: [Mesa-dev] [PATCH] egl_dri2 x11: Fix a typo

2011-03-30 Thread Kristian Høgsberg
On Tue, Mar 29, 2011 at 1:41 AM, Feng, Haitao wrote: > From bc4ccf8d1c0474f432a3740a9c0bb5a67b3ebae8 Mon Sep 17 00:00:00 2001 > From: haitao > Date: Tue, 29 Mar 2011 13:33:46 +0800 > Subject: [PATCH] egl_dri2 x11: Fix a typo Thanks, applied. Kristian > Signed-off-by: Haitao Feng > --- >  src/

[Mesa-dev] [PATCH] draw: implement vertex color clamping

2011-03-30 Thread Marek Olšák
From: Luca Barbieri Disclaimer: I will not push this code if this patch does not get any attention, because I cannot say if it is 100% correct (the code is not mine). However last time I checked, it passed all the related tests. Also, the SSE and PPC paths are disabled with this code. -

Re: [Mesa-dev] Gallium softpipe driver build instructions

2011-03-30 Thread Marek Olšák
Build Mesa with the default configure parameters and copy lib/gallium/swrastg_dri.so to /usr/lib/dri/swrast_dri.so Marek On Wed, Mar 30, 2011 at 7:42 AM, kumar vemuri wrote: > Can someone please help out with the instructions. > > thx > K > > On Tue, 2011-03-29 at 10:33 -0700, kumar vemuri wrot