[Mesa-dev] [PATCH 2/2] glsl: Make GL_ARB_shader_stencil_export enable block be similar to other blocks

2011-04-08 Thread Ian Romanick
From: Ian Romanick --- src/glsl/glsl_parser_extras.cpp | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 073ec38..e8881e4 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src/glsl/glsl_p

[Mesa-dev] [PATCH 1/2] glsl: Only let a shader enable GL_ARB_draw_instanced if the driver supports it

2011-04-08 Thread Ian Romanick
From: Ian Romanick The rest of the change it to make the GL_ARB_draw_instanced block follow the same pattern as the other blocks. --- src/glsl/glsl_parser_extras.cpp | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl

[Mesa-dev] [PATCH 0/2] Fix minor issues with GLSL extension usage

2011-04-08 Thread Ian Romanick
The first patch fixes a problem where a shader could enable GL_ARB_draw_instanced on a driver that does not support it. The second patch reformats the GL_ARB_shader_stencil_export enable block to look more like the other extension enable blocks. The set of GLSL extension is getting quite long (9)

Re: [Mesa-dev] Mesa (master): i965/fs: Remove broken optimization for live intervals in loops.

2011-04-08 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/08/2011 11:05 AM, Eric Anholt wrote: > Module: Mesa > Branch: master > Commit: 963431829055f63ec94d88c97a5d07d30e49833a > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=963431829055f63ec94d88c97a5d07d30e49833a > > Author: Eric Anhol

Re: [Mesa-dev] [PATCH] Make st_pipe_vertex_format return type in st_draw.h match st_draw.c

2011-04-08 Thread Brian Paul
On 04/08/2011 06:02 PM, Alan Coopersmith wrote: Fixes compiler error from Sun compilers: "state_tracker/st_draw.c", line 185: identifier redeclared: st_pipe_vertex_format current : function(unsigned int, unsigned int, unsigned int, unsigned char) returning enum pipe_format pre

[Mesa-dev] [PATCH] Make st_pipe_vertex_format return type in st_draw.h match st_draw.c

