[Mesa-dev] [PATCH 0/6] glapi: remove gen-es

2011-08-11 Thread Chia-I Wu
Hi list, This patch series removes the gen-es subdirectory of glapi. In gen-es/, there are two sets of GLAPI XMLs for GLESv1 and GLESv2 respectively, and rules to generate headers for GLES on the fly. To be able to get rid of the two sets of GLAPI XMLs, a new python file is added to describe the

[Mesa-dev] [PATCH 1/6] glapi: add gles_api.py

2011-08-11 Thread Chia-I Wu
From: Chia-I Wu Move the list of entry points belong to GLES from mapi_abi.py to a new file. Until we figure out how to describe the APIs an entry point belongs to in the XML file, and how to handle the case where an entry point others alias is missing in some APIs, this is an easier solution th

[Mesa-dev] [PATCH 2/6] glapi: add methods to filter functions

2011-08-11 Thread Chia-I Wu
From: Chia-I Wu add gl_api::filter_functions and gl_function::filter_entry_points to filter out unwanted functions and entry points. --- src/mapi/glapi/gen/gl_XML.py | 46 +++-- 1 files changed, 39 insertions(+), 7 deletions(-) diff --git a/src/mapi/glapi/g

[Mesa-dev] [PATCH 3/6] glapi: use gl_and_es_API.xml to generate GLES headers

2011-08-11 Thread Chia-I Wu
From: Chia-I Wu glapi/gen-es/ defines two sets of GLAPI XMLs for OpenGL ES 1.1 (es1_API.xml) and 2.0 (es2_API.xml) respectively. They are used to generate dispatch.h and remap_helper.h for GLES. Together with gl_and_es_API.xml, we have to maintain three sets of GLAPI XMLs. This commit makes di

[Mesa-dev] [PATCH 4/6] glapi: add glapi_gen.mk to help header generation

2011-08-11 Thread Chia-I Wu
From: Chia-I Wu glapi_gen.mk is supposed to be included by glapi users to simplify header generation. This commit also makes es1api, es2api, and shared-glapi use it. --- src/mapi/es1api/Makefile| 25 +++-- src/mapi/glapi/gen/glapi_gen.mk | 44

[Mesa-dev] [PATCH 5/6] glapi: generate ES dispatch headers from core mesa

2011-08-11 Thread Chia-I Wu
From: Chia-I Wu GLESv1 and GLESv2 have their own dispatch.h and remap_helper.h. These headers are only used by api_exec_es1.c and api_exec_es2.c in core mesa. Move the rules to generate them from glapi to core mesa. --- src/mapi/es1api/Makefile |9 + src/mesa/Makefile

[Mesa-dev] Re : [PATCH] Var packer optimisation.

2011-08-11 Thread Vincent Lejeune
Thanks for your reviews. I'm taking note of your comments and I will have a new patch soon. (btw, I must apologize because I forgot to add a commit when rebasing, so this new patch didn't have function comments to explain their role, and "break;" where not pushed t) - Mail original -

Re: [Mesa-dev] [PATCH 0/6] glapi: remove gen-es

2011-08-11 Thread Brian Paul
On Thu, Aug 11, 2011 at 3:44 AM, Chia-I Wu wrote: > Hi list, > > This patch series removes the gen-es subdirectory of glapi.  In > gen-es/, there are two sets of GLAPI XMLs for GLESv1 and GLESv2 > respectively, and rules to generate headers for GLES on the fly. > > To be able to get rid of the two

Re: [Mesa-dev] [PATCH] swrast: initial multi-threaded span rendering

2011-08-11 Thread Brian Paul
These patches don't look too intrusive so I'm OK with them. I'll apply them, test and push. I've been meaning to write a new OSMesa interface for gallium for some time now. That would probably be useful to a few people. I'm tempted to redesign the OSMesa API a bit, but it's probably more i

[Mesa-dev] GPL'd vl_mpeg12_bitstream.c

2011-08-11 Thread Younes Manton
It's been brought to my attention that the source this is based on is GPL'd, which means it needs to go before 7.12 is released since it's incompatible with Mesa's MIT license. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesk

Re: [Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-11 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/04/2011 06:29 AM, Brian Paul wrote: > On 08/04/2011 06:31 AM, Benjamin Franzke wrote: >> Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 >> >> egl_dri2 creates contexts with a doubleBufferConfig when PIXMAP and >> WINDOW bit is request,

Re: [Mesa-dev] [PATCH] intel: Set ctx's drawbuffer according to drawables visual

2011-08-11 Thread Brian Paul
On 08/11/2011 11:09 AM, Ian Romanick wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/04/2011 06:29 AM, Brian Paul wrote: On 08/04/2011 06:31 AM, Benjamin Franzke wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=39588 egl_dri2 creates contexts with a doubleBufferConfig when

[Mesa-dev] [Bug 40028] New: warnings in glapitemp.h for glapi dispatch table return types

2011-08-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40028 Summary: warnings in glapitemp.h for glapi dispatch table return types Product: Mesa Version: unspecified Platform: Other OS/Version: All Status: NEW Seve

Re: [Mesa-dev] [PATCH] glsl: When assigning to a whole array, mark the array as accessed.

2011-08-11 Thread Eric Anholt
On Fri, 5 Aug 2011 21:48:53 -0700, Eric Anholt wrote: > The vs-varying-array-mat2-col-row-wr test writes a mat2[3] constant to > a mat2[3] varying out array, and also statically accesses element 1 of > it on the VS and FS sides. At link time it would get trimmed down to > just 2 elements, and th

[Mesa-dev] [PATCH 1/4] i965/fs: Don't convert float/int/bool uniforms for GLSL 1.30.

2011-08-11 Thread Kenneth Graunke
Core Mesa now loads float/integer/boolean uniform data for drivers that claim to support GLSL 1.30, thanks to Bryan Cain's recent work. When we run in "1.30 mode," we need to avoid double conversions. Once we really support 1.30, we should just delete all this code. Fixes piglit tests with INTEL

[Mesa-dev] [PATCH 2/4] i965/fs: Initial refactoring for binary math operations other than POW.

2011-08-11 Thread Kenneth Graunke
Most math operations are unary operations; prior to this patch, POW was the only binary operation we supported. The next commit will introduce integer quotient and remainder operations. To facilitate that, this patch simply generalizes POW checks into two-operand checks. Signed-off-by: Kenneth G

[Mesa-dev] [PATCH 3/4] i965/fs: Implement integer quotient and remainder math operations.

2011-08-11 Thread Kenneth Graunke
Prior to this patch, POW was the only two-operand math operation, so a few cases needed to be updated. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_eu_emit.c|2 ++ src/mesa/drivers/dri/i965/brw_fs.cpp |5 + src/mesa/drivers/dri/i965/brw_f

[Mesa-dev] [PATCH 4/4] i965/fs: Use proper register type for MATH instruction GRF temporaries.

2011-08-11 Thread Kenneth Graunke
The MATH instruction unfortunately only operates on GRF registers with an HStride of 1, so we often need to create a temporary GRF. For integer division and modulus, we need to use an integer register. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs.cpp |2 ++ 1 files ch

Re: [Mesa-dev] [PATCH] swrast: initial multi-threaded span rendering

2011-08-11 Thread Andreas Fänger
OSMesa for gallium would be really helpful. Are there plans to implement some sort of antialising (GL_POLYGON_SMOOTH, fsaa) in softpipe/llvmpipe? Andreas -Ursprüngliche Nachricht- Von: Brian Paul [mailto:bri...@vmware.com] Gesendet: Donnerstag, 11. August 2011 16:31 An: Andreas Fänger C