[Mesa-dev] [Bug 38716] Can't build, error: undefined reference to `_eglFilterConfigArray'

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38716 --- Comment #1 from Chia-I Wu 2011-06-27 23:26:47 PDT --- The command for linking wrongly put the local library search path after the system's. It should be fixed with 24137af. Please test. -- Configure bugmail: https://bugs.freedesktop.org/u

[Mesa-dev] [PATCH v2] glsl: Track initial mask in constant propagation live set

2011-06-27 Thread Ian Romanick
From: Ian Romanick The set of values initially available (before any kills) must be tracked with each constant in the set. Otherwise the wrong component can be selected after earlier components have been killed. NOTE: This is a candidate for the 7.10 and 7.11 branches. Bugzilla: https://bugs.f

[Mesa-dev] [Bug 37470] OpenGL ES2 test, black screen and test crashes

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37470 --- Comment #3 from apfelmausm...@googlemail.com 2011-06-27 18:31:53 PDT --- hm after retest it.. now the -es2 one works fine with more frames then the normal opengl one. I think its fixed for me -- Configure bugmail: https://bugs.freedesktop.or

Re: [Mesa-dev] [PATCH 2/2] glsl: Rewrote _mesa_glsl_process_extension to use table-driven logic.

2011-06-27 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I like this a lot. It's a really good clean up of a rotting cesspool. I have a few formatting / style comments below and a question. On 06/27/2011 04:26 PM, Paul Berry wrote: > Instead of using a chain of manually maintained if/else blocks to > handl

Re: [Mesa-dev] [PATCH-RFC] autoconf: add --enable-{dri,glx,osmesa}

2011-06-27 Thread Chia-I Wu
On Tue, Jun 28, 2011 at 6:00 AM, Kenneth Graunke wrote: > On 06/27/2011 12:17 PM, Dan Nicholson wrote: >> >> On Sun, Jun 26, 2011 at 6:39 AM, Chia-I Wu  wrote: >>> >>> From: Chia-I Wu >>> >>> The idea is that DRI driver, libGL and libOSMesa are libraries that can >>> be independently enabled, yet

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-27 Thread Dan McCabe
On 06/27/2011 05:35 PM, Keith Packard wrote: On Mon, 27 Jun 2011 17:23:30 -0700, Dan McCabe wrote: Since I am just about to start modifying the IR generation, I'm open to suggestion. I'd write the simplest possible code that works now and then consider optimizing it later. This has the advant

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-27 Thread Dan McCabe
On 06/27/2011 04:40 PM, Kenneth Graunke wrote: Here's another case that I'm not sure you're handling correctly...conditional breaks: switch (expr) { case c0: case c1: stmt0; case c2: case c3: stmt1; break; case c4: stmt2; if (foo) break; stmt3;// happens

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-27 Thread Keith Packard
On Mon, 27 Jun 2011 17:23:30 -0700, Dan McCabe wrote: > Since I am just about to start modifying the IR generation, I'm open to > suggestion. I'd write the simplest possible code that works now and then consider optimizing it later. This has the advantage that you can get a bunch of tests worki

Re: [Mesa-dev] [PATCH-RFC] autoconf: add --enable-{dri,glx,osmesa}

2011-06-27 Thread Chia-I Wu
On Tue, Jun 28, 2011 at 4:17 AM, Dan Nicholson wrote: > On Sun, Jun 26, 2011 at 6:39 AM, Chia-I Wu wrote: >> From: Chia-I Wu >> >> The idea is that DRI driver, libGL and libOSMesa are libraries that can >> be independently enabled, yet --with-driver does not allow us to easily >> do that, if not

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-27 Thread Dan McCabe
On 06/27/2011 05:15 PM, Kenneth Graunke wrote: On 06/24/2011 05:11 PM, Dan McCabe wrote: Looking at a translation of my canonical example: switch (expr) { case c0: case c1: stmt0; case c2: case c3: stmt1; break; case c4: default: stmt2; } We can

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-27 Thread Kenneth Graunke
On 06/24/2011 05:11 PM, Dan McCabe wrote: Looking at a translation of my canonical example: switch (expr) { case c0: case c1: stmt0; case c2: case c3: stmt1; break; case c4: default: stmt2; } We can translated this into: int test_val_tmp = ex

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-27 Thread Kenneth Graunke
Here's another case that I'm not sure you're handling correctly...conditional breaks: switch (expr) { case c0: case c1: stmt0; case c2: case c3: stmt1; break; case c4: stmt2; if (foo) break; stmt3;// happens if !foo case c5: default: stmt4;// h

