[Mesa-dev] [PATCH 3/3] meta: Fix incorrect rendering of the bitmap alpha component.

2010-11-01 Thread Francisco Jerez
--- src/mesa/drivers/common/meta.c | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index f96e931..90eb5cb 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -2028,6 +2

[Mesa-dev] [PATCHv2 2/3] meta: Handle bitmaps with alpha test enabled.

2010-11-01 Thread Francisco Jerez
--- src/mesa/drivers/common/meta.c | 45 ++- 1 files changed, 39 insertions(+), 6 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 7ad1e72..f96e931 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drive

[Mesa-dev] [PATCH 1/3] meta: Don't leak alpha function/reference value changes.

2010-11-01 Thread Francisco Jerez
--- src/mesa/drivers/common/meta.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 9615b52..7ad1e72 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -104,6 +104,8 @

Re: [Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.

2010-11-01 Thread Francisco Jerez
Brian Paul writes: > [...] >> >> - bitmap8 = (GLubyte *) calloc(1, width * height); >> + bitmap8 = (GLubyte *) malloc(width * height); >> if (bitmap8) { >> + memset(bitmap8, ~alpha, width * height); >>_mesa_expand_bitmap(width, height, &unpackSave, bitmap1, >> -

Re: [Mesa-dev] [PATCH] mesa/program: Fix C++ includes in sampler.cpp

2010-11-01 Thread Brian Paul
On 11/01/2010 03:23 PM, Chad Versace wrote: Some C++ header files were included in an extern "C" block. When building with Clang, this caused the build to fail due to namespace errors. (GCC did not report any errors.) --- src/mesa/program/sampler.cpp |8 1 files changed, 4 inserti

Re: [Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.

2010-11-01 Thread Brian Paul
On 11/01/2010 05:34 PM, Francisco Jerez wrote: Brian Paul writes: > Unless a fragment shader is active (very rare), all the fragments > emitted for a bitmap should have the same RGBA color. So the only two > possible outcomes of applying the alpha test to glBitmap is either the > bitmap is dr

Re: [Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.

2010-11-01 Thread Francisco Jerez
Brian Paul writes: > Unless a fragment shader is active (very rare), all the fragments > emitted for a bitmap should have the same RGBA color. So the only two > possible outcomes of applying the alpha test to glBitmap is either the > bitmap is drawn normally (as if alpha test is disabled) or not

Re: [Mesa-dev] [PATCH] vbo: Avoid unnecessary copy to/from current in vertex format upgrade.

2010-11-01 Thread Brian Paul
On 11/01/2010 02:06 PM, Francisco Jerez wrote: Rebuilding the vertex format from scratch every time we see a new vertex attribute is rather costly, new attributes can be appended at the end avoiding a copy to current and then back again, and the full attr pointer recalculation. In the not so lik

Re: [Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.

2010-11-01 Thread Brian Paul
Unless a fragment shader is active (very rare), all the fragments emitted for a bitmap should have the same RGBA color. So the only two possible outcomes of applying the alpha test to glBitmap is either the bitmap is drawn normally (as if alpha test is disabled) or nothing is drawn at all.

[Mesa-dev] [PATCH] mesa/program: Fix C++ includes in sampler.cpp

2010-11-01 Thread Chad Versace
Some C++ header files were included in an extern "C" block. When building with Clang, this caused the build to fail due to namespace errors. (GCC did not report any errors.) --- src/mesa/program/sampler.cpp |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/pr

Re: [Mesa-dev] [PATCH 1/2] meta: Don't try to disable cube maps if the driver doesn't expose the extension.

2010-11-01 Thread Brian Paul
On 11/01/2010 02:10 PM, Francisco Jerez wrote: --- src/mesa/drivers/common/meta.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index c487097..9615b52 100644 --- a/src/mesa/drivers/common/meta.c +++ b/

[Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.

2010-11-01 Thread Francisco Jerez
--- src/mesa/drivers/common/meta.c | 55 1 files changed, 44 insertions(+), 11 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 9615b52..03c1e66 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/dri

[Mesa-dev] [PATCH 1/2] meta: Don't try to disable cube maps if the driver doesn't expose the extension.

2010-11-01 Thread Francisco Jerez
--- src/mesa/drivers/common/meta.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index c487097..9615b52 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -474,7 +474,8 @@

[Mesa-dev] [PATCH] vbo: Avoid unnecessary copy to/from current in vertex format upgrade.

2010-11-01 Thread Francisco Jerez
Rebuilding the vertex format from scratch every time we see a new vertex attribute is rather costly, new attributes can be appended at the end avoiding a copy to current and then back again, and the full attr pointer recalculation. In the not so likely case of an already existing attribute having

Re: [Mesa-dev] Revamping how to specify targets to build with scons

2010-11-01 Thread Xavier Chantry
On Mon, Nov 1, 2010 at 2:34 PM, José Fonseca wrote: > I've just pushed a long time requested improvement to scons build > system. > > Now is simply a matter of naming what to build. For example: > >  scons libgl-xlib > >  scons libgl-gdi > >  scons graw-progs > >  scons llvmpipe > > and so on. And

[Mesa-dev] [Bug 31256] S3TC libtxc_dxtn

2010-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31256 --- Comment #1 from jonathan 2010-11-01 07:41:58 PDT --- Created an attachment (id=39951) --> (https://bugs.freedesktop.org/attachment.cgi?id=39951) patch -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You

[Mesa-dev] [Bug 31294] libGlw.so is missing glw(M)DrawingAreaWidgetClass and simlilar although configured with --enable-motif --enable-glw

2010-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31294 justin changed: What|Removed |Added Summary|libGlw.so is missing|libGlw.so is missing |glwDraw

[Mesa-dev] [Bug 31294] New: libGlw.so is missing glwDrawingAreaWidgetClass and simlilar although configured with --enable-motif

2010-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31294 Summary: libGlw.so is missing glwDrawingAreaWidgetClass and simlilar although configured with --enable-motif Product: Mesa Version: 7.8 Platform: Other OS/Version: All

[Mesa-dev] Revamping how to specify targets to build with scons

2010-11-01 Thread José Fonseca
I've just pushed a long time requested improvement to scons build system. Now is simply a matter of naming what to build. For example: scons libgl-xlib scons libgl-gdi scons graw-progs scons llvmpipe and so on. And there is still the possibility of scepcified subdirs, e.g. scons sr

[Mesa-dev] [Bug 26904] undefined symbol: GLwCreateM2DrawingArea

2010-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=26904 justin changed: What|Removed |Added CC||j...@j-schmitz.net -- Configure bugmail: https

Re: [Mesa-dev] [PATCH 5/6] st/mesa: Reset the index buffer before destroying the pipe context.

2010-11-01 Thread Keith Whitwell
Tilman, This looks good - it makes sense to also reset the constant buffers, etc, at the same point... Keith On Sun, Oct 31, 2010 at 4:38 PM, Tilman Sauerbeck wrote: > Signed-off-by: Tilman Sauerbeck > --- >  src/mesa/state_tracker/st_context.c |    2 ++ >  1 files changed, 2 insertions(+), 0

[Mesa-dev] [Bug 31284] [glsl2] fail to link shaders for uniform arrays in vertex and uniform shaders

2010-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31284 zhao jian changed: What|Removed |Added AssignedTo|mesa-...@lists.freedesktop. |i...@freedesktop.org |org

[Mesa-dev] [Bug 31284] [glsl2] fail to link shaders for uniform arrays in vertex and uniform shaders

2010-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31284 --- Comment #1 from zhao jian 2010-11-01 01:22:15 PDT --- Created an attachment (id=39943) --> (https://bugs.freedesktop.org/attachment.cgi?id=39943) glsl uniform array in vertext and fragment shader -- Configure bugmail: https://bugs.freedes

[Mesa-dev] [Bug 31284] New: [glsl2] fail to link shaders for uniform arrays in vertex and uniform shaders

2010-11-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=31284 Summary: [glsl2] fail to link shaders for uniform arrays in vertex and uniform shaders Product: Mesa Version: unspecified Platform: x86 (IA32) OS/Version: Linux (All)