[Mesa-dev] [PATCH 2/2] prog_optimize: Add simplify CMP optimization pass

2011-04-04 Thread Tom Stellard
This pass removes conditions from conditional assignments when possible. This pass is useful for hardware that requires a lot of lowering passes that generate many CMP instructions. --- src/mesa/program/prog_optimize.c | 87 ++ 1 files changed, 87 insertions(+

[Mesa-dev] [PATCH 1/2] prog_optimize: get_src_arg_mask() respect writemask for OPCODE_CMP

2011-04-04 Thread Tom Stellard
--- src/mesa/program/prog_optimize.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/mesa/program/prog_optimize.c b/src/mesa/program/prog_optimize.c index 164297a..f62d890 100644 --- a/src/mesa/program/prog_optimize.c +++ b/src/mesa/program/prog_optimize.c @@ -74,6 +74

[Mesa-dev] [PATCH] nv50: check for and delete no-op instructions when flattening conditional jumps

2011-04-04 Thread Bryan Cain
Fixes an assertion failure encountered in the pipe-video branch. --- src/gallium/drivers/nv50/nv50_pc_optimize.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/nv50/nv50_pc_optimize.c b/src/gallium/drivers/nv50/nv50_pc_optimize.c index 281ccf7..68

Re: [Mesa-dev] [PATCH 2/3] st/mesa: Finalize fbo texture attachments

2011-04-04 Thread Brian Paul
On 04/02/2011 11:41 AM, Fabian Bieler wrote: Does this fix a specific bug or do you have a test program that demonstrates the issue? The patch looks OK on the surface but I'd like to know a bit more about what's going on. -Brian ___ mesa-dev ma

Re: [Mesa-dev] [PATCH 1/3] mesa: Guard against null pointer deref in fbo validation

2011-04-04 Thread Brian Paul
On 04/02/2011 11:41 AM, Fabian Bieler wrote: Looks good. I'll commit it soon. -Brian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] ir_to_mesa: Handle shadow compare w/projection and LOD bias correctly

2011-04-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/04/2011 02:42 PM, Brian Paul wrote: > BTW, as long as you're looking at shadow samplers, we'll need support > for cubical shadow map sampling in the (hopefully not too distant) > future. The coord.W component would be the distance value. I have

Re: [Mesa-dev] [PATCH] ir_to_mesa: Handle shadow compare w/projection and LOD bias correctly

2011-04-04 Thread Brian Paul
BTW, as long as you're looking at shadow samplers, we'll need support for cubical shadow map sampling in the (hopefully not too distant) future. The coord.W component would be the distance value. I haven't looked to see if that's a new issue in the IR or code generators. -Brian _

Re: [Mesa-dev] GSoC : Video decoding state tracker for Gallium3d

2011-04-04 Thread ★ Emeric
Hi Aaron, Working on the loop filter first is probably a good idea you are right, I will change the roadmap. Beside as it is the last operation to be done during the decoding and there is no dependency upon other operations maybe more aggressive parallelization can be achieved. I did not have tim

Re: [Mesa-dev] GSoC : Video decoding state tracker for Gallium3d

2011-04-04 Thread Aaron Watry
Hi Emeric, It doesn't affect your proposal too much, but I'd recommend changing the order of your August tasks a bit. I would suggest trying to work on the loop filter before the motion compensation. A few of the 720p and 1080p videos that I profiled during my thesis work suggested that the loop

Re: [Mesa-dev] [PATCH] nv50: prevent NV_OP_SELECT instructions from having the flags_def attribute defined

2011-04-04 Thread Christoph Bumiller
On 04/04/2011 10:53 PM, Bryan Cain wrote: > --- > src/gallium/drivers/nv50/nv50_pc.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/src/gallium/drivers/nv50/nv50_pc.c > b/src/gallium/drivers/nv50/nv50_pc.c > index 82f1b84..f6870cc 100644 > --- a/src/gallium/drivers

Re: [Mesa-dev] [PATCH] ir_to_mesa: Handle shadow compare w/projection and LOD bias correctly

2011-04-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/04/2011 02:05 PM, Brian Paul wrote: > On 04/04/2011 02:40 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> The code would previously handle the projection, then swizzle the >> shadow comparitor into place. However, when the projection is done

Re: [Mesa-dev] [PATCH] ir_to_mesa: Handle shadow compare w/projection and LOD bias correctly

2011-04-04 Thread Brian Paul
On 04/04/2011 02:40 PM, Ian Romanick wrote: From: Ian Romanick The code would previously handle the projection, then swizzle the shadow comparitor into place. However, when the projection is done "by hand," as in the TXB case, the unprojected shadow comparitor would over-write the projected sha

[Mesa-dev] [PATCH] nv50: prevent NV_OP_SELECT instructions from having the flags_def attribute defined

2011-04-04 Thread Bryan Cain
--- src/gallium/drivers/nv50/nv50_pc.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/nv50/nv50_pc.c b/src/gallium/drivers/nv50/nv50_pc.c index 82f1b84..f6870cc 100644 --- a/src/gallium/drivers/nv50/nv50_pc.c +++ b/src/gallium/drivers/nv50/nv50_pc.c @

[Mesa-dev] [PATCH 2/2] mesa: Include GIT SHA1 in GL version string

2011-04-04 Thread Ian Romanick
From: Ian Romanick --- Makefile|4 bin/extract_git_sha1| 10 ++ src/mesa/main/version.c |7 ++- 3 files changed, 20 insertions(+), 1 deletions(-) create mode 100755 bin/extract_git_sha1 diff --git a/Makefile b/Makefile index a1ab65e..be95679 10064

[Mesa-dev] That silly DRIVER_DATE field, v2

2011-04-04 Thread Ian Romanick
This is basically the same as the previous patches. Per review comments by Brian, I've moved the git-fu shell code to bin/extract_git_sha1. Unless there are objections, I'd like to push this (with the various Reviewed-by and Acked-by lines added) sooner rather than later. We can improve the git-

[Mesa-dev] [PATCH 1/2] dri: Remove driver date from renderer string

2011-04-04 Thread Ian Romanick
From: Ian Romanick --- src/mesa/drivers/dri/common/utils.c|5 ++--- src/mesa/drivers/dri/common/utils.h|2 +- src/mesa/drivers/dri/i810/i810context.c|4 +--- src/mesa/drivers/dri/intel/intel_context.c |6 +- src/mesa/drivers

[Mesa-dev] [PATCH] ir_to_mesa: Handle shadow compare w/projection and LOD bias correctly

2011-04-04 Thread Ian Romanick
From: Ian Romanick The code would previously handle the projection, then swizzle the shadow comparitor into place. However, when the projection is done "by hand," as in the TXB case, the unprojected shadow comparitor would over-write the projected shadow comparitor. Shadow comparison with proje

Re: [Mesa-dev] GSoC : Video decoding state tracker for Gallium3d

2011-04-04 Thread ★ Emeric
Hello again ! Last call for comments, this is the GSoC proposal that I will submit, probably tommorow. Thank you, Emeric GSoC 2011 Proposal Hardware Accelerated VP8 Video Decoding for Gallium3d Abstract === The goal of this project is to write a Gallium3D s

Re: [Mesa-dev] [PATCH 2/2] mesa: Include GIT SHA1 in GL version string

2011-04-04 Thread Brian Paul
Getting rid of DRIVER_DATE sounds good. One comment below... On 03/31/2011 02:30 PM, Ian Romanick wrote: From: Ian Romanick --- Makefile|8 src/mesa/main/version.c |7 ++- 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefi

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

2011-04-04 Thread Julian Adams
I've re-posted the r600 patch to the list with the revised initialisation of "j", and also posted a patch for evergreen. Jools On 4 April 2011 15:18, Henri Verbeet wrote: > On 31 March 2011 18:37, Julian Adams wrote: >> On 31 March 2011 12:07, Henri Verbeet wrote: >>> Evergreen probably needs

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

2011-04-04 Thread Julian Adams
--- src/gallium/drivers/r600/evergreen_state.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergreen_state.c index 8f93eb8..97f9a07 100644 --- a/src/gallium/drivers/r600/evergreen_s

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

2011-04-04 Thread Julian Adams
--- src/gallium/drivers/r600/r600_state.c | 17 ++--- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c index e202056..7ab6965 100644 --- a/src/gallium/drivers/r600/r600_state.c +++ b/src/gal

Re: [Mesa-dev] mesa: remove-driver-date GIT branch

2011-04-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/03/2011 02:15 PM, Sedat Dilek wrote: > WOW! > Just remembered my approach (witch patches and rants) to remove > core-date and driver-date from kernel (drm-2.6) and libdrm as the > version are simply unmaintained. > Looks like I am not alone :-).