2011-04-08 Thread Alan Coopersmith
Fixes compiler error from Sun compilers: "state_tracker/st_draw.c", line 185: identifier redeclared: st_pipe_vertex_format current : function(unsigned int, unsigned int, unsigned int, unsigned char) returning enum pipe_format previous: function(unsigned int, unsigned int, unsigned

Re: [Mesa-dev] [PATCH 2/2 v3] i965: Allocate the whole URB to the VS and fix calculations.

2011-04-08 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/08/2011 01:39 PM, Kenneth Graunke wrote: > The previous calculation neglected to multiply by nr_vs_entries, instead > comparing whether twice the size of one VS URB entry was bigger than the > entire URB space. Furthermore, it neglected to take

Re: [Mesa-dev] Vertex distortion bug in xonotic

2011-04-08 Thread Marek Olšák
Sebastian, does it work with the latest Mesa master branch? Please file a new bug against Mesa : Drivers/Gallium/r300 and attach your answer there: https://bugs.freedesktop.org/enter_bug.cgi Marek On Fri, Apr 8, 2011 at 11:01 PM, Sebastian H. wrote: > > In the Mesa versions 7.9.2 - 7.10.2 I

Re: [Mesa-dev] Vertex distortion bug in xonotic

2011-04-08 Thread Sebastian H.
> In the Mesa versions 7.9.2 - 7.10.2 I get strange triangle > distortion bugs in the game Xonotic. They don't appear in 7.8.2. > > http://xwmw.org/misc/triangle_bug_01.jpg > http://xwmw.org/misc/triangle_bug_02.jpg It is also in 7.9.0. 7.8.2 - ok 7.9.0 - bug 7.9.2 - bug 7.10.2 - bug Sebast

Re: [Mesa-dev] [PATCH] Fix GET_PROGRAM_NAME() on Solaris to not try to modify a read-only string

2011-04-08 Thread Alan Coopersmith
On 04/ 8/11 01:18 PM, Jakob Bornecrantz wrote: > On Fri, Apr 8, 2011 at 10:12 PM, Jakob Bornecrantz > wrote: >> On Fri, Apr 8, 2011 at 10:04 PM, Alan Coopersmith >> wrote: >>> Signed-off-by: Alan Coopersmith >> >> Obvious question to this is was the string returned from >> GET_PROGRAM_NAME free

[Mesa-dev] [PATCH 2/2 v3] i965: Allocate the whole URB to the VS and fix calculations.

2011-04-08 Thread Kenneth Graunke
The previous calculation neglected to multiply by nr_vs_entries, instead comparing whether twice the size of one VS URB entry was bigger than the entire URB space. Furthermore, it neglected to take into account that vs_size is in units of 128 byte blocks, while urb_size is in bytes. Despite the a

[Mesa-dev] Vertex distortion bug in xonotic

2011-04-08 Thread Sebastian H.
Hello list In the Mesa versions 7.9.2 - 7.10.2 I get strange triangle distortion bugs in the game Xonotic. They don't appear in 7.8.2. http://xwmw.org/misc/triangle_bug_01.jpg http://xwmw.org/misc/triangle_bug_02.jpg glxinfo | grep string server glx vendor string: SGI server glx version strin

Re: [Mesa-dev] [PATCH] Fix GET_PROGRAM_NAME() on Solaris to not try to modify a read-only string

2011-04-08 Thread Jakob Bornecrantz
On Fri, Apr 8, 2011 at 10:12 PM, Jakob Bornecrantz wrote: > On Fri, Apr 8, 2011 at 10:04 PM, Alan Coopersmith > wrote: >> Signed-off-by: Alan Coopersmith > > Obvious question to this is was the string returned from > GET_PROGRAM_NAME freed in the past? Bah, read the code again while we only lea

[Mesa-dev] [PATCH 2/2] i965: Allocate the whole URB to the VS and fix calculations.

2011-04-08 Thread Kenneth Graunke
The previous calculation neglected to multiply by nr_vs_entries, instead comparing whether twice the size of one VS URB entry was bigger than the entire URB space. Furthermore, it neglected to take into account that vs_size is in units of 128 byte blocks, while urb_size is in bytes. Despite the a

[Mesa-dev] [PATCH 1/2] i965: Add comments about URB size units and limits.

2011-04-08 Thread Kenneth Graunke
--- src/mesa/drivers/dri/i965/brw_context.h |8 src/mesa/drivers/dri/i965/brw_vs_emit.c |6 ++ src/mesa/drivers/dri/i965/gen6_urb.c| 14 +- 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/dri

Re: [Mesa-dev] [PATCH] Fix GET_PROGRAM_NAME() on Solaris to not try to modify a read-only string

2011-04-08 Thread Jakob Bornecrantz
On Fri, Apr 8, 2011 at 10:04 PM, Alan Coopersmith wrote: > Signed-off-by: Alan Coopersmith Obvious question to this is was the string returned from GET_PROGRAM_NAME freed in the past? Cheers Jakob. > --- >  src/mesa/drivers/dri/common/xmlconfig.c |   20 +++- >  1 files changed,

[Mesa-dev] [PATCH] Fix GET_PROGRAM_NAME() on Solaris to not try to modify a read-only string

2011-04-08 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith --- src/mesa/drivers/dri/common/xmlconfig.c | 20 +++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index 0312c07..0226b38 100644 --- a/src/mesa/

[Mesa-dev] [Bug 29460] GNU/Hurd support

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29460 --- Comment #8 from Jon TURNEY 2011-04-08 12:55:00 PDT --- Committed the drm-related build fixes as 758561786c3a34303e6c85dfdb996b94a4eed678 and e7d18ed1ef8106e2f0eec1078efde6da358e692b "simplify ifdef" patch remains -- Configure bugmail: htt

[Mesa-dev] [Bug 27840] Enable mesa to be built for Cygwin -with-driver=dri

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=27840 Jon TURNEY changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 35425] Instanced drawing: not implemented

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35425 --- Comment #7 from Ian Romanick 2011-04-08 12:28:20 PDT --- The GL_ARB_draw_instanced spec is really broken. In various ways, it does not match what any vendor ships. The ARB is working on fixing the spec to match a subset of reality that is

Re: [Mesa-dev] [PATCH 2/2] i965: Allocate the whole URB to the VS and clarify calculations.

