Re: [Mesa-dev] Reminder: FOSDEM2012 speakers due Okt 1st.

2011-09-26 Thread Luc Verhaegen
On Mon, Sep 26, 2011 at 09:09:57AM +0200, Kai-Uwe Behrmann wrote: Am 26.09.11, 07:21 +0200 schrieb Luc Verhaegen: * Martin Peres - Nouveau * Alon Levy - Xspice * Chris Wilson - Cairo Only half the amount needed, with 5 days left. Surely we can do better than that for X/Mesa/Wayland/Anything

Re: [Mesa-dev] Reminder: FOSDEM2012 speakers due Okt 1st.

2011-09-26 Thread Ilyes Gouta
Hi, Come on guys, we need a Wayland state of the art talk! Please :) -Ilyes On Sep 26, 2011 8:45 AM, Luc Verhaegen l...@skynet.be wrote: On Mon, Sep 26, 2011 at 09:14:05AM +0200, Luc Verhaegen wrote: On Mon, Sep 26, 2011 at 09:09:57AM +0200, Kai-Uwe Behrmann wrote: Am 26.09.11, 07:21 +0200

Re: [Mesa-dev] Help for a beginner

2011-09-26 Thread Christian König
Hi Romain, Am Sonntag, den 25.09.2011, 11:11 +0200 schrieb Romain Failliot: Hi all! I'm an experienced programmer, but I've never touched the mesa code. I desperately want to help, but for that, I need a mentor to teach me the basics about the project, the good practices and eventually

[Mesa-dev] [Bug 41221] New: Mesa 7.11 implementation error: Incomplete OpenGL ES 2.0 support.

2011-09-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41221 Summary: Mesa 7.11 implementation error: Incomplete OpenGL ES 2.0 support. Product: Mesa Version: 7.11 Platform: x86 (IA32) OS/Version: Linux (All) Status: NEW

[Mesa-dev] [Bug 41221] Mesa 7.11 implementation error: Incomplete OpenGL ES 2.0 support.

2011-09-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=41221 minti minti.durg...@gmail.com changed: What|Removed |Added Priority|medium |highest -- Configure

Re: [Mesa-dev] Reminder: FOSDEM2012 speakers due Okt 1st.

2011-09-26 Thread Arthur Huillet
Hi, I don't usually do me too mails but it's for a good cause... FOSDEM is one of the best places to talk to your users about the future of X. Would someone be willing and able to fill an hour talking about how Wayland is doing? On Mon, 26 Sep 2011 08:58:46 +0100 Ilyes Gouta

Re: [Mesa-dev] [PATCH] mesa: Make enable.c and get.c properly range check clip flags.

2011-09-26 Thread Brian Paul
On Sun, Sep 25, 2011 at 1:52 PM, Paul Berry stereotype...@gmail.com wrote: This is a follow-up to commit 2d686fe911a89fa477ee3848da41ebfb100500bf, which added decoding of GL_CLIP_DISTANCE[67] to the _mesa_set_enable() function.  This patch makes the following additional fixes: - Uses

Re: [Mesa-dev] [PATCH] mesa: Make enable.c and get.c properly range check clip flags.

2011-09-26 Thread Paul Berry
On 25 September 2011 12:52, Paul Berry stereotype...@gmail.com wrote: This is a follow-up to commit 2d686fe911a89fa477ee3848da41ebfb100500bf, which added decoding of GL_CLIP_DISTANCE[67] to the _mesa_set_enable() function. This patch makes the following additional fixes: - Uses

Re: [Mesa-dev] [RFC PATCH] automake: add support to src/glsl/

