Re: [Mesa-dev] [PATCH 01/13] mesa: make _mesa_reference_sampler_object() an inline function

2012-03-19 Thread Jose Fonseca
The series looks good AFAICT. Joe - Original Message - > To make the no-change case faster, as we do for the other > object-reference > functions. > --- > src/mesa/main/samplerobj.c |9 - > src/mesa/main/samplerobj.h | 12 +++- > 2 files changed, 15 insertions(+), 6

Re: [Mesa-dev] Doing 8.0.1 release?

2012-03-19 Thread Jakob Bornecrantz
- Original Message - > Please make sure to include python-generated C files in the 8.0.2 > tarball. They were not there in 8.0.1's: > > python -t -O -O main/es_generator.py -S main/APIspec.xml -V GLES1.1 > > main/api_exec_es1.c > Traceback (most recent call last): > File "main/es_genera

Re: [Mesa-dev] [PATCH] shared-glapi: Convert to automake

2012-03-19 Thread Kristian Høgsberg
On Sat, Mar 17, 2012 at 11:36 PM, Matt Turner wrote: > On Fri, Mar 16, 2012 at 4:29 PM, Kristian Høgsberg wrote: >> This fixes a build problem where EGL links to libgbm.la, which encodes >> a relative path to it's libglapi.so dependency.  The relative path >> breaks when the linker tries to resol

Re: [Mesa-dev] [PATCH] shared-glapi: Convert to automake

2012-03-19 Thread Jon TURNEY
> I don't see that here, I can remove glapi_mapi_tmp.h and make will > rebuild it with the python script. A full autogen should generate the > new dep rules (though ./config.status depfiles may be enough). I did not find that to be the case. Attached is a patch which adds BUILT_SOURCES and the -

Re: [Mesa-dev] [PATCH] shared-glapi: Convert to automake

2012-03-19 Thread Kristian Høgsberg
On Mon, Mar 19, 2012 at 11:23 AM, Jon TURNEY wrote: >> I don't see that here, I can remove glapi_mapi_tmp.h and make will >> rebuild it with the python script.  A full autogen should generate the >> new dep rules (though ./config.status depfiles may be enough). > > I did not find that to be the ca

Re: [Mesa-dev] [PATCH 02/13] mesa: use MAX3() macro for 3D texture in _mesa_test_texobj_completeness()

2012-03-19 Thread Kenneth Graunke
On 03/18/2012 09:49 AM, Brian Paul wrote: --- src/mesa/main/texobj.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 5905948..def09e2 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -465,9 +

Re: [Mesa-dev] Doing 8.0.1 release?

2012-03-19 Thread Jeremy Huddleston
On Mar 19, 2012, at 5:18 AM, Jakob Bornecrantz wrote: > - Original Message - >> Please make sure to include python-generated C files in the 8.0.2 >> tarball. They were not there in 8.0.1's: >> >> python -t -O -O main/es_generator.py -S main/APIspec.xml -V GLES1.1 > >> main/api_exec_es1

Re: [Mesa-dev] [PATCH] shared-glapi: Convert to automake

2012-03-19 Thread Matt Turner
On Mon, Mar 19, 2012 at 11:50 AM, Kristian Høgsberg wrote: > Ok, I pushed with the BUILT_SOURCES line, but didn't add -no-undefined. I think no undefined is important for Windows, and I know it would have caught some problems for me in the past. Matt _

Re: [Mesa-dev] [PATCH] shared-glapi: Convert to automake

2012-03-19 Thread Jose Fonseca
I didn't know that --no-undefined . It seems quite nice, but more for Linux than Windows, as on windows all DLLs are linked work as if --no-undefined is set -- no undefined symbols are ever allowed. Jose - Original Message - > On Mon, Mar 19, 2012 at 11:50 AM, Kristian Høgsberg > wro

Re: [Mesa-dev] [PATCH] shared-glapi: Convert to automake

2012-03-19 Thread Matt Turner
On Mon, Mar 19, 2012 at 3:52 PM, Jose Fonseca wrote: > I didn't know that --no-undefined .  It seems quite nice, but more for Linux > than Windows, as on windows all DLLs are linked work as if --no-undefined  is > set -- no undefined symbols are ever allowed. Right, I think that's why Jon sugge

Re: [Mesa-dev] Doing 8.0.1 release?

2012-03-19 Thread Jakob Bornecrantz
- Original Message - > > On Mar 19, 2012, at 5:18 AM, Jakob Bornecrantz > wrote: > > > - Original Message - > >> Please make sure to include python-generated C files in the 8.0.2 > >> tarball. They were not there in 8.0.1's: > >> > >> python -t -O -O main/es_generator.py -S mai

Re: [Mesa-dev] [PATCH 02/13] mesa: use MAX3() macro for 3D texture in _mesa_test_texobj_completeness()

2012-03-19 Thread Brian Paul
On 03/19/2012 12:29 PM, Kenneth Graunke wrote: On 03/18/2012 09:49 AM, Brian Paul wrote: --- src/mesa/main/texobj.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 5905948..def09e2 100644 --- a/src/mesa/main/texobj.c

[Mesa-dev] Initial Haswell support

2012-03-19 Thread Kenneth Graunke
This series adds basic Haswell support to the i965 driver. Many piglit tests pass (though I have yet to try it on real hardware). The series is also available in the 'haswell' branch of the main repository. ___ mesa-dev mailing list mesa-dev@lists.free