[Mesa-dev] [PATCH] glsl: Track killed mask in constant propagation live set

2011-06-27 Thread Ian Romanick
From: Ian Romanick The kill mask and the initial assignment mask must be tracked with each constant in the set. Otherwise the wrong component can be selected after earlier components have been killed. NOTE: This is a candidate for the 7.10 and 7.11 branches. Bugzilla: https://bugs.freedesktop.

[Mesa-dev] [PATCH 2/2] glsl: Rewrote _mesa_glsl_process_extension to use table-driven logic.

2011-06-27 Thread Paul Berry
Instead of using a chain of manually maintained if/else blocks to handle "#extension" directives, we now consult a table that specifies, for each extension, the circumstances under which it is available, and what flags in _mesa_glsl_parse_state need to be set in order to activate it. This makes it

[Mesa-dev] [PATCH 1/2] glsl: Changed extension enable bits to bools.

2011-06-27 Thread Paul Berry
These were previously 1-bit-wide bitfields. Changing them to bools has a negligible performance impact, and allows them to be accessed by offset as well as by direct structure access. --- src/glsl/glsl_parser_extras.h | 44 1 files changed, 22 insertions

Re: [Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

2011-06-27 Thread Roland Scheidegger
Am 28.06.2011 00:12, schrieb Ian Romanick: > On 06/23/2011 07:56 AM, Alex Deucher wrote: >> On Thu, Jun 23, 2011 at 10:38 AM, Roland Scheidegger >> wrote: >>> Am 23.06.2011 16:09, schrieb Jerome Glisse: On Wed, Jun 22, 2011 at 10:49 PM, Alex Deucher wrote: > On Wed, Jun 22, 2011 a

[Mesa-dev] [Bug 37470] OpenGL ES2 test, black screen and test crashes

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=37470 --- Comment #2 from Ian Romanick 2011-06-27 15:20:00 PDT --- There's also a non-ES2 version of this package (glmark2). Does that also reproduce this issue? Can you try running in GDB and get a proper backtrace? The one provided by glibc is no

Re: [Mesa-dev] [PATCH] linker: Reject shaders that use too many varyings

2011-06-27 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/23/2011 07:56 AM, Alex Deucher wrote: > On Thu, Jun 23, 2011 at 10:38 AM, Roland Scheidegger > wrote: >> Am 23.06.2011 16:09, schrieb Jerome Glisse: >>> On Wed, Jun 22, 2011 at 10:49 PM, Alex Deucher >>> wrote: On Wed, Jun 22, 2011 at 10

Re: [Mesa-dev] [PATCH 2/2 v2] glsl: Don't choke when printing an anonymous function parameter

2011-06-27 Thread Kenneth Graunke
On 06/27/2011 02:25 PM, Ian Romanick wrote: From: Ian Romanick NOTE: This is a candidate for the 7.10 and 7.11 branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38584 Strong work! I hadn't thought about anonymous parameters in prototypes. For both patch 1 and 2: Reviewed-by:

Re: [Mesa-dev] [PATCH 6/6] glsl: Generate IR for switch statements

2011-06-27 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/24/2011 05:11 PM, Dan McCabe wrote: > On 06/24/2011 01:17 PM, Dan McCabe wrote: >> On 06/20/2011 03:50 PM, Ian Romanick wrote: >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> On 06/17/2011 05:43 PM, Dan McCabe wrote: Beware! He

Re: [Mesa-dev] [PATCH 4/6] glsl: Reference data structure ctors in grammar

2011-06-27 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/24/2011 01:06 PM, Dan McCabe wrote: > On 06/20/2011 03:34 PM, Ian Romanick wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 06/17/2011 05:43 PM, Dan McCabe wrote: >>> We now tie the grammar to the ctors of the ASTs they referen

Re: [Mesa-dev] [PATCH 2/6] glsl: Add productions to GLSL grammar for switch statement

2011-06-27 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/24/2011 12:59 PM, Dan McCabe wrote: > On 06/20/2011 03:39 PM, Ian Romanick wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >> On 06/17/2011 05:43 PM, Dan McCabe wrote: >>> The grammar is modified to support switch statements. Rather

[Mesa-dev] [PATCH 2/2 v2] glsl: Don't choke when printing an anonymous function parameter

2011-06-27 Thread Ian Romanick
From: Ian Romanick NOTE: This is a candidate for the 7.10 and 7.11 branches. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=38584 --- v2 actually fixes the bug. Based on feedback in the bug report. src/glsl/ir_print_visitor.cpp | 10 ++ 1 files changed, 10 insertions(+), 0 d

[Mesa-dev] [PATCH 1/2] ir_to_mesa: Allocate temporary instructions on the visitor's ralloc context

2011-06-27 Thread Ian Romanick
From: Ian Romanick And don't delete them. Let ralloc clean them up. Deleting the temporary IR leaves dangling references in the prog_instruction. That results in a bad dereference when printing the IR with MESA_GLSL=dump. NOTE: This is a candidate for the 7.10 and 7.11 branches. Bugzilla: ht

Re: [Mesa-dev] [PATCH-RFC] autoconf: add --enable-{dri,glx,osmesa}

2011-06-27 Thread Kenneth Graunke
On 06/27/2011 12:17 PM, Dan Nicholson wrote: On Sun, Jun 26, 2011 at 6:39 AM, Chia-I Wu wrote: From: Chia-I Wu The idea is that DRI driver, libGL and libOSMesa are libraries that can be independently enabled, yet --with-driver does not allow us to easily do that, if not impossible. This also

[Mesa-dev] [Bug 33758] CreateDRIDrawable can't fail gracefully

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=33758 --- Comment #5 from nobled 2011-06-27 12:58:05 PDT --- Created an attachment (id=48483) --> (https://bugs.freedesktop.org/attachment.cgi?id=48483) small EGL program to produce BadDrawable error (Unrelatedly, I had to workaround another bug in

[Mesa-dev] [Bug 33758] CreateDRIDrawable can't fail gracefully

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=33758 --- Comment #4 from nobled 2011-06-27 12:53:00 PDT --- Good news and bad news. Good news: I tested in an Ubuntu Maverick chroot, and I can't reproduce the segfault -- maybe it was fixed in Xlib? (In Lucid, libX11 is version 1.3.2; in Maverick, i

Re: [Mesa-dev] [PATCH-RFC] autoconf: add --enable-{dri,glx,osmesa}

2011-06-27 Thread Dan Nicholson
On Sun, Jun 26, 2011 at 6:39 AM, Chia-I Wu wrote: > From: Chia-I Wu > > The idea is that DRI driver, libGL and libOSMesa are libraries that can > be independently enabled, yet --with-driver does not allow us to easily > do that, if not impossible.  This also matches what > --enable-{egl,xorg,d3d1

Re: [Mesa-dev] [PATCH 2/6] glsl: Add productions to GLSL grammar for switch statement

2011-06-27 Thread Kenneth Graunke
On 06/24/2011 12:59 PM, Dan McCabe wrote: On 06/20/2011 03:39 PM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/17/2011 05:43 PM, Dan McCabe wrote: The grammar is modified to support switch statements. Rather than follow the grammar in the appendix, which allows case

[Mesa-dev] [Bug 38716] New: Can't build, error: undefined reference to `_eglFilterConfigArray'

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38716 Summary: Can't build, error: undefined reference to `_eglFilterConfigArray' Product: Mesa Version: git Platform: All OS/Version: All Status: NEW Severity:

[Mesa-dev] [Bug 38699] Can't compile with d3d1x since commit 73df31eedd0f33c8a9907855cb247c8f87964c48

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38699 --- Comment #5 from Chia-I Wu 2011-06-27 08:35:02 PDT --- Yes. It could be that the system libEGL get picked for linking and it does not have the new symbol. Please also include the result of $ cd /home/dema1701/projects/mesa/mesa $ nm -D

[Mesa-dev] [Bug 38699] Can't compile with d3d1x since commit 73df31eedd0f33c8a9907855cb247c8f87964c48

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38699 --- Comment #4 from Alexandre Demers 2011-06-27 08:09:27 PDT --- Still there with your suggestion. Should I open a different bug report? -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this

[Mesa-dev] [PATCH] st/mesa: fix overwriting gl_format with pipe_format since 9d380f48

2011-06-27 Thread Andre Maasikas
fixes assert later on in texcompress2/r600g --- src/mesa/state_tracker/st_cb_texture.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index d52e273..6907cfc 100644 --- a/src/mesa/state_tra

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-27 Thread Roland Scheidegger
Am 27.06.2011 16:04, schrieb Keith Whitwell: > On Mon, 2011-06-27 at 15:32 +0200, Marek Olšák wrote: >> On Mon, Jun 27, 2011 at 2:38 PM, Roland Scheidegger >> wrote: >>> Am 25.06.2011 00:22, schrieb Vadim Girlin: On 06/24/2011 11:38 PM, Jerome Glisse wrote: > On Fri, Jun 24, 2011 at 12:29

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-27 Thread Keith Whitwell
On Mon, 2011-06-27 at 15:32 +0200, Marek Olšák wrote: > On Mon, Jun 27, 2011 at 2:38 PM, Roland Scheidegger > wrote: > > Am 25.06.2011 00:22, schrieb Vadim Girlin: > >> On 06/24/2011 11:38 PM, Jerome Glisse wrote: > >>> On Fri, Jun 24, 2011 at 12:29 PM, Vadim > Girlin > >>> wrote: > Fixes htt

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-27 Thread Alex Deucher
On Mon, Jun 27, 2011 at 9:32 AM, Jerome Glisse wrote: > On Mon, Jun 27, 2011 at 8:38 AM, Roland Scheidegger > wrote: >> Am 25.06.2011 00:22, schrieb Vadim Girlin: >>> On 06/24/2011 11:38 PM, Jerome Glisse wrote: On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin wrote: > Fixes https://

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-27 Thread Marek Olšák
On Mon, Jun 27, 2011 at 2:38 PM, Roland Scheidegger wrote: > Am 25.06.2011 00:22, schrieb Vadim Girlin: >> On 06/24/2011 11:38 PM, Jerome Glisse wrote: >>> On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin >>> wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38440 Signed-off-b

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-27 Thread Jerome Glisse
On Mon, Jun 27, 2011 at 8:38 AM, Roland Scheidegger wrote: > Am 25.06.2011 00:22, schrieb Vadim Girlin: >> On 06/24/2011 11:38 PM, Jerome Glisse wrote: >>> On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin >>> wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38440 Signed-off-b

Re: [Mesa-dev] [PATCH 3/3] r600g: implement fragment and vertex color clamp

2011-06-27 Thread Roland Scheidegger
Am 25.06.2011 00:22, schrieb Vadim Girlin: > On 06/24/2011 11:38 PM, Jerome Glisse wrote: >> On Fri, Jun 24, 2011 at 12:29 PM, Vadim Girlin >> wrote: >>> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38440 >>> >>> Signed-off-by: Vadim Girlin >> >> As discussed previously, there is better to h

Re: [Mesa-dev] Error building on Windows with SCons

2011-06-27 Thread Jose Fonseca
I never tried MSVS 2010. Jose - Original Message - > > Known working configurations (from git!) are: > > - mingw crosscompilation from linux (x86 only) > > - MSVC 2008 (requires cygwin flex & bison in the PATH), x86 or x64 > > Can anyone confirm that Mesa with LLVM enabled builds on Visu

[Mesa-dev] [Bug 38705] call glDrawElements (GL_LINES, 2, GL_UNSIGNED_BYTE, indices); will be exhaust memory

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38705 Cedric Vivier changed: What|Removed |Added CC||cedr...@neonux.com -- Configure bugmail

[Mesa-dev] [Bug 38705] New: call glDrawElements (GL_LINES, 2, GL_UNSIGNED_BYTE, indices); will be exhaust memory

2011-06-27 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38705 Summary: call glDrawElements (GL_LINES, 2, GL_UNSIGNED_BYTE, indices); will be exhaust memory Product: Mesa Version: unspecified Platform: x86 (IA32) OS/Version: Linux (All)