[Mesa-dev] [RFC-PATCH 00/18] add Android support

2011-08-17 Thread Chia-I Wu
Hi list, This patch series adds Android Gingerbread support to Mesa. To begin with, it only supports software rendering with softpipe. I've tested it with VirtualBox. There are pending series that enable all other gallium pipe drivers and the classic i915/i965. I would like to see how this

[Mesa-dev] [PATCH 01/18] mesa: fix !FEATURE_GL build

2011-08-17 Thread Chia-I Wu
Move vbo_exec_FlushVertices_internal out of FEATURE_beginend. --- src/mesa/vbo/vbo_exec_api.c | 36 ++-- 1 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c index 2b8d38e..af66dbd 100644 ---

[Mesa-dev] [PATCH 02/18] glsl: remove an unnecessary header include

2011-08-17 Thread Chia-I Wu
--- src/glsl/main.cpp |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 9b8a507..0192137 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -24,7 +24,6 @@ #include ast.h #include glsl_parser_extras.h -#include

[Mesa-dev] [PATCH 03/18] gallium: add PIPE_OS_ANDROID support

2011-08-17 Thread Chia-I Wu
Android uses Linux kernel and its own C runtime. It resembles PIPE_OS_LINUX a lot with some minor exceptions. --- src/gallium/auxiliary/os/os_thread.h |2 +- src/gallium/auxiliary/util/u_math.h | 12 +++- src/gallium/include/pipe/p_compiler.h |2 ++

[Mesa-dev] [PATCH 04/18] ralloc: SIZE_MAX is missing on Android

2011-08-17 Thread Chia-I Wu
Define SIZE_MAX to UINT32_MAX for it. --- src/glsl/ralloc.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c index 6a5eac6..757ab5c 100644 --- a/src/glsl/ralloc.c +++ b/src/glsl/ralloc.c @@ -46,6 +46,10 @@ #endif #endif +#ifdef

[Mesa-dev] [PATCH 05/18] mesa: android has no log2f nor ffs

2011-08-17 Thread Chia-I Wu
Define log2f(v) to be log(v) / M_LN2 and ffs to __builtin_ffs. --- src/mesa/main/imports.h |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 3fa1db0..e404975 100644 --- a/src/mesa/main/imports.h +++

[Mesa-dev] [PATCH 06/18] egl: add _EGL_PLATFORM_ANDROID

2011-08-17 Thread Chia-I Wu
From: Chia-I Wu o...@lunarg.com This is Android Gingerbread platform. --- include/EGL/eglplatform.h |9 + src/egl/main/egldisplay.c |3 ++- src/egl/main/egldisplay.h |1 + 3 files changed, 12 insertions(+), 1 deletions(-) diff --git a/include/EGL/eglplatform.h

[Mesa-dev] [PATCH 07/18] egl: add Android-specific extensions

2011-08-17 Thread Chia-I Wu
Add EGL_ANDROID_image_native_buffer and EGL_ANDROID_swap_rectangle. There is no spec for them though. --- include/EGL/eglext.h | 14 ++ src/egl/main/eglapi.c | 25 + src/egl/main/eglapi.h |8 src/egl/main/egldisplay.h |3 +++

[Mesa-dev] [PATCH 08/18] st/egl: add android backend

2011-08-17 Thread Chia-I Wu
From: Chia-I Wu o...@lunarg.com This backend supports _EGL_PLATFORM_ANDROID with both HW and SW rendering. --- .../state_trackers/egl/android/native_android.cpp | 722 src/gallium/state_trackers/egl/common/egl_g3d.c| 11 +

[Mesa-dev] [PATCH 09/18] android: build libGLES_mesa

2011-08-17 Thread Chia-I Wu
This is the first step to integrate Mesa into Android(-x86) build system. You can git clone mesa under the external/ directory of Android source tree and build Android with $ make BOARD_GPU_DRIVERS=swrast It will build libGLES_mesa that will be loaded by Android runtime. libGLES_mesa is still

[Mesa-dev] [PATCH 10/18] android: build gallium auxiliaries

2011-08-17 Thread Chia-I Wu
This builds the static library libmesa_gallium from gallium auxiliaries. --- src/gallium/Android.mk |4 + src/gallium/auxiliary/Android.mk | 253 ++ 2 files changed, 257 insertions(+), 0 deletions(-) create mode 100644

[Mesa-dev] [PATCH 11/18] android: build st/egl with android backend

