[Mesa-dev] [PATCH demos 2/2] opengles2: Add es2gears_wayland target

2012-05-01 Thread zhiwen . wu
From: Alex Wu Since we already have wayland support in eglut, add a target for es2geares_wayland. --- src/egl/opengles2/Makefile.am |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/egl/opengles2/Makefile.am b/src/egl/opengles2/Makefile.am index c84d91d..41c1b80 1

[Mesa-dev] [PATCH demos 1/2] eglut: Add wayland support

2012-05-01 Thread zhiwen . wu
From: Alex Wu This patch adds wayland support for eglut, so that the demos based on eglut can run on wayland platform. --- configure.ac | 14 src/egl/eglut/Makefile.am | 15 - src/egl/eglut/eglut_wayland.c | 135 + 3 file

[Mesa-dev] [PULL demos] eglut: Add wayland support

2012-05-01 Thread zhiwen . wu
The following changes since commit ebe0ddf657903bef32a161dc66254fbf8725f986: util: add gl_wrap.h and glu_wrap.h to libutil_la_SOURCES (2012-04-23 08:21:43 -0600) Alex Wu (2): eglut: Add wayland support opengles2: Add es2gears_wayland target configure.ac | 14 +

[Mesa-dev] UBO progress

2012-05-01 Thread Eric Anholt
I've pushed a "ubo" branch to my personal tree on fdo containing the start of work on UBOs. I pulled the glapi changes from vlj, but didn't take much else -- his grammar was oddly divergent from the spec, I didn't like the parallel type structure, and the interaction with the GL API for uniforms h

[Mesa-dev] [Bug 49360] New: Build: gen_matypes does not use $HOST_LDFLAGS

2012-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49360 Bug #: 49360 Summary: Build: gen_matypes does not use $HOST_LDFLAGS Classification: Unclassified Product: Mesa Version: git Platform: Other OS/Version: All Status: NEW

Re: [Mesa-dev] [PATCH] intel: Remove pointless software fallback for glBitmap on Gen6.

2012-05-01 Thread Kenneth Graunke
On 05/01/2012 04:41 PM, Chad Versace wrote: On 05/01/2012 03:53 PM, Kenneth Graunke wrote: We already have a meta path below that works just fine; no apparent regressions in oglconform. NOTE: This is a candidate for the 8.0 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46834 -

Re: [Mesa-dev] [PATCH] intel: Remove pointless software fallback for glBitmap on Gen6.

2012-05-01 Thread Chad Versace
On 05/01/2012 03:53 PM, Kenneth Graunke wrote: > We already have a meta path below that works just fine; no apparent > regressions in oglconform. > > NOTE: This is a candidate for the 8.0 branch. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46834 > --- > src/mesa/drivers/dri/intel/

[Mesa-dev] [PATCH 4/4 v2] glsl: report errors via GL_ARB_debug_output

2012-05-01 Thread nobled
--- src/glsl/glsl_parser_extras.cpp | 11 +++ src/glsl/standalone_scaffolding.cpp |6 ++ src/glsl/standalone_scaffolding.h |4 3 files changed, 21 insertions(+), 0 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 3d

[Mesa-dev] [PATCH 3/4 resend] glsl: add gl_context member

2012-05-01 Thread nobled
--- src/glsl/glsl_parser_extras.cpp |3 ++- src/glsl/glsl_parser_extras.h |3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 6a4ab4a..3d99cc5 100644 --- a/src/glsl/glsl_parser_extras.cpp +++ b/src

[Mesa-dev] [PATCH 2/4 v2] mesa: add _mesa_shader_debug()

2012-05-01 Thread nobled
This should be the one entrypoint libglsl needs for GL_ARB_debug_output. --- src/mesa/main/errors.c | 34 ++ src/mesa/main/errors.h |4 2 files changed, 38 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index f

[Mesa-dev] [PATCH 1/4 v2] glsl: consolidate code

2012-05-01 Thread nobled
And lay the groundwork for GL_ARB_debug_output. --- src/glsl/glsl_parser_extras.cpp | 33 +++-- 1 files changed, 19 insertions(+), 14 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index ae7a365..6a4ab4a 100644 --- a/src/g

[Mesa-dev] [PATCH] intel: Remove pointless software fallback for glBitmap on Gen6.

