Re: [Mesa-dev] [PATCH] intel:i915:i965: enable mipmap layout right mode

2012-03-19 Thread Yuanhan Liu
On Fri, Mar 16, 2012 at 11:13:23AM -0700, Eric Anholt wrote: On Thu, 15 Mar 2012 14:42:53 +0800, Yuanhan Liu yuanhan@linux.intel.com wrote: There are two mipmap layout modes: below and right. And we currently just use _below_ mode. And in some cases, like height is greater than width,

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_generator.py,

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 matts...@gmail.com wrote: On Fri, Mar 16, 2012 at 4:29 PM, Kristian Høgsberg k...@bitplanet.net 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

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 jon.tur...@dronecode.org.uk 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

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] [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

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 jfons...@vmware.com 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

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 ja...@vmware.com 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

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 ---

[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] [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 kenn...@whitecape.org ---

[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 kenn...@whitecape.org --- src/mesa/drivers/dri/intel/intel_context.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[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 kenn...@whitecape.org --- 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 +++-

[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 kenn...@whitecape.org --- 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

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

2012-03-19 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- 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

[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

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

2012-03-19 Thread Kenneth Graunke
Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- 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

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 e...@anholt.net wrote: ---  configure.ac        |    4 ++  src/glx/.gitignore  |    5 ++  src/glx/Makefile    |  119 -  src/glx/Makefile.am |  122 +++

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

[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 udkni...@gmail.com --- 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