Re: [Mesa-dev] [PATCH 2/2] mesa: Add fall-back formats for unsupported snorm formats

2011-04-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/02/2011 08:52 PM, Kenneth Graunke wrote: > On 04/02/2011 07:18 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> At some point it would be interesting to try providing >> device-independent conversions using EXT_texture_swizzle. The drivers >>

Re: [Mesa-dev] [PATCH 2/2] mesa: Add fall-back formats for unsupported snorm formats

2011-04-04 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/02/2011 08:52 PM, Kenneth Graunke wrote: > On 04/02/2011 07:18 PM, Ian Romanick wrote: >> From: Ian Romanick >> >> This is always the way the real hardware and desktop OpenGL. Some > > Err...what? Desktop GL has many possible internal formats,

Re: [Mesa-dev] gears doesnt play with softpipe driver.

2011-04-04 Thread kumar vemuri
Hi Jakob, I am using nVidia driver. Tried your method and gears is working now. Thanks. But why is it different for nVidia drivers? Would be great if you could jot down some lines on this. Also, just to be sure gears is showing frame rates of less than 30fps on my AMD athlon-X2 with the soft

Re: [Mesa-dev] gears doesnt play with softpipe driver.

2011-04-04 Thread kumar vemuri
Hi Michel, Checked the Xorg.0.log file and there is no indication of GLX not loading. How do i check if GLX is fully enabled or not? thx k On Mon, 2011-04-04 at 17:15 +0200, Michel Dänzer wrote: > On Mon, 2011-04-04 at 08:11 -0700, kumar vemuri wrote: > > Hi Mike, > > That's not my name.