2011-08-17 Thread Chia-I Wu
This builds the static library libmesa_st_egl from st/egl. --- src/gallium/Android.mk|2 +- src/gallium/state_trackers/egl/Android.mk | 57 + 2 files changed, 58 insertions(+), 1 deletions(-) create mode 100644

[Mesa-dev] [PATCH 12/18] android: build android sw winsys

2011-08-17 Thread Chia-I Wu
This builds the static library libmesa_winsys_sw_android from winsys/sw. --- src/gallium/Android.mk |2 + src/gallium/winsys/sw/android/Android.mk | 35 ++ 2 files changed, 37 insertions(+), 0 deletions(-) create mode 100644

[Mesa-dev] [PATCH 13/18] android: build softpipe

2011-08-17 Thread Chia-I Wu
This builds the static library libmesa_pipe_softpipe from softpipe. --- src/gallium/Android.mk |2 +- src/gallium/drivers/softpipe/Android.mk | 68 +++ 2 files changed, 69 insertions(+), 1 deletions(-) create mode 100644

[Mesa-dev] [PATCH 14/18] android: build core EGL

2011-08-17 Thread Chia-I Wu
This builds the static library libmesa_egl from core EGL. --- Android.mk |1 + src/egl/Android.mk | 66 2 files changed, 67 insertions(+), 0 deletions(-) create mode 100644 src/egl/Android.mk diff --git a/Android.mk b/Android.mk

[Mesa-dev] [PATCH 15/18] android: build core mesa

2011-08-17 Thread Chia-I Wu
This builds the static library libmesa_st_mesa from core mesa. --- Android.mk |1 + src/mesa/Android.gen.mk | 106 +++ src/mesa/Android.mk | 76 + 3 files changed, 183 insertions(+), 0 deletions(-)

[Mesa-dev] [PATCH 16/18] android: build glsl

2011-08-17 Thread Chia-I Wu
This builds the static library libmesa_glsl and executable glsl_compiler from glsl. glsl_compiler is only installed for engineering build. --- Android.mk |1 + src/glsl/Android.gen.mk | 73 + src/glsl/Android.mk | 161

[Mesa-dev] [PATCH 17/18] android: build shared glapi

2011-08-17 Thread Chia-I Wu
This builds the shared library libglapi from shared glapi. --- Android.mk |1 + src/mapi/Android.mk | 61 +++ 2 files changed, 62 insertions(+), 0 deletions(-) create mode 100644 src/mapi/Android.mk diff --git a/Android.mk

[Mesa-dev] [PATCH 18/18] android: make libGLES_mesa real

2011-08-17 Thread Chia-I Wu
libGLES_mesa with swrast should link in these libraries libmesa_egl libmesa_st_egl libmesa_st_mesa libmesa_glsl libmesa_glsl_utils libmesa_pipe_softpipe libmesa_winsys_sw_android libmesa_gallium --- Android.mk| 11 ++

[Mesa-dev] [PATCH 0/3] Misc cleanups to st/dri and xmlconfig

2011-08-17 Thread Lauri Kasanen
Hi Reposting this series from ~ a month ago. Two no-ops and one better error message. - Lauri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 1/3] st/dri: Indent driconf options

2011-08-17 Thread Lauri Kasanen
From 3553ae23259ff73e4f07587ef713fd0c59effe56 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Fri, 1 Jul 2011 12:57:06 +0300 Subject: [PATCH 1/3] st/dri: Indent driconf options Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/state_trackers/dri/common/dri_screen.c |

[Mesa-dev] [PATCH 2/3] xmlpool.h: fix a typo

2011-08-17 Thread Lauri Kasanen
From 1537c66a98ec0d70e92d476e34fc4ded2a12394a Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Fri, 1 Jul 2011 13:01:00 +0300 Subject: [PATCH 2/3] xmlpool.h: fix a typo Signed-off-by: Lauri Kasanen c...@gmx.com --- src/mesa/drivers/dri/common/xmlpool.h |2 +- 1 files changed,

[Mesa-dev] [PATCH 3/3] xmlconfig: Make the error message more informative

2011-08-17 Thread Lauri Kasanen
From d438f8147153267bb54e48fe6fb3e36bcbac0331 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Fri, 1 Jul 2011 13:49:18 +0300 Subject: [PATCH 3/3] xmlconfig: Make the error message more informative Signed-off-by: Lauri Kasanen c...@gmx.com ---