2011-04-08 Thread Kenneth Graunke
On 04/08/2011 08:32 AM, Ian Romanick wrote: [snip] /* CACHE_NEW_VS_PROG */ + /* According to volume 2a, nr_vs_entries must be a multiple of 4 in the +* range [24, 256] on GT2 and [24, 128] on GT1. +*/ + brw->urb.nr_vs_entries = max_urb_entry; brw->urb.vs_size = MAX2(brw->vs.

[Mesa-dev] [PATCH] glsl: Fix a copy_prop_elements crash when a kill kills for two reasons.

2011-04-08 Thread Eric Anholt
Fixes glsl-copy-propagation-loop-2 when this optimization pass is re-enabled. Reported-by: David Lamparter --- Thanks for testing! Just from looking at the line of the crash, I think I caught the bug and added a testcase. Can you check if this resolves your issues? src/glsl/opt_copy_propagat

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

2011-04-08 Thread Jakob Bornecrantz
On Fri, Apr 8, 2011 at 7:57 PM, Jon TURNEY wrote: > On 08/04/2011 18:26, Jakob Bornecrantz wrote: >> On Fri, Apr 8, 2011 at 7:12 PM, Jon TURNEY >> wrote: >>> On 23/03/2011 18:51, Jon TURNEY wrote: On 15/03/2011 00:35, Jakob Bornecrantz wrote: > On Mon, Mar 14, 2011 at 11:08 PM, Jon TURN

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

2011-04-08 Thread Jakob Bornecrantz
On Fri, Apr 8, 2011 at 7:12 PM, Jon TURNEY wrote: > On 23/03/2011 18:51, Jon TURNEY wrote: >> On 15/03/2011 00:35, Jakob Bornecrantz wrote: >>> On Mon, Mar 14, 2011 at 11:08 PM, Jon TURNEY  dnl  dnl libGL configuration per driver  dnl @@ -762,12 +770,17 @@ dri|no) # these check

Re: [Mesa-dev] Mesa (master): i965: clear global offset to zero in m0.2 for VS DP read.

2011-04-08 Thread Eric Anholt
On Wed, 6 Apr 2011 22:28:37 -0700 (PDT), z...@kemper.freedesktop.org (Nan hai Zou) wrote: > Module: Mesa > Branch: master > Commit: 66b66295d0bc856c69fd22575580c7ecee16 > URL: > http://cgit.freedesktop.org/mesa/mesa/commit/?id=66b66295d0bc856c69fd22575580c7ecee16 > > Author: Zou Nan

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

2011-04-08 Thread Jon TURNEY
On 23/03/2011 18:51, Jon TURNEY wrote: > On 15/03/2011 00:35, Jakob Bornecrantz wrote: >> On Mon, Mar 14, 2011 at 11:08 PM, Jon TURNEY >>> dnl >>> dnl libGL configuration per driver >>> dnl >>> @@ -762,12 +770,17 @@ dri|no) # these checks are still desired when there >>> is no mesa_driver >>>

Re: [Mesa-dev] [PATCH] prog_optimize: get_src_arg_mask() respect writemask for more opcodes

2011-04-08 Thread Eric Anholt
Reviewed-by: Eric Anholt pgpkZh7Wbovu6.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [Bug 36083] New: Feature wish: EXT_gpu_shader4

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36083 Summary: Feature wish: EXT_gpu_shader4 Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority: medium Compon

Re: [Mesa-dev] [PATCH] mesa: fix dstRowDiff computation in RGTC texstore functions

2011-04-08 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/05/2011 04:36 PM, Marek Olšák wrote: > Copied from libtxc_dxtn, this fixes NPOT RGTC1 textures with r300g. > I also did the same for RGTC2. > --- > src/mesa/main/texcompress_rgtc.c |8 > 1 files changed, 4 insertions(+), 4 deletions

[Mesa-dev] [Bug 35425] Instanced drawing: not implemented

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35425 Ian Romanick changed: What|Removed |Added Resolution|FIXED |NOTOURBUG -- Configure bugmail: https://

[Mesa-dev] [Bug 35425] Instanced drawing: not implemented

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35425 Ian Romanick changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|

[Mesa-dev] [Bug 28684] Remove srcdir !=builddir check from autogen.sh for mesa-demos

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28684 Jon TURNEY changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [Bug 35425] Instanced drawing: not implemented

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35425 s3734...@mail.zih.tu-dresden.de changed: What|Removed |Added Status|RESOLVED|REOPENED Resolu

Re: [Mesa-dev] [PATCH 2/2] i965: Allocate the whole URB to the VS and clarify calculations.

2011-04-08 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/07/2011 04:49 PM, Kenneth Graunke wrote: > Since we currently do not support Geometry Shaders, there's no need to > allocate any URB space to the GS unit. Give all of it to the VS, and > document some of the units, restrictions, and calculations

[Mesa-dev] [Bug 36070] New: Backtrace happens when runnig Mesa/tests/texleak

2011-04-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=36070 Summary: Backtrace happens when runnig Mesa/tests/texleak Product: Mesa Version: git Platform: All OS/Version: Linux (All) Status: NEW Severity: normal Priority: me

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

2011-04-08 Thread Tom Stellard
On Thu, Apr 07, 2011 at 03:51:40AM +, Matt Turner wrote: > On Thu, Apr 7, 2011 at 3:06 AM, Tom Stellard wrote: > > I don't know anything about this code, but I just want to verify that > T0 (tee zero) and TO (tee oh) are different things and are used in the > right places. > > > +/** > > + *