Re: [Mesa-dev] gears doesnt play with softpipe driver.

2011-04-04 Thread Jakob Bornecrantz
2011/4/4 kumar vemuri : > Hi Mike, > > Here is the glxinfo output: (its the same) > > libGL: OpenDriver: trying > /home/lalitha/work/my_sp_drv/mesa/lib/swrast_dri.so > Error: couldn't find RGB GLX visual or fbconfig Are you using the nVidia blob? I remember seeing these issue while trying to run s

Re: [Mesa-dev] gears doesnt play with softpipe driver.

2011-04-04 Thread Michel Dänzer
On Mon, 2011-04-04 at 08:11 -0700, kumar vemuri wrote: > Hi Mike, That's not my name. > Here is the glxinfo output: (its the same) > > libGL: OpenDriver: > trying /home/lalitha/work/my_sp_drv/mesa/lib/swrast_dri.so > Error: couldn't find RGB GLX visual or fbconfig Maybe the X server failed to

Re: [Mesa-dev] gears doesnt play with softpipe driver.

2011-04-04 Thread kumar vemuri
Hi Mike, Here is the glxinfo output: (its the same) libGL: OpenDriver: trying /home/lalitha/work/my_sp_drv/mesa/lib/swrast_dri.so Error: couldn't find RGB GLX visual or fbconfig Thx K On Mon, 2011-04-04 at 10:17 +0200, Michel Dänzer wrote: > [ I think dri-devel should be dropped ] > > On Son

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

2011-04-04 Thread Henri Verbeet
On 31 March 2011 18:37, Julian Adams wrote: > On 31 March 2011 12:07, Henri Verbeet wrote: >> Evergreen probably needs the same fix. > > Yes, the matching function there looks similar. I can update it, but > can't test it. > I can test that. On 31 March 2011 20:33, Jerome Glisse wrote: > Using

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

2011-04-04 Thread Marek Olšák
On Wed, Mar 30, 2011 at 10:56 PM, Ian Romanick wrote: > -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

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

2011-04-04 Thread Marek Olšák
Pushed, thanks. Marek On Thu, Mar 31, 2011 at 12:08 AM, Julian Adams wrote: > --- > tests/all.tests |1 + > tests/fbo/CMakeLists.gl.txt |1 + > tests/fbo/fbo-drawbuffers-blend-add.c | 251 > + > 3 files changed, 253 inser

[Mesa-dev] [Bug 35945] GLX contexts are not resized properly when using XCBOwnsEventQueue

2011-04-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35945 Samuel Rødal changed: What|Removed |Added CC||sro...@gmail.com -- Configure bugmail: h

[Mesa-dev] [Bug 35945] New: GLX contexts are not resized properly when using XCBOwnsEventQueue

2011-04-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35945 Summary: GLX contexts are not resized properly when using XCBOwnsEventQueue Product: Mesa Version: 7.10 Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW

Re: [Mesa-dev] gears doesnt play with softpipe driver.

2011-04-04 Thread Michel Dänzer
[ I think dri-devel should be dropped ] On Son, 2011-04-03 at 01:27 -0700, kumar vemuri wrote: > > Am trying to get the progs/demos work with the gallium softpipe > driver and the DRI swrast driver. > > When i try gears demo with the libGL.so in the mesa/lib and > swrast_dri.so in mesa/lib o

[Mesa-dev] mesa: remove-driver-date GIT branch

2011-04-04 Thread Sedat Dilek
WOW! Just remembered my approach (witch patches and rants) to remove core-date and driver-date from kernel (drm-2.6) and libdrm as the version are simply unmaintained. Looks like I am not alone :-). - Sedat - [1] http://cgit.freedesktop.org/mesa/mesa/log/?h=remove-driver-date