Re: [Mesa-dev] [PATCH 0/11] Post-processing infrastructure / gsoc work

2011-08-17 Thread Lauri Kasanen
On Tue, 16 Aug 2011 18:44:35 -0600 Brian Paul brian.e.p...@gmail.com wrote: Hi Thanks for taking the time to read them through. Patch 07 seems still stuck in the ML moderation queue. The set builds on top of the three cleanup patches sent earlier; they haven't been applied to master, nor

Re: [Mesa-dev] [PATCH] st/mesa: fix incorrect loop over instruction src regs

2011-08-17 Thread Jose Fonseca
Looks good. Jose - Original Message - The array of src regs is of size 3, not 4. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp

[Mesa-dev] [PATCH 0/12] Post-processing infrastructure / gsoc work, v2

2011-08-17 Thread Lauri Kasanen
Hi all v2: - ran indent on the files - fixed indent blunders (table, shaders were mangled by it) - copyright notices no longer mention Tungsten - if/loop bodies no longer on the same line - verts array static const - comments for all functions and structs - pp_umax removed in favor of MAX2 -

[Mesa-dev] [PATCH 01/12] driconf: Add the PP descriptions

2011-08-17 Thread Lauri Kasanen
From c2cdc65492e423317c49b43512599a350a64bccb Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 16:06:13 +0300 Subject: [PATCH 01/12] driconf: Add the PP descriptions Signed-off-by: Lauri Kasanen c...@gmx.com --- src/mesa/drivers/dri/common/xmlpool/options.h |

[Mesa-dev] [PATCH 02/12] st/dri: Bind the post-processing queue to dri

2011-08-17 Thread Lauri Kasanen
From 62c519c1179f9c30d8675e6bdad66ca45c74f878 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 16:07:59 +0300 Subject: [PATCH 02/12] st/dri: Bind the post-processing queue to dri Signed-off-by: Lauri Kasanen c...@gmx.com ---

[Mesa-dev] [PATCH 03/12] aux/Makefile,SConscript: Build PP

2011-08-17 Thread Lauri Kasanen
From f4f45da8955567e4badcdb2062a8fae4cc9522a6 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 16:09:16 +0300 Subject: [PATCH 03/12] aux/Makefile,SConscript: Build PP Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/Makefile |6 ++

[Mesa-dev] [PATCH 04/12] pp: Docs

2011-08-17 Thread Lauri Kasanen
From 4b762d4cbb443387ae6e072a701f5a70e7196c9f Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 16:09:57 +0300 Subject: [PATCH 04/12] pp: Docs Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/ADDING | 87

[Mesa-dev] [PATCH 05/12] pp: Color filters

2011-08-17 Thread Lauri Kasanen
From 7af348785e0f8c545feaf7d5c3809a0abe8e01ce Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 16:10:47 +0300 Subject: [PATCH 05/12] pp: Color filters Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/pp_colors.c | 80

[Mesa-dev] [PATCH 06/12] pp: Cel-shade filter

2011-08-17 Thread Lauri Kasanen
From 85bc09c37c560dbdb46b66ca1b5535baa296507b Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 16:11:03 +0300 Subject: [PATCH 06/12] pp: Cel-shade filter Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/pp_celshade.c | 38

[Mesa-dev] [PATCH 08/12] pp: Add Jimenez' MLAA

2011-08-17 Thread Lauri Kasanen
From 721e3cfb68db06a10f7e3de0ed155113782b312a Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Wed, 17 Aug 2011 11:18:13 +0300 Subject: [PATCH 08/12] pp: Add Jimenez' MLAA Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/pp_mlaa.c | 304

[Mesa-dev] [PATCH 09/12] pp/main queue: Add pp_run.c

2011-08-17 Thread Lauri Kasanen
From 406e811078d6e2f35bcaa736fd42b773a9e312ab Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 17:09:39 +0300 Subject: [PATCH 09/12] pp/main queue: Add pp_run.c Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/pp_run.c | 187

[Mesa-dev] [PATCH 10/12] pp/main queue: Add pp_init.c

2011-08-17 Thread Lauri Kasanen
From e49e97731d4a819fa92c89089e4fe07c49877469 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 17:10:13 +0300 Subject: [PATCH 10/12] pp/main queue: Add pp_init.c Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/pp_init.c | 280

[Mesa-dev] [PATCH 11/12] pp/main queue: Add pp_program.[ch]