2011-09-26 Thread Eric Anholt
On Sun, 25 Sep 2011 15:36:02 -0400, Matt Turner matts...@gmail.com wrote: Non-text part: multipart/mixed On Sat, Sep 24, 2011 at 9:06 PM, Matt Turner matts...@gmail.com wrote: Signed-off-by: Matt Turner matts...@gmail.com --- The last discussion about using automake ([RFC] Convert mesa to

Re: [Mesa-dev] [RFC PATCH] automake: add support to src/glsl/

2011-09-26 Thread Matt Turner
On Mon, Sep 26, 2011 at 11:29 AM, Eric Anholt e...@anholt.net wrote: On Sun, 25 Sep 2011 15:36:02 -0400, Matt Turner matts...@gmail.com wrote: Non-text part: multipart/mixed On Sat, Sep 24, 2011 at 9:06 PM, Matt Turner matts...@gmail.com wrote: Signed-off-by: Matt Turner matts...@gmail.com

Re: [Mesa-dev] Reminder: FOSDEM2012 speakers due Okt 1st.

2011-09-26 Thread Daniel Vetter
On Mon, Sep 26, 2011 at 07:21:42AM +0200, Luc Verhaegen wrote: As stated in an email sent a week and a half ago, i need 6 we will be there nomatter what speakers for FOSDEM this year before i go and talk to the FOSDEM organizers. So far we have: * Martin Peres - Nouveau * Alon Levy -

Re: [Mesa-dev] Help for a beginner

2011-09-26 Thread Romain Failliot
Hi Tom, hi Christian, 2011/9/26 Tom Stellard tstel...@gmail.com Glad you're interested. We can always use more help. I think the best way to get started is to find something to work on that is interesting to you. So, I have two questions: What hardware do you have, and why do you want to

Re: [Mesa-dev] [PATCH 00/19] i965: Do HiZ and depth resolves

2011-09-26 Thread Chad Versace
I'm choosing to shelve this series for now. Please continue along; don't waste too much time looking at these patches. I am concerned by several of the Piglit regressions I've found, and want to fix those before committing the series. I'll repost when my Piglit results have less red and black.

Re: [Mesa-dev] [PATCH 15/19] i965: Change type of brw_context.primitive from GLenum to hardware primitive

2011-09-26 Thread Eric Anholt
On Fri, 23 Sep 2011 17:37:45 -0700, Chad Versace c...@chad-versace.us wrote: For example, GL_TRIANLES is converted to _3DPRIM_TRILIST. missing a G -static const GLenum reduced_prim[GL_POLYGON+1] = { - GL_POINTS, - GL_LINES, - GL_LINES, - GL_LINES, - GL_TRIANGLES, -

[Mesa-dev] [PATCH] mesa: Allow override of GL version with environment variables

2011-09-26 Thread Chad Versace
It is necessary to manually set the GL version to 3.0 in order to run Piglit tests using glGetUniform*(). This patch allows one to override the version of an OpenGL, OpenGL ES1, or OpenGL ES2 context by setting the environment variable MESA_GL_VERSION, MESA_GLES1_VERSION, or MESA_GLES2_VERSION.

Re: [Mesa-dev] [RFC PATCH] automake: add support to src/glsl/

2011-09-26 Thread Kenneth Graunke
On 09/26/2011 08:29 AM, Eric Anholt wrote: I'd like to add other libs (hash table) at the src/ level, too, so a single helper lib that is mesa's shared, non-mtypes-using stuff but not things that are really Mesa like the glsl compiler would be nice. Yeah, we really could use a src/util folder.

Re: [Mesa-dev] Help for a beginner

2011-09-26 Thread Benjamin Bellec
Le 26/09/2011 20:25, Romain Failliot a écrit : At first, it would be questions like how to run my own compiled mesa drivers? I should handle getting the code, compiling it and editing it. Things I've never done (or almost never) is submitting a patch to a floss project. I wrote some words on

Re: [Mesa-dev] Help for a beginner

2011-09-26 Thread Romain Failliot
Great !! I'll read this right away! Thanks! 2011/9/26 Benjamin Bellec b.bel...@gmail.com: Le 26/09/2011 20:25, Romain Failliot a écrit : At first, it would be questions like how to run my own compiled mesa drivers? I should handle getting the code, compiling it and editing it. Things I've

Re: [Mesa-dev] [PATCH] mesa: Allow override of GL version with environment variables

2011-09-26 Thread Brian Paul
On Mon, Sep 26, 2011 at 1:05 PM, Chad Versace c...@chad-versace.us wrote: It is necessary to manually set the GL version to 3.0 in order to run Piglit tests using glGetUniform*(). This patch allows one to override the version of an OpenGL, OpenGL ES1, or OpenGL ES2 context by setting the

[Mesa-dev] [PATCH 1/7] mesa: Remove ARB_multitexture extension enable flag

2011-09-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. The existing support is already partially broken in Mesa (e.g., querying

[Mesa-dev] [PATCH 3/7] mesa: Remove EXT_texture_env_combine extension enable flag

2011-09-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. The existing support is already partially broken in Mesa (e.g., querying

[Mesa-dev] [PATCH 4/7] mesa: Remove EXT_texture_lod_bias extension enable flag

2011-09-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. This extension was previously not supported on mach64, mga, or r128. Signed-off-by: Ian

[Mesa-dev] [PATCH 5/7] mesa: Remove EXT_stencil_wrap extension enable flag

2011-09-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. This extension was previously not supported on mach64. Signed-off-by: Ian Romanick

[Mesa-dev] [PATCH 6/7] mesa: Remove EXT_blend_subtract extension enable flag

2011-09-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. This extension was previously not supported on i810, mach64, mga, savage, sis, and tdfx

[Mesa-dev] [PATCH 7/7] mesa: Remove ARB_texture_mirrored_repeat extension enable flag

2011-09-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. This extension was previously not supported on mach64, mga, and savage (Savage3D and

[Mesa-dev] [PATCH 2/7] mesa: Remove EXT_texture_env_add extension enable flag

2011-09-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. The existing support is already partially broken in Mesa (e.g., querying

Re: [Mesa-dev] [PATCH 1/7] mesa: Remove ARB_multitexture extension enable flag

2011-09-26 Thread Brian Paul
On 09/26/2011 01:37 PM, Ian Romanick wrote: From: Ian Romanickian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. The existing support is already partially

Re: [Mesa-dev] [PATCH] mesa: Allow override of GL version with environment variables

2011-09-26 Thread Ian Romanick
On 09/26/2011 12:05 PM, Chad Versace wrote: It is necessary to manually set the GL version to 3.0 in order to run Piglit tests using glGetUniform*(). This patch allows one to override the version of an OpenGL, OpenGL ES1, or OpenGL ES2 context by setting the environment variable

Re: [Mesa-dev] [PATCH] mesa: Allow override of GL version with environment variables

2011-09-26 Thread Kenneth Graunke
On 09/26/2011 12:57 PM, Ian Romanick wrote: On 09/26/2011 12:05 PM, Chad Versace wrote: It is necessary to manually set the GL version to 3.0 in order to run Piglit tests using glGetUniform*(). This patch allows one to override the version of an OpenGL, OpenGL ES1, or OpenGL ES2 context by

[Mesa-dev] [PATCH v2] mesa: Allow override of GL version with environment variable

2011-09-26 Thread Chad Versace
[idr and kwg, I see your point. I've removed the overrides for GLES1 and GLES2.] It is necessary to manually set the GL version to 3.0 in order to run Piglit tests using glGetUniform*(). This patch allows one to override the version of the OpenGL context by setting the environment variable

Re: [Mesa-dev] [PATCH v2] mesa: Allow override of GL version with environment variable

2011-09-26 Thread Brian Paul
On 09/26/2011 02:50 PM, Chad Versace wrote: [idr and kwg, I see your point. I've removed the overrides for GLES1 and GLES2.] It is necessary to manually set the GL version to 3.0 in order to run Piglit tests using glGetUniform*(). This patch allows one to override the version of the OpenGL

[Mesa-dev] [PATCH] gallium: remove PIPE_CAP_TEXTURE_MIRROR_REPEAT

2011-09-26 Thread Marek Olšák
All drivers support it (well, except Cell). The boolean option is going away from core Mesa too. This is a follow-up to Ian Romanick's patch mesa: Remove ARB_texture_mirrored_repeat extension enable flag. --- src/gallium/drivers/cell/ppu/cell_screen.c |2 --

Re: [Mesa-dev] [PATCH 1/4] gallium: add polygon offset clamp state

2011-09-26 Thread Christoph Bumiller
On 25.09.2011 00:32, Brian Paul wrote: On Sat, Sep 24, 2011 at 7:47 AM, Christoph Bumiller e0425...@student.tuwien.ac.at wrote: This is required for D3D1x and supported by hardware. --- src/gallium/auxiliary/draw/draw_pipe_offset.c |6 ++ src/gallium/auxiliary/util/u_dump_state.c

Re: [Mesa-dev] [PATCH 10/19] intel: Add function intel_renderbuffer_hiz_alloc

2011-09-26 Thread Eric Anholt
On Fri, 23 Sep 2011 17:37:40 -0700, Chad Versace c...@chad-versace.us wrote: This function allocates the HiZ region and initializes the HiZ control state for a depthbuffer. It is wise to define the logic for HiZ region allocation in a single location, since when MSAA arrives that logic will

Re: [Mesa-dev] [PATCH 1/7] mesa: Remove ARB_multitexture extension enable flag

2011-09-26 Thread Kenneth Graunke
On 09/26/2011 12:37 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com All drivers remaining in Mesa support this extension. This extension is either required or optional features in desktop OpenGL, OpenGL ES 1.x, and OpenGL ES 2.x. The existing support is already

Re: [Mesa-dev] [PATCH 1/7] i965: Use 4 bits to store nr_userclip in brw_clip.h.

2011-09-26 Thread Kenneth Graunke
On 09/25/2011 09:21 AM, Paul Berry wrote: Since the i965 driver supports 8 clipping planes now, we need 4 bits to store the number of user clipping planes, not 3. In theory this isn't strictly necessary, since brw_clip.h is only used on pre-GEN6, and pre-GEN6 only advertises support for 6

Re: [Mesa-dev] [PATCH 17/19] i965: After emitting a HiZ buffer, mark that it needs a HiZ resolve

2011-09-26 Thread Eric Anholt
On Fri, 23 Sep 2011 17:37:47 -0700, Chad Versace c...@chad-versace.us wrote: Signed-off-by: Chad Versace c...@chad-versace.us --- src/mesa/drivers/dri/i965/brw_misc_state.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git

[Mesa-dev] [PATCH] scons: generate git_sha1.h file as with Makefile build

2011-09-26 Thread Brian Paul
From: Brian Paul bri...@vmware.com So that GL_VERSION includes the git head hash id when building with scons. --- src/mesa/SConscript | 39 +-- 1 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/mesa/SConscript b/src/mesa/SConscript index

Re: [Mesa-dev] [PATCH 1/7] i965: Use 4 bits to store nr_userclip in brw_clip.h.

2011-09-26 Thread Kenneth Graunke
On 09/25/2011 09:21 AM, Paul Berry wrote: Since the i965 driver supports 8 clipping planes now, we need 4 bits to store the number of user clipping planes, not 3. In theory this isn't strictly necessary, since brw_clip.h is only used on pre-GEN6, and pre-GEN6 only advertises support for 6

Re: [Mesa-dev] [RFC PATCH] automake: add support to src/glsl/

2011-09-26 Thread Eric Anholt
On Mon, 26 Sep 2011 11:38:10 -0400, Matt Turner matts...@gmail.com wrote: On Mon, Sep 26, 2011 at 11:29 AM, Eric Anholt e...@anholt.net wrote: On Sun, 25 Sep 2011 15:36:02 -0400, Matt Turner matts...@gmail.com wrote: diff --git a/src/glsl/glsl_lexer.ll b/src/glsl/glsl_lexer.ll index

Re: [Mesa-dev] Help for a beginner

2011-09-26 Thread Eric Anholt
On Mon, 26 Sep 2011 20:25:39 +0200, Romain Failliot romain.faill...@foolstep.com wrote: Hi Tom, hi Christian, 2011/9/26 Tom Stellard tstel...@gmail.com Glad you're interested. We can always use more help. I think the best way to get started is to find something to work on that is

[Mesa-dev] [PATCH] i965: Use SIMD16 math on Ivybridge.

2011-09-26 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_emit.cpp b/src/mesa/drivers/dri/i965/brw_fs_emit.cpp index 8176a76..b35d558

[Mesa-dev] [PATCH 3/3] mesa: Delay s_texcombine.c memory allocation until it's used.

2011-09-26 Thread Eric Anholt
Generally we're using fragment programs in all our drivers, so wasting 4MB for code that's never called is pretty lame. Reduces i965 memory allocation for a short shader program from 21,932,128B to 17,737,816B. --- src/mesa/swrast/s_context.c| 11 --- src/mesa/swrast/s_texcombine.c

[Mesa-dev] [PATCH] glsl 1.30: Fix numerical instabilities in asinh

2011-09-26 Thread Paul Berry
The formula we were previously using for asinh: asinh x = ln(x + sqrt(x * x + 1)) is numerically unstable: when x is a large negative value, the quantity x + sqrt(x * x + 1) is a small positive value (on the order of 1/(2|x|)). Since the logarithm function is very sensitive in this

[Mesa-dev] [PATCH 1/2] i965: Make sure to upload the data for a collection of Stride == 0 arrays.

2011-09-26 Thread Eric Anholt
Commit d631c19db47181129811080bfa772b210d762d4d avoided this problem by forcing the driver to get the min/max index, but that commit was broken, so just fix the driver problem (confusion between do I need to upload any data? and do I need the index bounds in order to upload any data?). ---

[Mesa-dev] [PATCH 2/2] Revert vbo: Don't discount stride == 0 for testing all varyings in VBOs.

2011-09-26 Thread Eric Anholt
This reverts commit d631c19db47181129811080bfa772b210d762d4d. The commit was broken, and ended up returning false all the time because nobody in the world binds every single possible vertex array. On further reflection, we don't want to discount stride == 0: This function is just used for

Re: [Mesa-dev] [PATCH] i965: Use SIMD16 math on Ivybridge.

2011-09-26 Thread Eric Anholt
On Mon, 26 Sep 2011 16:51:34 -0700, Kenneth Graunke kenn...@whitecape.org wrote: Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] gallium: remove PIPE_CAP_TEXTURE_MIRROR_REPEAT

2011-09-26 Thread Brian Paul
On Mon, Sep 26, 2011 at 3:03 PM, Marek Olšák mar...@gmail.com wrote: All drivers support it (well, except Cell). The boolean option is going away from core Mesa too. This is a follow-up to Ian Romanick's patch mesa: Remove ARB_texture_mirrored_repeat extension enable flag. Reviewed-by: Brian

Re: [Mesa-dev] [PATCH] i965: Use SIMD16 math on Ivybridge.

2011-09-26 Thread Kenneth Graunke
On 09/26/2011 06:08 PM, Eric Anholt wrote: On Mon, 26 Sep 2011 16:51:34 -0700, Kenneth Graunke kenn...@whitecape.org wrote: Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_fs_emit.cpp | 14 ++ 1 files changed, 10 insertions(+), 4

[Mesa-dev] [PATCH 1/2] i965/fs: Allow SIMD16 with control flow on Ivybridge.

2011-09-26 Thread Kenneth Graunke
The check was designed to forbid it on old generations (Gen5/Ironlake), not on new ones. It just works on Gen7/Ivybridge. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git