2012-05-01 Thread Kenneth Graunke
We already have a meta path below that works just fine; no apparent regressions in oglconform. NOTE: This is a candidate for the 8.0 branch. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46834 --- src/mesa/drivers/dri/intel/intel_pixel_bitmap.c |4 1 file changed, 4 deletions(-

Re: [Mesa-dev] [PATCH] mesa/main: Add primitive restart support to glArrayElement

2012-05-01 Thread Brian Paul
On 05/01/2012 10:09 AM, Jordan Justen wrote: When primitive restart is enabled, and glArrayElement is called with the restart index value, then call glPrimitiveRestartNV. Signed-off-by: Jordan Justen --- src/mesa/main/api_arrayelt.c | 10 +- 1 files changed, 9 insertions(+), 1 delet

[Mesa-dev] [Bug 49124] swrast/s_texfetch.c:1156: set_fetch_functions: Assertion `texImage->FetchTexel' failed.

2012-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49124 --- Comment #4 from Brian Paul 2012-05-01 14:16:28 PDT --- Yes, I already posted a Mesa patch to fix that side of it. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: -

[Mesa-dev] [PATCH] mesa: do more teximage error checking for generic compressed formats

2012-05-01 Thread Brian Paul
When glTexImage or glCopyTexImage is called with internalFormat being a generic compressed format (like GL_COMPRESSED_RGB) we need to do the same error checks as for specific compressed formats. In particular, check if the texture target is compatible with the format. None of the texture compress

[Mesa-dev] [Bug 49124] swrast/s_texfetch.c:1156: set_fetch_functions: Assertion `texImage->FetchTexel' failed.

2012-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49124 --- Comment #3 from nobled 2012-05-01 13:29:35 UTC --- Test failure aside, shouldn't the assert still be fixed? A buggy client shouldn't be able to cause that. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- Y

[Mesa-dev] [Bug 49124] swrast/s_texfetch.c:1156: set_fetch_functions: Assertion `texImage->FetchTexel' failed.

2012-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49124 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-05-01 Thread Kenneth Graunke
On 05/01/2012 10:24 AM, Eric Anholt wrote: On Tue, 1 May 2012 08:52:51 +0200, Olivier Galibert wrote: On Mon, Apr 30, 2012 at 02:21:51PM -0700, Eric Anholt wrote: GLSL 1.30 is already on for gen6+. You can force 1.30 for your purposes if needed on older hardware with the environment variable:

Re: [Mesa-dev] [PATCH 1/4] radeon: use _mesa_is_winsys/user_fbo() helpers

2012-05-01 Thread Eric Anholt
On Tue, 1 May 2012 08:48:39 -0600, Brian Paul wrote: > From: Brian Paul Series is: Reviewed-by: Eric Anholt pgpU6m9maDXLZ.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/

Re: [Mesa-dev] [PATCH 2/6] New unary opcodes for ARB_shader_bit_encoding support.

2012-05-01 Thread Eric Anholt
On Tue, 1 May 2012 08:52:51 +0200, Olivier Galibert wrote: > On Mon, Apr 30, 2012 at 02:21:51PM -0700, Eric Anholt wrote: > > GLSL 1.30 is already on for gen6+. You can force 1.30 for your purposes > > if needed on older hardware with the environment variable: > > > > MESA_GLSL_VERSION_OVERRIDE=

Re: [Mesa-dev] [PATCH 1/3] softpipe: implement coord clamping for texel fetches (TXF)

2012-05-01 Thread Jose Fonseca
The whole series looks good to me. Jose - Original Message - > From: Brian Paul > > The GL spec says out of bounds fetches produce undefined results. > Use clamping to avoid failed assertions or crashes. > > Fixes failed assertion in > https://bugs.freedesktop.org/show_bug.cgi?id=49125

[Mesa-dev] [PATCH] mesa/main: Add primitive restart support to glArrayElement

2012-05-01 Thread Jordan Justen
When primitive restart is enabled, and glArrayElement is called with the restart index value, then call glPrimitiveRestartNV. Signed-off-by: Jordan Justen --- src/mesa/main/api_arrayelt.c | 10 +- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/api_arrayelt

[Mesa-dev] [PATCH v3 13/13] gallium/compute: Drop TGSI dependency.

2012-05-01 Thread Francisco Jerez
Add a shader cap for specifying the preferred shader representation. Right now the only supported value is TGSI, other enum values will be added as they are needed. This is mainly to accommodate AMD's LLVM compiler back-end by letting it bypass the TGSI representation for compute programs. Other

[Mesa-dev] [PATCH v3 10/13] gallium/tgsi: Add support for barriers.

2012-05-01 Thread Francisco Jerez
--- v3: Split sampler views from shader resources. src/gallium/auxiliary/tgsi/tgsi_info.c |4 +++ src/gallium/docs/source/tgsi.rst | 49 src/gallium/include/pipe/p_shader_tokens.h |7 +++- 3 files changed, 59 insertions(+), 1 deletion(-) diff

[Mesa-dev] [PATCH v3 12/13] gallium/tgsi: Introduce the "LOCAL" register declaration modifier.

2012-05-01 Thread Francisco Jerez
This change will be useful to implement function parameter passing on top of TGSI. As we don't have a proper stack, a register-based calling convention will be used instead, which isn't necessarily a bad thing given that GPUs often have plenty of registers to spare. Using the same register space

[Mesa-dev] [PATCH v3 07/13] gallium/tgsi: Add support for raw resources.

2012-05-01 Thread Francisco Jerez
Normal resource access (e.g. the LOAD TGSI opcode) is supposed to perform a series of conversions to turn the texture data as it's found in memory into the target data type. In compute programs it's often the case that we only want to access the raw bits as they're stored in some buffer object, an

[Mesa-dev] [PATCH v3 11/13] gallium/tgsi: Add support for atomic opcodes.

2012-05-01 Thread Francisco Jerez
--- v3: Split sampler views from shader resources. src/gallium/auxiliary/tgsi/tgsi_info.c | 13 ++- src/gallium/docs/source/tgsi.rst | 164 src/gallium/include/pipe/p_shader_tokens.h | 13 ++- 3 files changed, 188 insertions(+), 2 deletions(-) diff

[Mesa-dev] [PATCH v3 08/13] gallium/tgsi: Add resource write-back support.

2012-05-01 Thread Francisco Jerez
Define a new STORE opcode with a role dual to the LOAD opcode, and add flags to specify that a shader resource is intended for writing. --- v3: Split sampler views from shader resources. src/gallium/auxiliary/tgsi/tgsi_build.c|4 src/gallium/auxiliary/tgsi/tgsi_dump.c |2 ++

[Mesa-dev] [PATCH v3 06/13] gallium/tgsi: Define the TGSI_BUFFER texture target.

2012-05-01 Thread Francisco Jerez
This texture type was already referred to by the documentation but it was never defined. Define it as 0 to match the pipe_texture_target enumeration values. --- v3: Split sampler views from shader resources. src/gallium/auxiliary/tgsi/tgsi_build.c|2 +- src/gallium/auxiliary/

[Mesa-dev] [PATCH v3 09/13] gallium/tgsi: Define system values used to query the compute grid parameters.

2012-05-01 Thread Francisco Jerez
--- v3: Split sampler views from shader resources. src/gallium/auxiliary/tgsi/tgsi_strings.c |6 +- src/gallium/include/pipe/p_shader_tokens.h |6 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary

[Mesa-dev] [PATCH v3 04/13] gallium/tgsi: Move interpolation info from tgsi_declaration to a separate token.

2012-05-01 Thread Francisco Jerez
Move Interpolate, Centroid and CylindricalWrap from tgsi_declaration to a separate token -- they only make sense for FS inputs and we need room for other flags in the top-level declaration token. --- v3: Split sampler views from shader resources. src/gallium/auxiliary/draw/draw_pipe_aaline.c

[Mesa-dev] [PATCH v3 02/13] gallium/tgsi: Split sampler views from shader resources.

2012-05-01 Thread Francisco Jerez
This commit splits the current concept of resource into "sampler views" and "shader resources": "Sampler views" are textures or buffers that are bound to a given shader stage and can be read from in conjunction with a sampler object. They are analogous to OpenGL texture objects or Direct3D SRVs.

[Mesa-dev] [PATCH v3 05/13] gallium/tgsi: Introduce the compute processor.

2012-05-01 Thread Francisco Jerez
--- v3: Split sampler views from shader resources. src/gallium/auxiliary/tgsi/tgsi_scan.c |3 ++- src/gallium/auxiliary/tgsi/tgsi_strings.c |5 +++-- src/gallium/auxiliary/tgsi/tgsi_strings.h |2 +- src/gallium/auxiliary/tgsi/tgsi_text.c |2 ++ src/gallium/include/pipe/p

[Mesa-dev] [PATCH v3 01/13] gallium: Basic compute interface.

2012-05-01 Thread Francisco Jerez
Define an interface that exposes the minimal functionality required to implement some of the popular compute APIs. This commit adds entry points to set the grid layout and other state required to keep track of the usual address spaces employed in compute APIs, to bind a compute program, and execut

[Mesa-dev] [PATCH v3 03/13] gallium: Add context hooks for binding shader resources.

2012-05-01 Thread Francisco Jerez
--- v3: Split sampler views from shader resources. src/gallium/docs/source/context.rst | 20 +++- src/gallium/docs/source/screen.rst |4 src/gallium/include/pipe/p_context.h | 32 src/gallium/include/pipe/p_defines.h |2 ++ src/

[Mesa-dev] [Bug 49124] swrast/s_texfetch.c:1156: set_fetch_functions: Assertion `texImage->FetchTexel' failed.

2012-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49124 --- Comment #1 from Brian Paul 2012-05-01 08:13:38 PDT --- It looks like the piglit test has a few bugs. I'll post a patch to fix them. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this

Re: [Mesa-dev] [PATCH 1/4] radeon: use _mesa_is_winsys/user_fbo() helpers

2012-05-01 Thread Alex Deucher
On Tue, May 1, 2012 at 10:48 AM, Brian Paul wrote: > From: Brian Paul > > --- >  src/mesa/drivers/dri/r200/r200_state.c          |    5 +++-- >  src/mesa/drivers/dri/radeon/radeon_common.c     |   11 ++- >  src/mesa/drivers/dri/radeon/radeon_pixel_read.c |    3 ++- >  src/mesa/drivers/dri

[Mesa-dev] [PATCH 4/4] xlib: use _mesa_is_winsys/user_fbo() helpers

2012-05-01 Thread Brian Paul
From: Brian Paul --- src/mesa/drivers/x11/xm_dd.c | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/x11/xm_dd.c b/src/mesa/drivers/x11/xm_dd.c index 7748298..12004ba 100644 --- a/src/mesa/drivers/x11/xm_dd.c +++ b/src/mesa/drivers/x11/xm_dd.c @@

[Mesa-dev] [PATCH 3/4] intel: use _mesa_is_winsys/user_fbo() helpers

2012-05-01 Thread Brian Paul
From: Brian Paul --- src/mesa/drivers/dri/i915/i830_state.c |3 ++- src/mesa/drivers/dri/i915/i915_state.c |7 --- src/mesa/drivers/dri/i965/brw_fs.cpp|3 ++- src/mesa/drivers/dri/i965/brw_misc_state.c | 18 +- src/mesa/drivers

[Mesa-dev] [PATCH 2/4] nouveau: use _mesa_is_winsys/user_fbo() helpers

2012-05-01 Thread Brian Paul
From: Brian Paul --- src/mesa/drivers/dri/nouveau/nouveau_context.c |5 +++-- src/mesa/drivers/dri/nouveau/nouveau_driver.c |4 +++- src/mesa/drivers/dri/nouveau/nouveau_screen.c |1 + 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/nouveau/nouve

[Mesa-dev] [PATCH 1/4] radeon: use _mesa_is_winsys/user_fbo() helpers

2012-05-01 Thread Brian Paul
From: Brian Paul --- src/mesa/drivers/dri/r200/r200_state.c |5 +++-- src/mesa/drivers/dri/radeon/radeon_common.c | 11 ++- src/mesa/drivers/dri/radeon/radeon_pixel_read.c |3 ++- src/mesa/drivers/dri/radeon/radeon_state.c |5 +++-- 4 files changed, 14 ins

[Mesa-dev] [PATCH 3/3] softpipe: use any_swizzle() helper in sp_tex_sample.c

2012-05-01 Thread Brian Paul
From: Brian Paul --- src/gallium/drivers/softpipe/sp_tex_sample.c | 23 +++ 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index 6f4294f..d4c0175 100644 --- a/src/g

[Mesa-dev] [PATCH 2/3] softpipe: whitespace, comment clean-ups in sp_tex_sample.c

2012-05-01 Thread Brian Paul
From: Brian Paul --- src/gallium/drivers/softpipe/sp_tex_sample.c | 58 ++--- 1 files changed, 32 insertions(+), 26 deletions(-) diff --git a/src/gallium/drivers/softpipe/sp_tex_sample.c b/src/gallium/drivers/softpipe/sp_tex_sample.c index 83d9be8..6f4294f 100644 --- a/sr

[Mesa-dev] [PATCH 1/3] softpipe: implement coord clamping for texel fetches (TXF)

2012-05-01 Thread Brian Paul
From: Brian Paul The GL spec says out of bounds fetches produce undefined results. Use clamping to avoid failed assertions or crashes. Fixes failed assertion in https://bugs.freedesktop.org/show_bug.cgi?id=49125 but the test still fails. --- src/gallium/drivers/softpipe/sp_tex_sample.c | 45 +

Re: [Mesa-dev] [PATCH] scons: Do not build EGL on Solaris.

2012-05-01 Thread Brian Paul
On 04/30/2012 11:38 PM, Vinson Lee wrote: The current EGL headers do not support Solaris. How hard would it be to update the EGL headers for Solaris? For the long-term, it would be nice if Khronos applied a fix/patch to the EGL headers instead. But this is OK. Reviewed-by: Brian Paul __

Re: [Mesa-dev] [PATCH 3/3] svga: check for and skip null vertex buffer pointers

2012-05-01 Thread Jose Fonseca
Series looks good to me. Jose - Original Message - > Fixes regressions with google earth and other things. > --- > src/gallium/drivers/svga/svga_swtnl_draw.c | 20 > > 1 files changed, 12 insertions(+), 8 deletions(-) > > diff --git a/src/gallium/drivers/svga/svg

[Mesa-dev] [Bug 49326] softpipe regressed back to OpenGL 2.1

2012-05-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=49326 Alex Deucher changed: What|Removed |Added Status|NEW |RESOLVED Resolution|