2011-08-17 Thread Lauri Kasanen
From f8db3a8ea0b5462ea9e1917e7b89e8f757d54be5 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 17:10:31 +0300 Subject: [PATCH 11/12] pp/main queue: Add pp_program.[ch] Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/pp_program.c |

[Mesa-dev] [PATCH 12/12] pp/main queue: Add the PP headers

2011-08-17 Thread Lauri Kasanen
From b40c9368b7f1fc65fa6611d9ada48c8e7a0150ce Mon Sep 17 00:00:00 2001 From: Lauri Kasanen c...@gmx.com Date: Tue, 16 Aug 2011 17:10:53 +0300 Subject: [PATCH 12/12] pp/main queue: Add the PP headers Signed-off-by: Lauri Kasanen c...@gmx.com --- src/gallium/auxiliary/postprocess/filters.h |

[Mesa-dev] VDPAU scaling rather than cropping 1088 - 1080

2011-08-17 Thread Andy Furniss
Maybe this is already known/just not complete yet, but as I've previously written that r600 -vo vdpau without decode looked OK I ought to mention it as I've just noticed. 1080 height mpeg2 or h264 internally is 1088, the bottom 8 lines should be cropped off, which is what -vo x11/gl/xv/xvmc

[Mesa-dev] glsl: strange looking code in ast_function.cpp

2011-08-17 Thread Aras Pranckevicius
Lines 290..294 in ast_function.cpp: deref = new(ctx) ir_dereference_variable(var); ir_assignment *assign = new(ctx) ir_assignment(deref, call, NULL); instructions-push_tail(assign); deref = new(ctx) ir_dereference_variable(var); The second creation of ir_dereference_variable almost looks

Re: [Mesa-dev] [RFC-PATCH 00/18] add Android support

2011-08-17 Thread Brian Paul
On 08/17/2011 12:28 AM, Chia-I Wu wrote: Hi list, This patch series adds Android Gingerbread support to Mesa. To begin with, it only supports software rendering with softpipe. I've tested it with VirtualBox. There are pending series that enable all other gallium pipe drivers and the classic

Re: [Mesa-dev] [PATCH] st/mesa: fix incorrect loop over instruction src regs

2011-08-17 Thread Bryan Cain
The usual commit message prefix for changes to glsl_to_tgsi is glsl_to_tgsi, not st/mesa. On 08/16/2011 05:33 PM, Brian Paul wrote: The array of src regs is of size 3, not 4. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff

[Mesa-dev] glsl: do_vec_index_to_cond_assign not called; has problems if called