[Mesa-dev] [PATCH 1/8] i965: Add initial IS_HASWELL() macros.

2012-03-19 Thread Kenneth Graunke
For now, these all return 0, as I don't yet want to enable Haswell support. Eventually they will be filled in with proper PCI IDs. Also add an is_haswell field similar to is_g4x to make it easy to distinguish Gen7 and Gen7.5. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/intel/intel_

[Mesa-dev] [PATCH 2/8] i965: Disable HiZ on Haswell for now.

2012-03-19 Thread Kenneth Graunke
Getting HiZ working means updating all the state packets for resolves and clears. It's not worth doing until we get the basics working. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/intel/intel_context.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) This patch won't app

[Mesa-dev] [PATCH 3/8] i965: Update max VS/PS threads shift offsets for Haswell.

2012-03-19 Thread Kenneth Graunke
These now start at bit 23 instead of bit 24/25. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_defines.h |4 +++- src/mesa/drivers/dri/i965/gen7_hiz.c |2 +- src/mesa/drivers/dri/i965/gen7_vs_state.c |4 +++- src/mesa/drivers/dri/i965/gen7_wm_state.c |4 +

[Mesa-dev] [PATCH 4/8] i965: Set Line Stipple enable bit in 3DSTATE_SF for Haswell.

2012-03-19 Thread Kenneth Graunke
Apparently this needs to be the same as in 3DSTATE_WM. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_defines.h |2 ++ src/mesa/drivers/dri/i965/gen7_sf_state.c |3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_define

[Mesa-dev] [PATCH 5/8] i965: Set "Stencil Buffer Enable" bit on Haswell.

2012-03-19 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/gen7_misc_state.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index d0ce542..d3458e0 100644 --- a/src/mesa/drive

[Mesa-dev] [PATCH 6/8] i965: Fill in Sample Mask in Haswell's 3DSTATE_PS.

2012-03-19 Thread Kenneth Graunke
We only need one sample, since we don't support multisampling yet. --- src/mesa/drivers/dri/i965/gen7_wm_state.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_wm_state.c b/src/mesa/drivers/dri/i965/gen7_wm_state.c index 773598f..a4c0e01

[Mesa-dev] [PATCH 7/8] i965: Set "Shader Channel Select" fields in Haswell's SURFACE_STATE.

2012-03-19 Thread Kenneth Graunke
These can be used to implement EXT_texture_swizzle without baking state-dependent swizzle instructions into the shader and forcing recompiles. For now, just set them to pass-through mode, so everything continues to work as it did on Ivybridge. We can optimize this later. Signed-off-by: Kenneth G

[Mesa-dev] [PATCH 8/8] intel: Add some PCI IDs for Haswell.

2012-03-19 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke --- include/pci_ids/i965_pci_ids.h |5 + src/mesa/drivers/dri/intel/intel_chipset.h | 13 +++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/include/pci_ids/i965_pci_ids.h b/include/pci_ids/i965_pci_ids.h index d37a2e

Re: [Mesa-dev] [PATCH 1/6] glx: Convert to automake.

2012-03-19 Thread Matt Turner
On Wed, Feb 8, 2012 at 9:09 PM, Eric Anholt wrote: > --- >  configure.ac        |    4 ++ >  src/glx/.gitignore  |    5 ++ >  src/glx/Makefile    |  119 - >  src/glx/Makefile.am |  122 > +++ >  src/mes

Re: [Mesa-dev] [PATCH v3 2/2] GLX_TLS: use TLS macros when define those TLS variables.

2012-03-19 Thread Zhigang Gong
Hi Brian, Have you tried those testings(osmesa, static lib builds, etc) already and any new comments for the previous patchset. Thanks. > -Original Message- > From: > mesa-dev-bounces+zhigang.gong=linux.intel@lists.freedesktop.org > [mailto:mesa-dev-bounces+zhigang.gong=linux.intel.

[Mesa-dev] [PATCH] glx:dri_common.c: check psc->driScreen->createDrawable return value

2012-03-19 Thread Wang YanQing
createDrawable may return NULL value, we should check it, or it will make a segment failed. Signed-off-by: Wang YanQing --- src/glx/dri_common.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/src/glx/dri_common.c b/src/glx/dri_common.c index e7dba5a..6122d32 100644 --- a/src/glx/d

[Mesa-dev] [PATCH] glsl: Don't require gl_Position to be written in GLSL 1.40.

2012-03-19 Thread Eric Anholt
--- src/glsl/linker.cpp | 35 ++- 1 files changed, 30 insertions(+), 5 deletions(-) diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp index 39169aa..471525e 100644 --- a/src/glsl/linker.cpp +++ b/src/glsl/linker.cpp @@ -258,11 +258,36 @@ validate_vertex_shad

Re: [Mesa-dev] [PATCH 08/13] mesa: rewrite/consolidate code in _mesa_test_texobj_completeness()

2012-03-19 Thread Eric Anholt
On Sun, 18 Mar 2012 10:49:24 -0600, Brian Paul wrote: > Merge the mipmap level checking code that was separate cases for 1D, > 2D, 3D and CUBE before. > - if (img->_BaseFormat == GL_DEPTH_COMPONENT) { > - incomplete(t, "GL_DEPTH_COMPONENT only works with 1/2D > tex