Re: [Mesa-dev] [PATCH] r600g: Avoid setting one gpu register multiple times in a r600_pipe_state

2011-03-14 Thread Mathias Fröhlich
Hi, On Sunday, March 13, 2011 17:34:08 Henri Verbeet wrote: Ok, pushed. You had some whitespace issues, I've fixed those, but for future reference please note that r600g uses tabs for indentation. Ok. I hoped that I always did so. The coding stlye configuration for the mesa hacking user is

Re: [Mesa-dev] [PATCH] r600g: Avoid setting one gpu register multiple times in a r600_pipe_state

2011-03-14 Thread Tormod Volden
2011/3/14 Mathias Fröhlich wrote: By that way, I use currently git format-patch and attach these files. But the output of format-patch is clearly something that could go directly to a mail delivery agent. But since I only use authenticated mail delivery with a foreign sendmail/postfix server

[Mesa-dev] [PATCH] r600g: Evergreen add support for log opcode

2011-03-14 Thread Rafael Monica
Commit 460c5304aba646143938b76d536a6fc13a302ca8 seems to have forgotten to add support for the LOG opcode to Evergreen. This patch adds the missing Evergreen support. Fixes glean/vp1-LOG test piglit test on Evergreen. diff --git a/src/gallium/drivers/r600/r600_shader.c

Re: [Mesa-dev] [r600g + s3tc] bug or missing kernel piece of software ?