2011-08-17 Thread Aras Pranckevicius
Looks like do_vec_index_to_cond_assing was lost in this commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f4fe151681a6f6afe1d452eece6cf4144f44e49 Not sure if that was intentional or not. However if I try to manually call it like it used to be called before (just after

Re: [Mesa-dev] [PATCH] st/mesa: fix incorrect loop over instruction src regs

2011-08-17 Thread Keith Whitwell
On Wed, 2011-08-17 at 09:36 -0500, Bryan Cain wrote: The usual commit message prefix for changes to glsl_to_tgsi is glsl_to_tgsi, not st/mesa. On 08/16/2011 05:33 PM, Brian Paul wrote: The array of src regs is of size 3, not 4. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp |2 +-

Re: [Mesa-dev] [PATCH] st/mesa: fix incorrect loop over instruction src regs

2011-08-17 Thread Bryan Cain
On 08/17/2011 09:47 AM, Keith Whitwell wrote: On Wed, 2011-08-17 at 09:36 -0500, Bryan Cain wrote: The usual commit message prefix for changes to glsl_to_tgsi is glsl_to_tgsi, not st/mesa. On 08/16/2011 05:33 PM, Brian Paul wrote: The array of src regs is of size 3, not 4. ---

Re: [Mesa-dev] [PATCH 0/11] Post-processing infrastructure / gsoc work

2011-08-17 Thread Brian Paul
On 08/17/2011 01:41 AM, Lauri Kasanen wrote: On Tue, 16 Aug 2011 18:44:35 -0600 Brian Paulbrian.e.p...@gmail.com wrote: Hi Thanks for taking the time to read them through. Patch 07 seems still stuck in the ML moderation queue. The set builds on top of the three cleanup patches sent

Re: [Mesa-dev] glsl: do_vec_index_to_cond_assign not called; has problems if called

2011-08-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/17/2011 07:45 AM, Aras Pranckevicius wrote: Looks like do_vec_index_to_cond_assing was lost in this commit: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2f4fe151681a6f6afe1d452eece6cf4144f44e49 Converting variable indexing of vectors to

Re: [Mesa-dev] [PATCH 02/18] glsl: remove an unnecessary header include

2011-08-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: Reviewed-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/main.cpp |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index

Re: [Mesa-dev] [PATCH 04/18] ralloc: SIZE_MAX is missing on Android

2011-08-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: Define SIZE_MAX to UINT32_MAX for it. --- src/glsl/ralloc.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/glsl/ralloc.c b/src/glsl/ralloc.c index 6a5eac6..757ab5c

Re: [Mesa-dev] [PATCH 05/18] mesa: android has no log2f nor ffs

2011-08-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: Define log2f(v) to be log(v) / M_LN2 and ffs to __builtin_ffs. --- src/mesa/main/imports.h |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/mesa/main/imports.h

Re: [Mesa-dev] MapTextureImage patch series for review

2011-08-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 05:53 PM, Brian Paul wrote: On 08/15/2011 12:53 PM, Eric Anholt wrote: Here's my mti-tested branch of the map-texture-image-v4 work. It's not regressing on intel or softpipe, and in fact fixes a couple of tests now on those. It is

Re: [Mesa-dev] glsl: strange looking code in ast_function.cpp

2011-08-17 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/17/2011 07:13 AM, Aras Pranckevicius wrote: Lines 290..294 in ast_function.cpp: deref = new(ctx) ir_dereference_variable(var); ir_assignment *assign = new(ctx) ir_assignment(deref, call, NULL); instructions-push_tail(assign); deref =

Re: [Mesa-dev] glsl: strange looking code in ast_function.cpp

2011-08-17 Thread Paul Berry
On 17 August 2011 08:55, Ian Romanick i...@freedesktop.org wrote: first.  Recall that, with the exception of the ir_variable in a dereference, each node can only appear in the IR stream once. IMHO, this is the key subtlety that should be mentioned in the comment.

Re: [Mesa-dev] [PATCH 01/18] mesa: fix !FEATURE_GL build

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reviewed-by: Chad Versace c...@chad-versace.us On 08/16/2011 11:28 PM, Chia-I Wu wrote: Move vbo_exec_FlushVertices_internal out of FEATURE_beginend. --- src/mesa/vbo/vbo_exec_api.c | 36 ++-- 1 files changed,

Re: [Mesa-dev] [PATCH 02/18] glsl: remove an unnecessary header include

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reviewed-by: Chad Versace c...@chad-versace.us On 08/16/2011 11:28 PM, Chia-I Wu wrote: --- src/glsl/main.cpp |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 9b8a507..0192137

Re: [Mesa-dev] [PATCH 04/18] ralloc: SIZE_MAX is missing on Android

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/17/2011 08:31 AM, Ian Romanick wrote: On 08/16/2011 11:28 PM, Chia-I Wu wrote: Define SIZE_MAX to UINT32_MAX for it. --- src/glsl/ralloc.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/glsl/ralloc.c

Re: [Mesa-dev] [PATCH 06/18] egl: add _EGL_PLATFORM_ANDROID

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: From: Chia-I Wu o...@lunarg.com This is Android Gingerbread platform. --- include/EGL/eglplatform.h |9 + src/egl/main/egldisplay.c |3 ++- src/egl/main/egldisplay.h | 1 + 3 files changed,

Re: [Mesa-dev] [PATCH 0/11] Post-processing infrastructure / gsoc work

2011-08-17 Thread Lauri Kasanen
On Wed, 17 Aug 2011 09:13:24 -0600 Brian Paul bri...@vmware.com wrote: I don't know if this is possible, but could the post-processor be constructed as another gallium driver that wraps other drivers? For example, the rbug driver is a wrapper driver that intercepts most of the

Re: [Mesa-dev] MapTextureImage patch series for review

2011-08-17 Thread Kenneth Graunke
On 08/17/2011 08:53 AM, Ian Romanick wrote: On 08/16/2011 05:53 PM, Brian Paul wrote: One fix would be to refactor meta.c into several files to separate out the meta functions that use swrast. Yes, please. meta.c is getting a little out of control. I'll second that :)

Re: [Mesa-dev] [PATCH 07/18] egl: add Android-specific extensions

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reviewed-by: Chad Versace c...@chad-versace.us On 08/16/2011 11:28 PM, Chia-I Wu wrote: Add EGL_ANDROID_image_native_buffer and EGL_ANDROID_swap_rectangle. There is no spec for them though. --- include/EGL/eglext.h | 14 ++

Re: [Mesa-dev] [PATCH 09/18] android: build libGLES_mesa

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've commented below on TOP/Android.mk and TOP/Android.common.mk. The Gallium makefiles are outside of my domain, so I have no comments on those. On 08/16/2011 11:28 PM, Chia-I Wu wrote: This is the first step to integrate Mesa into Android(-x86)

Re: [Mesa-dev] [PATCH 14/18] android: build core EGL

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The version tag in the copyright header should be removed. But, either way, this is Reviewed-by: Chad Versace c...@chad-versace.us On 08/16/2011 11:28 PM, Chia-I Wu wrote: This builds the static library libmesa_egl from core EGL. --- Android.mk

Re: [Mesa-dev] [PATCH 15/18] android: build core mesa

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Overall this looks good, but some of it I don't follow. I trust that you're doing the right thing for those parts. Acked-by: Chad Versace c...@chad-versace.us On 08/16/2011 11:28 PM, Chia-I Wu wrote: This builds the static library libmesa_st_mesa

Re: [Mesa-dev] [PATCH 17/18] android: build shared glapi

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Reviewed-by: Chad Versace c...@chad-versace.us On 08/16/2011 11:28 PM, Chia-I Wu wrote: This builds the shared library libglapi from shared glapi. --- Android.mk |1 + src/mapi/Android.mk | 61

Re: [Mesa-dev] [PATCH 0/11] Post-processing infrastructure / gsoc work

2011-08-17 Thread Christoph Bumiller
On 17.08.2011 18:56, Lauri Kasanen wrote: On Wed, 17 Aug 2011 09:13:24 -0600 Brian Paul bri...@vmware.com wrote: I don't know if this is possible, but could the post-processor be constructed as another gallium driver that wraps other drivers? For example, the rbug driver is a wrapper

Re: [Mesa-dev] [PATCH 16/18] android: build glsl

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: This builds the static library libmesa_glsl and executable glsl_compiler from glsl. glsl_compiler is only installed for engineering build. --- Android.mk |1 + src/glsl/Android.gen.mk |

Re: [Mesa-dev] [PATCH 18/18] android: make libGLES_mesa real

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Acked-by: Chad Versace c...@chad-versace.us On 08/16/2011 11:28 PM, Chia-I Wu wrote: libGLES_mesa with swrast should link in these libraries libmesa_egl libmesa_st_egl libmesa_st_mesa libmesa_glsl libmesa_glsl_utils

Re: [Mesa-dev] [RFC-PATCH 00/18] add Android support

2011-08-17 Thread Chad Versace
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: Hi list, This patch series adds Android Gingerbread support to Mesa. To begin with, it only supports software rendering with softpipe. I've tested it with VirtualBox. There are pending series that

Re: [Mesa-dev] [PATCH 0/11] Post-processing infrastructure / gsoc work

2011-08-17 Thread Corbin Simpson
On Wed, Aug 17, 2011 at 9:56 AM, Lauri Kasanen c...@gmx.com wrote: My understanding is that Mesa is c99 (with such includes for some systems included in the tree). Are there really c99 compilers that would choke on that? Sadly, no. We do C89 in the non-compiler-specific areas of Gallium. ~

Re: [Mesa-dev] [PATCH 0/11] Post-processing infrastructure / gsoc work

2011-08-17 Thread Brian Paul
On 08/17/2011 02:33 PM, Corbin Simpson wrote: On Wed, Aug 17, 2011 at 9:56 AM, Lauri Kasanenc...@gmx.com wrote: My understanding is that Mesa is c99 (with such includes for some systems included in the tree). Are there really c99 compilers that would choke on that? Sadly, no. We do C89 in

Re: [Mesa-dev] MapTextureImage patch series for review

2011-08-17 Thread Eric Anholt
On Tue, 16 Aug 2011 18:53:00 -0600, Brian Paul bri...@vmware.com wrote: On 08/15/2011 12:53 PM, Eric Anholt wrote: Here's my mti-tested branch of the map-texture-image-v4 work. It's not regressing on intel or softpipe, and in fact fixes a couple of tests now on those. It is not as

Re: [Mesa-dev] MapTextureImage patch series for review

2011-08-17 Thread Brian Paul
On 08/17/2011 04:51 PM, Eric Anholt wrote: On Tue, 16 Aug 2011 18:53:00 -0600, Brian Paulbri...@vmware.com wrote: On 08/15/2011 12:53 PM, Eric Anholt wrote: Here's my mti-tested branch of the map-texture-image-v4 work. It's not regressing on intel or softpipe, and in fact fixes a couple of

[Mesa-dev] [PATCH] mesa: refactor meta GetTexImage code

2011-08-17 Thread Brian Paul
We shouldn't directly call meta functions from core Mesa because that creates a dependency on swrast. The new _mesa_meta_GetTexImage() function trivially calls the meta decompression routine for compressed textures vs. the core _mesa_get_teximage() fallback function for uncompressed textures. In

[Mesa-dev] [PATCH] i965/gen6+: Use non-normalized coordinates for GL_TEXTURE_RECTANGLE.

2011-08-17 Thread Eric Anholt
Improves performance of a GL_TEXTURE_RECTANGLE microbenchmark by 1.84% +/- .15% (n=3) --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp |3 ++- src/mesa/drivers/dri/i965/brw_wm_fp.c|4 +++- src/mesa/drivers/dri/i965/brw_wm_sampler_state.c |7 +++

Re: [Mesa-dev] [PATCH 04/18] ralloc: SIZE_MAX is missing on Android

2011-08-17 Thread Chia-I Wu
On Thu, Aug 18, 2011 at 12:28 AM, Chad Versace c...@chad-versace.us wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/17/2011 08:31 AM, Ian Romanick wrote: On 08/16/2011 11:28 PM, Chia-I Wu wrote: Define SIZE_MAX to UINT32_MAX for it. --- src/glsl/ralloc.c |    4 1 files

Re: [Mesa-dev] [PATCH 06/18] egl: add _EGL_PLATFORM_ANDROID

2011-08-17 Thread Chia-I Wu
On Thu, Aug 18, 2011 at 12:34 AM, Chad Versace c...@chad-versace.us wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: From: Chia-I Wu o...@lunarg.com This is Android Gingerbread platform. --- include/EGL/eglplatform.h |    9 +

Re: [Mesa-dev] [PATCH 09/18] android: build libGLES_mesa

2011-08-17 Thread Chia-I Wu
On Thu, Aug 18, 2011 at 2:03 AM, Chad Versace c...@chad-versace.us wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've commented below on TOP/Android.mk and TOP/Android.common.mk. The Gallium makefiles are outside of my domain, so I have no comments on those. On 08/16/2011 11:28 PM,

Re: [Mesa-dev] [PATCH 16/18] android: build glsl

2011-08-17 Thread Chia-I Wu
On Thu, Aug 18, 2011 at 4:06 AM, Chad Versace c...@chad-versace.us wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: This builds the static library libmesa_glsl and executable glsl_compiler from glsl.  glsl_compiler is only installed for

Re: [Mesa-dev] [RFC-PATCH 00/18] add Android support

2011-08-17 Thread Chia-I Wu
On Wed, Aug 17, 2011 at 10:26 PM, Brian Paul bri...@vmware.com wrote: On 08/17/2011 12:28 AM, Chia-I Wu wrote: Hi list, This patch series adds Android Gingerbread support to Mesa.  To begin with, it only supports software rendering with softpipe.  I've tested it with VirtualBox.  There are

Re: [Mesa-dev] [RFC-PATCH 00/18] add Android support

2011-08-17 Thread Chia-I Wu
On Thu, Aug 18, 2011 at 4:14 AM, Chad Versace c...@chad-versace.us wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: Hi list, This patch series adds Android Gingerbread support to Mesa.  To begin with, it only supports software rendering with

Re: [Mesa-dev] [PATCH 05/18] mesa: android has no log2f nor ffs

2011-08-17 Thread Chia-I Wu
On Wed, Aug 17, 2011 at 11:33 PM, Ian Romanick i...@freedesktop.org wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 08/16/2011 11:28 PM, Chia-I Wu wrote: Define log2f(v) to be log(v) / M_LN2 and ffs to __builtin_ffs. ---  src/mesa/main/imports.h |    8 +++-  1 files changed, 7