2011-03-14 Thread Andy Furniss
Benjamin BELLEC wrote: Hello, I have compiled the last Mesa code (and libtxc_dxtn from Marek Olšák's branch) in order to test the S3TC support recently pushed in r600g. In his commit (http://cgit.freedesktop.org/mesa/mesa/commit/?id=8e0437914bb786d0b05be8f95e4ff37bf5a19f44), Dave Airlie says

[Mesa-dev] [PATCH] r600g: Merge tgsi_r600_arl and tgsi_eg_arl

2011-03-14 Thread Rafael Monica
Patch merge tgsi_r600_arl and tgsi_eg_arl, use tgsi_r600_arl as base and rename function to tgsi_arl. Fixes the following piglit tests on Evergreen in the process: glean vp1-ARL test shaders glsl-fs-varying-array glsl-fs-vec4-indexing-temp-src glsl-vs-arrays-2

Re: [Mesa-dev] GSoC : Thoughts about an OpenGL 4.1 state tracker

2011-03-14 Thread José Fonseca
I also agree with Marek FWIW. If we want a cleaner / more agile code base, then we could fork off the old mesa drivers which aren't being actively maintained/tested into a separate branch, put them in just-bugfixes/no-new-features life support mode; therefore allowing greater freedom to refactor

Re: [Mesa-dev] [PATCH] r600g: Merge tgsi_r600_arl and tgsi_eg_arl

2011-03-14 Thread Rafael Monica
The patch fixes 7 piglit tests and fixes GPU lockups with 3 tests, how is that not an improvement? Perhaps FLT_TO_INT_FLOOR is more efficient than FLOOR + FLT_TO_INT, but it seems to be pretty broken. Feel free to fix it though. 2011/3/14 Henri Verbeet hverb...@gmail.com: On 14 March 2011 16:01,

Re: [Mesa-dev] [PATCH] r600g: Merge tgsi_r600_arl and tgsi_eg_arl

2011-03-14 Thread Henri Verbeet
On 14 March 2011 18:24, Rafael Monica monr...@gmail.com wrote: The patch fixes 7 piglit tests and fixes GPU lockups with 3 tests, how is that not an improvement? Perhaps FLT_TO_INT_FLOOR is more efficient than FLOOR + FLT_TO_INT, but it seems to be pretty broken. Feel free to fix it though.

[Mesa-dev] Bug: could not compile mesa because of lacking component

2011-03-14 Thread Gustaw Smolarczyk
The commit 110f5e2056f80d0b87f2a4388bc35727070ba6d5 was meant to fix this build error, but it only add x86disassembler. The macro InitializeAllDisassemblers() (from llvm/Target/TargetSelect.h) initializes *all* disassemblers build with llvm (in my case: X86 and Arm; this is precompiled package

Re: [Mesa-dev] GSoC : Thoughts about an OpenGL 4.1 state tracker

2011-03-14 Thread José Fonseca
On Mon, 2011-03-14 at 10:06 -0700, Matt Turner wrote: On Mon, Mar 14, 2011 at 4:52 PM, José Fonseca jfons...@vmware.com wrote: If we want a cleaner / more agile code base, then we could fork off the old mesa drivers which aren't being actively maintained/tested into a separate branch, put

Re: [Mesa-dev] [PATCH] r600g: Merge tgsi_r600_arl and tgsi_eg_arl

2011-03-14 Thread Rafael Monica
Henri, I'm not interested in making a convincing case. I lack time, interest and probably knowledge in tracking down and fixing any underlying bug. Again, this patch makes Evergreen behave the same as r600/r700 and it works. You can commit it, leave the code broken as is (not something I would

Re: [Mesa-dev] [PATCH] ir_to_mesa: do not check the number of uniforms against hw limits

2011-03-14 Thread Brian Paul
On 03/12/2011 07:44 PM, Marek Olšák wrote: The r300 compiler can eliminate unused uniforms and remap uniform locations if their number surpasses hardware limits, so the limit is actually NumParameters + NumUnusedParameters. This is important for some apps under Wine to run. Wine sometimes

Re: [Mesa-dev] [PATCH] ir_to_mesa: do not check the number of uniforms against hw limits

2011-03-14 Thread José Fonseca
On Mon, 2011-03-14 at 11:23 -0700, Brian Paul wrote: On 03/12/2011 07:44 PM, Marek Olšák wrote: The r300 compiler can eliminate unused uniforms and remap uniform locations if their number surpasses hardware limits, so the limit is actually NumParameters + NumUnusedParameters. This is

Re: [Mesa-dev] Bug: could not compile mesa because of lacking component

2011-03-14 Thread José Fonseca
On Mon, 2011-03-14 at 10:55 -0700, Gustaw Smolarczyk wrote: The commit 110f5e2056f80d0b87f2a4388bc35727070ba6d5 was meant to fix this build error, but it only add x86disassembler. The macro InitializeAllDisassemblers() (from llvm/Target/TargetSelect.h) initializes *all* disassemblers build

[Mesa-dev] GSoC : Thoughts about an OpenGL 4.1 state tracker

2011-03-14 Thread Denis Steckelmacher
Hello, I'm a Belgian young student and I follow the Mesa's development for nearly two years now. I'm just 18 yars old and it's the first year I'm elligible to the Google Summer of Code. I originally planned to work on KDE, but I find Mesa more interesting. The project on which I would work is

Re: [Mesa-dev] Bug: could not compile mesa because of lacking component

2011-03-14 Thread Gustaw Smolarczyk
Yes, it works that way too. This way all libs are linked, but ld ignores unused ones (they're static libs), so it shouldn't be any problem. 2011/3/14 José Fonseca jfons...@vmware.com: On Mon, 2011-03-14 at 10:55 -0700, Gustaw Smolarczyk wrote: The commit 110f5e2056f80d0b87f2a4388bc35727070ba6d5

Re: [Mesa-dev] Fix for bug #35073

2011-03-14 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/11/2011 05:49 PM, Eric Anholt wrote: Here's a proposed fix for bug #35073, but I'd like some review. From googling, it looks like we're not the first driver to stumble on this. Here's the note from the bug reporter: The OpenGL spec

Re: [Mesa-dev] [PATCH 3/9] glsl: Skip function inlining until we've seen another function defined.

2011-03-14 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 After working on bug #34203, which turned out to now be inlining related, I had some ideas about the inliner. Right now the inliner proceeds in the order that it encounters functions in the IR. This results in a number of issues including the OOM

Re: [Mesa-dev] [PATCH] r600g: Merge tgsi_r600_arl and tgsi_eg_arl

2011-03-14 Thread Henri Verbeet
On 14 March 2011 19:22, Rafael Monica monr...@gmail.com wrote: I'm not interested in making a convincing case.  I lack time, interest and probably knowledge in tracking down and fixing any underlying bug. Fair enough. ___ mesa-dev mailing list

Re: [Mesa-dev] Reducing GLSL compiler optimization time

2011-03-14 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/11/2011 04:06 PM, Eric Anholt wrote: With the conversion of texenvprogram to producing GLSL IR, all those nice little optimization passes end up slowing down our combinatorial-explosion ff tests pretty significantly. This patch series

Re: [Mesa-dev] Reducing GLSL compiler optimization time

2011-03-14 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/12/2011 02:41 PM, Eric Anholt wrote: On Sat, 12 Mar 2011 11:30:10 -0800, Kenneth Graunke kenn...@whitecape.org wrote: On Friday, March 11, 2011 04:06:44 PM Eric Anholt wrote: With the conversion of texenvprogram to producing GLSL IR, all

Re: [Mesa-dev] [PATCH 0/3] Only require libdrm if direct rendering is actually enabled

2011-03-14 Thread Jon TURNEY
On 16/02/2011 15:44, Julien Cristau wrote: On Wed, Feb 16, 2011 at 15:11:34 +, Jon TURNEY wrote: At the moment, libGL cannot be built --with-driver=dri --disable-driglx-direct on platforms which don't have libdrm. --with-driver=dri is the only way to build a libGL which supports

Re: [Mesa-dev] [PATCH 0/6] i965: Enable new shadow texture functions in GLSL 1.30

2011-03-14 Thread Chad Versace
On 03/14/2011 03:00 PM, Ian Romanick wrote: Patches 1 and 2 don't seem to have arrived in my inbox. Are these in a public tree somewhere? The list mailman rejected them because of implicit destination. (?) They're moot now, however. Ken cleaned up the patches and pushed them. -- Chad

[Mesa-dev] [PATCH 1/3] Only require libdrm if direct rendering is actually enabled.

2011-03-14 Thread Jon TURNEY
From: Samuel Thibault samuel.thiba...@ens-lyon.org Fix build when configured --with-driver=dri --disable-driglx-direct on GNU/Hurd and Cygwin Based on the Debian patch file '05_hurd-ftbfs.diff' by Samuel Thibault. Signed-off-by: Jon TURNEY jon.tur...@dronecode.org.uk Reviewed-by: Julien

[Mesa-dev] [PATCH 3/3] Disable direct rendering on Cygwin

2011-03-14 Thread Jon TURNEY
Add Cygwin platform-specific settings and drivers to build for dri driver: - by default, disable direct rendering. - if direct rendering is enabled, the swrast dridriver is the only one it's sensible to try to build (this doesn't work at the moment as additional patches are required to build a

Re: [Mesa-dev] [PATCH] glsl: add support for gl_InstanceID

2011-03-14 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/10/2011 03:30 PM, Marcin Slusarz wrote: ...by copying support for gl_InstanceIDARB, but without #extension check, because EXT_draw_instanced spec does not say anything about it (as opposed to ARB_draw_instanced / gl_InstanceIDARB) and NVIDIA

Re: [Mesa-dev] [PATCH] glsl: add support for gl_InstanceID

2011-03-14 Thread Jakob Bornecrantz
On Mon, Mar 14, 2011 at 11:46 PM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/10/2011 03:30 PM, Marcin Slusarz wrote: ...by copying support for gl_InstanceIDARB, but without #extension check, because EXT_draw_instanced spec does not say

Re: [Mesa-dev] [PATCH] glsl: add support for gl_InstanceID

2011-03-14 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/14/2011 04:01 PM, Jakob Bornecrantz wrote: On Mon, Mar 14, 2011 at 11:46 PM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/10/2011 03:30 PM, Marcin Slusarz wrote: ...by copying support for

Re: [Mesa-dev] Mesa (master): i965: Fix tex_swizzle when depth mode is GL_RED

2011-03-14 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/14/2011 01:04 PM, Kenneth Graunke wrote: Module: Mesa Branch: master Commit: 1842b89f77bb7bd283b61e27cd69c643f2a60a22 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1842b89f77bb7bd283b61e27cd69c643f2a60a22 Author: Chad Versace

Re: [Mesa-dev] [PATCH] glsl: add support for gl_InstanceID

2011-03-14 Thread Jakob Bornecrantz
On Tue, Mar 15, 2011 at 1:00 AM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/14/2011 04:01 PM, Jakob Bornecrantz wrote: On Mon, Mar 14, 2011 at 11:46 PM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: [Mesa-dev] [PATCH 0/3] Only require libdrm if direct rendering is actually enabled

2011-03-14 Thread Brian Paul
On Mon, Mar 14, 2011 at 4:03 PM, Jon TURNEY jon.tur...@dronecode.org.uk wrote: On 16/02/2011 15:44, Julien Cristau wrote: On Wed, Feb 16, 2011 at 15:11:34 +, Jon TURNEY wrote: At the moment, libGL cannot be built --with-driver=dri --disable-driglx-direct on platforms which don't have

[Mesa-dev] [Bug 9293] near all xdemos programns have xcb_xlib_lock assertions

2011-03-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=9293 Jamey Sharp ja...@minilop.net changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 2/3] Disable direct rendering on GNU/Hurd

2011-03-14 Thread Jakob Bornecrantz
On Mon, Mar 14, 2011 at 11:08 PM, Jon TURNEY jon.tur...@dronecode.org.uk wrote: From: nobled nob...@dreamwidth.org The Hurd kernel doesn't have DRM yet. Signed-off-by: Jon TURNEY jon.tur...@dronecode.org.uk Reviewed-by: Julien Cristau jcris...@debian.org ---  configure.ac |   13

Re: [Mesa-dev] [PATCH] ir_to_mesa: do not check the number of uniforms against hw limits

2011-03-14 Thread Brian Paul
On Mon, Mar 14, 2011 at 1:07 PM, José Fonseca jfons...@vmware.com wrote: On Mon, 2011-03-14 at 11:23 -0700, Brian Paul wrote: On 03/12/2011 07:44 PM, Marek Olšák wrote: The r300 compiler can eliminate unused uniforms and remap uniform locations if their number surpasses hardware limits, so

Re: [Mesa-dev] [PATCH 1/3] Only require libdrm if direct rendering is actually enabled.

2011-03-14 Thread Jakob Bornecrantz
On Mon, Mar 14, 2011 at 11:08 PM, Jon TURNEY jon.tur...@dronecode.org.uk wrote: From: Samuel Thibault samuel.thiba...@ens-lyon.org Fix build when configured --with-driver=dri --disable-driglx-direct on GNU/Hurd and Cygwin Based on the Debian patch file '05_hurd-ftbfs.diff' by Samuel

Re: [Mesa-dev] auto generated glx code in X server

2011-03-14 Thread Dave Airlie
On Fri, Mar 4, 2011 at 11:24 AM, Dave Airlie airl...@gmail.com wrote: Hi guys, I know this used to work, but it seems to be well busted now. If you made glx changes in mesa you could just set XORG_BASE and run make and it would regenerate all the files in the X server which really are

Re: [Mesa-dev] Mesa (master): i965: Fix tex_swizzle when depth mode is GL_RED

2011-03-14 Thread Chad Versace
On 03/14/2011 05:15 PM, Ian Romanick wrote: On 03/14/2011 01:04 PM, Kenneth Graunke wrote: Module: Mesa Branch: master Commit: 1842b89f77bb7bd283b61e27cd69c643f2a60a22 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1842b89f77bb7bd283b61e27cd69c643f2a60a22 Author: Chad Versace

Re: [Mesa-dev] auto generated glx code in X server

2011-03-14 Thread Keith Packard
On Tue, 15 Mar 2011 13:52:40 +1000, Dave Airlie airl...@gmail.com wrote: a) undo ajax's cleanup, fix generator scripts to work again (not sure how possible that is since Olv's mapi changes), import latest GLX into server on a semi-regular basis. The X server generator seems like it'll