Re: [Mesa-dev] LLVMInitializeAMDGPU* undefined?

2016-03-10 Thread Chih-Wei Huang
, acceptable by the upstream)? > On Thu, Mar 10, 2016 at 10:04 AM, Chih-Wei Huang > <cwhu...@android-x86.org> wrote: > > Hi devs, > > On building 64-bit Android-x86 mesa with amdgpu support, > > we got some errors about the symbols LLVMInitializeAMDGPU* > > are not d

[Mesa-dev] LLVMInitializeAMDGPU* undefined?

2016-03-10 Thread Chih-Wei Huang
Hi devs, On building 64-bit Android-x86 mesa with amdgpu support, we got some errors about the symbols LLVMInitializeAMDGPU* are not defined. (missing prototypes) It's easy to fix the errors by adding the definition of the function prototypes. However, I'm curious in which side it should be

Re: [Mesa-dev] [android-x86-devel] Re: gralloc_drm_pipe

2016-03-06 Thread Chih-Wei Huang
2016-03-05 3:53 GMT+08:00 Rob Clark : > On Fri, Mar 4, 2016 at 2:43 PM, Thomas Hellstrom > wrote: >> On 03/04/2016 07:07 PM, Rob Clark wrote: >>> On Fri, Mar 4, 2016 at 12:59 PM, Rob Clark wrote: So, I've been advocating that

[Mesa-dev] [PATCH] android: re-generate git_sha1.h if git HEAD updated

2016-02-25 Thread Chih-Wei Huang
The git_sha1.h has to depend on the git HEAD otherwise it will never be updated. Signed-off-by: Chih-Wei Huang <cwhu...@linux.org.tw> --- src/mesa/Android.gen.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/Android.gen.mk b/src/mesa/Android.gen.mk index a

Re: [Mesa-dev] [PATCH 0/8] Fixes for building AOSP master

2016-02-25 Thread Chih-Wei Huang
2016-02-26 1:27 GMT+08:00 Emil Velikov <emil.l.veli...@gmail.com>: > On 25 February 2016 at 17:22, Chih-Wei Huang <cwhu...@android-x86.org> wrote: >> 2016-02-25 9:47 GMT+08:00 Emil Velikov <emil.l.veli...@gmail.com>: >>> On 24 February 2016 at 18:56, Rob Herrin

Re: [Mesa-dev] [PATCH 0/8] Fixes for building AOSP master

2016-02-25 Thread Chih-Wei Huang
2016-02-25 9:47 GMT+08:00 Emil Velikov : > On 24 February 2016 at 18:56, Rob Herring wrote: >> AOSP master branch has switched to clang from gcc and has major build >> system changes moving away from GNU make. > > Out of curiosity: what are they moving

Re: [Mesa-dev] black background on android-x86-5.1

2016-02-23 Thread Chih-Wei Huang
2016-02-16 16:24 GMT+08:00 qinshao...@phoenixos.com : > > I note that you're only getting GLES 2.0 -- perhaps that's the reason, > the later android's probably require GLES 3 -- I suspect you're > hitting this because you're not building mesa with >

Re: [Mesa-dev] [PATCH v2 2/4] Android: Fix building secondary arch in mixed 32/64-bit builds

2016-02-15 Thread Chih-Wei Huang
an old version of Android. > > Cc: Emil Velikov <emil.l.veli...@gmail.com> > Cc: Chih-Wei Huang <cwhu...@android-x86.org> > Signed-off-by: Rob Herring <r...@kernel.org> > --- > v2: > - move c99 comment > - Reword the commit msg to better describe the problem

Re: [Mesa-dev] [PATCH v2 3/4] Android: enable building on arm64

2016-02-15 Thread Chih-Wei Huang
2016-02-03 4:45 GMT+08:00 Rob Herring <r...@kernel.org>: > Use the LOCAL_CFLAGS_{32/64} instead of arch specific variants to define > the DEFAULT_DRIVER_DIR. This enables building for arm64. > > Cc: Emil Velikov <emil.l.veli...@gmail.com> > Cc: Chih-Wei Huang <cwhu...

Re: [Mesa-dev] About drm_hwcomposer (Was Re: About the PixelFormat mappings in drm_gralloc)

2016-01-20 Thread Chih-Wei Huang
aul <seanp...@chromium.org> wrote: >>> >>> >>> On Thu, Jan 14, 2016 at 9:47 AM, Chih-Wei Huang <cwhu...@android-x86.org> >>> wrote: >>>> >>>> Hello Sean, >>>> My last try of drm_hwcomposer failed due to >>>> my lim

[Mesa-dev] Android DRM/Mesa porting (Was: need-help: how to change to newest mesa in android-x86?)

2016-01-15 Thread Chih-Wei Huang
(Rename the subject to address the topic properly) First of all, I'm glad to invite more experts to join the devel group, including Rob Herring (kernel developer), Emil Velikov (Mesa maintainer), Rob Clark (Mesa developer), and Sean Paul (main drm_hwcomposer author) I also recall we have Chia-I

Re: [Mesa-dev] [PATCH] android: enable building static version of libdrm

2016-01-14 Thread Chih-Wei Huang
Rob Herring 於 西元2016年01月14日 00:20 寫道: From: Sumit Semwal <sumit.sem...@linaro.org> Android needs libdrm built statically for recovery; enable that as well. Signed-off-by: Sumit Semwal <sumit.sem...@linaro.org> Signed-off-by: Rob Herring <r...@kernel.org> Cc: Ch

[Mesa-dev] [PATCH 3/3] nouveau: nv30: include the header of ffs prototype

2015-10-15 Thread Chih-Wei Huang
It fixes a building error of the android 6.0 64-bit target. Signed-off-by: Chih-Wei Huang <cwhu...@linux.org.tw> --- src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/nouveau/nv30/nvfx_vertprog.c b/src/gallium/d

[Mesa-dev] [PATCH 2/3] android: gallium_dri: fix a linking error

2015-10-15 Thread Chih-Wei Huang
Link with libmesa_dricore to get '_mesa_uint_array_min_max' from sse_minmax.c if defined USE_SSE41. Signed-off-by: Chih-Wei Huang <cwhu...@linux.org.tw> --- src/gallium/targets/dri/Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/dri/Android.mk b/src/g

[Mesa-dev] [PATCH 0/3] Patches for Android 6.0

2015-10-15 Thread Chih-Wei Huang
Here are some patches to fix building errors on Android 6.0 Marshmallow. Tested OK with Android-x86 marshmallow-x86 branch. Chih-Wei Huang (3): nv50/ir: use C++11 standard std::unordered_map if possible android: gallium_dri: fix a linking error nouveau: nv30: include the header of ffs

[Mesa-dev] [PATCH 1/3] nv50/ir: use C++11 standard std::unordered_map if possible

2015-10-15 Thread Chih-Wei Huang
Note Android version before Lollipop is not supported. Signed-off-by: Chih-Wei Huang <cwhu...@linux.org.tw> --- src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/nouveau/c

Re: [Mesa-dev] [PATCH 1/3] nv50/ir: use C++11 standard std::unordered_map if possible

2015-10-15 Thread Chih-Wei Huang
2015-10-16 0:11 GMT+08:00 Ilia Mirkin : > This patch and the nv30 one are both > > Reviewed-by: Ilia Mirkin Thank you for the review. > I guess adding a cc: stable makes sense for these too? Or are further > fixes required that would make building

[Mesa-dev] [PATCH] Fix the incorrect path of sse_minmax.c

2015-10-12 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang <cwhu...@linux.org.tw> --- src/mesa/Android.libmesa_dricore.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/Android.libmesa_dricore.mk b/src/mesa/Android.libmesa_dricore.mk index 2e308b8..fef76c8 100644 --- a/sr

Re: [Mesa-dev] [PATCH] i965: store reference to the context within struct brw_fence

2015-10-04 Thread Chih-Wei Huang
called without >> > currently bound context, while our implementation requires context >> > pointer. >> > >> > UNTESTED. >> > >> > Cc: Chad Versace <chad.vers...@intel.com> >> > Cc: Marek Olšák <marek.ol...@amd.com> >> >

Re: [Mesa-dev] Pending issues of lollipop-x86

2015-09-25 Thread Chih-Wei Huang
CC to mesa-dev for help. 2015-09-25 22:12 GMT+08:00 Chih-Wei Huang <cwhu...@android-x86.org>: > 2015-09-25 16:21 GMT+08:00 Chih-Wei Huang <cwhu...@android-x86.org>: >> Actually I'm testing your mesa 11.0 branch >> to see if it is acceptable. >> The major issue I f

Re: [Mesa-dev] [PATCH 09/11] android: dri: correctly set HAVE_LIBDRM

2015-07-09 Thread Chih-Wei Huang
Emil Velikov 於 西元2015年07月09日 01:07 寫道: Set the macro if we're not building swrast alone. Cc: Chih-Wei Huang cwhu...@linux.org.tw Cc: Eric Anholt e...@anholt.net Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/targets/dri/Android.mk | 8 +++- 1 file changed, 3

Re: [Mesa-dev] [PATCH v2 1/3] nv50/ir: support different unordered_set implementations

2015-06-20 Thread Chih-Wei Huang
2015-06-20 9:04 GMT+08:00 Chih-Wei Huang cwhu...@android-x86.org: 2015-06-20 3:12 GMT+08:00 Emil Velikov emil.l.veli...@gmail.com: Hi Chih-Wei, On 19 June 2015 at 19:00, Chih-Wei Huang cwhu...@android-x86.org wrote: diff --git a/Android.common.mk b/Android.common.mk index d662d60..35dcda2

[Mesa-dev] [PATCH 1/3] nv50/ir: support different unordered_set implementations

2015-06-19 Thread Chih-Wei Huang
If build with C++11 standard, use std::unordered_set. Otherwise if build on old Android version with stlport, use std::tr1::unordered_set with a wrapper class. Otherwise use std::tr1::unordered_set. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk

[Mesa-dev] [PATCH 2/3] android: avoid building errors with stlport

2015-06-19 Thread Chih-Wei Huang
The gallium debugging helpers have defined the assert macro. It causes some errors when build with Android stlport. To workaround it, do not include assert.h if the assert macro has been defined. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/auxiliary/util/u_math.h | 2

[Mesa-dev] [PATCH 0/3] Updated Android patches

2015-06-19 Thread Chih-Wei Huang
Most of the Android patches I submitted last time were merged. The omitted patches are updated to address the review comments I got so far. Tested OK with Android-x86 lollipop-x86 and kitkat-x86 branches. Chih-Wei Huang (3): nv50/ir: support different unordered_set implementations android

[Mesa-dev] [PATCH 3/3] egl/main: expose the EGL_RECORDABLE_ANDROID extension

2015-06-19 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/main/eglconfig.c | 5 - src/egl/main/eglconfig.h | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/egl/main/eglconfig.c b/src/egl/main/eglconfig.c index cf65c69..d9971ed 100644 --- a/src/egl/main

Re: [Mesa-dev] [PATCH v2 12/15] nv50/ir: optimize the use of std::tr1::unordered_set

2015-06-19 Thread Chih-Wei Huang
2015-05-21 0:10 GMT+08:00 Ilia Mirkin imir...@alum.mit.edu: If this is required for compatibility reasons with old Android systems I suggest you wrap it under a preprocessor conditional like: #if __cplusplus = 201103L using std::unordered_set; #elif

Re: [Mesa-dev] [PATCH v2 08/15] egl/main: let EGL_RECORDABLE_ANDROID be a valid attrib

2015-06-19 Thread Chih-Wei Huang
2015-06-09 4:17 GMT+08:00 Eric Anholt e...@anholt.net: Chih-Wei Huang cwhu...@android-x86.org writes: --- src/egl/main/eglconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h index 84cb227..7121b3d 100644 --- a/src/egl/main

Re: [Mesa-dev] [PATCH 1/3] nv50/ir: support different unordered_set implementations

2015-06-19 Thread Chih-Wei Huang
2015-06-20 1:01 GMT+08:00 Ilia Mirkin imir...@alum.mit.edu: Wouldn't it be simpler to just have codegen/unordered_set.h which in turn has all the odd logic? I'm definitely a tad unhappy about adding using in a header, but if the using goes inside the nv50_ir namespace, I'm less weirded out

[Mesa-dev] [PATCH v2 1/3] nv50/ir: support different unordered_set implementations

2015-06-19 Thread Chih-Wei Huang
If build with C++11 standard, use std::unordered_set. Otherwise if build on old Android version with stlport, use std::tr1::unordered_set with a wrapper class. Otherwise use std::tr1::unordered_set. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk

Re: [Mesa-dev] [PATCH v2 1/3] nv50/ir: support different unordered_set implementations

2015-06-19 Thread Chih-Wei Huang
2015-06-20 2:05 GMT+08:00 Ilia Mirkin imir...@alum.mit.edu: The nouveau bits are Reviewed-by: Ilia Mirkin imir...@alum.mit.edu If someone can say something non-negative-sounding about the Android.mk change, happy to push this out. [I assume there's some reason why it's part of this change.]

Re: [Mesa-dev] [PATCH v2 12/15] nv50/ir: optimize the use of std::tr1::unordered_set

2015-05-20 Thread Chih-Wei Huang
2015-05-20 16:35 GMT+08:00 Petri Latvala petri.latv...@intel.com: On 05/20/2015 06:30 AM, Ilia Mirkin wrote: +typedef const iterator const_iterator; + This at least is wrong. A const iterator allows *iter = val, a const_iterator doesn't. A const_iterator allows ++, a const iterator

Re: [Mesa-dev] [PATCH 01/12] nv50/ir: optimize the use of std::tr1::unordered_set

2015-05-19 Thread Chih-Wei Huang
2015-05-18 1:46 GMT+08:00 Chih-Wei Huang cwhu...@android-x86.org: 2015-05-16 2:46 GMT+08:00 Ilia Mirkin imir...@alum.mit.edu: Please elaborate why this is necessary. I have, in the past, had requests to move to the C++11 std::unordered_set -- would that work for you? I'd be happy with a #if c

[Mesa-dev] [PATCH v2 03/15] android: add rules to build gallium/state_trackers/dri

2015-05-19 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/Android.mk| 5 ++- src/gallium/state_trackers/dri/Android.mk | 64 +++ 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 src/gallium/state_trackers/dri

[Mesa-dev] [PATCH v2 09/15] android: generate files by $(call es-gen)

2015-05-19 Thread Chih-Wei Huang
/format_pack.c: No such file or directory make: *** [out/target/product/x86/gen/STATIC_LIBRARIES/libmesa_st_mesa_intermediates/main/format_pack.c] Error 1 Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/Android.gen.mk | 16 1 file changed, 12 insertions(+), 4

[Mesa-dev] [PATCH v2 10/15] android: enable the radeonsi driver

2015-05-19 Thread Chih-Wei Huang
of libelf library for lollipop Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk | 8 Android.mk| 2 ++ src/gallium/Android.common.mk | 8 src/gallium/auxiliary/Android.mk | 8 src

[Mesa-dev] [PATCH v2 06/15] android: try to load gallium_dri.so directly

2015-05-19 Thread Chih-Wei Huang
To avoid the trick of creating links for all dri drivers. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/drivers/dri2/egl_dri2.c | 4 1 file changed, 4 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index fe5cbc8..7fc9f78 100644

[Mesa-dev] [PATCH v2 00/15] More Android patches

2015-05-19 Thread Chih-Wei Huang
. * Enable radeonsi driver for Android. * Miscellaneous fixes. Chih-Wei Huang (15): android: loader: export the path to be included android: export more dirs from libmesa_dri_common android: add rules to build gallium/state_trackers/dri android: add rules to build gallium_dri.so android

[Mesa-dev] [PATCH v2 01/15] android: loader: export the path to be included

2015-05-19 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/drivers/dri2/Android.mk | 1 - src/loader/Android.mk | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/Android.mk b/src/egl/drivers/dri2/Android.mk index 5931ce8..d4d809b 100644

[Mesa-dev] [PATCH v2 12/15] nv50/ir: optimize the use of std::tr1::unordered_set

2015-05-19 Thread Chih-Wei Huang
. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 28 +++--- .../nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 4 ++-- .../nouveau/codegen/nv50_ir_lowering_nvc0.h| 4 +--- src/gallium/drivers/nouveau/codegen

[Mesa-dev] [PATCH v2 14/15] android: nv50/ir: make the code be compatible with stlport

2015-05-19 Thread Chih-Wei Huang
The stlport uses std::tr1::unordered_set instead of std::unordered_set. Besides, std::isfinite has to be exported. Determine whether to build with lollipop libcxx or stlport. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 5 + 1 file

[Mesa-dev] [PATCH v2 08/15] egl/main: let EGL_RECORDABLE_ANDROID be a valid attrib

2015-05-19 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/main/eglconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h index 84cb227..7121b3d 100644 --- a/src/egl/main/eglconfig.h +++ b/src/egl/main/eglconfig.h @@ -86,6 +86,7

[Mesa-dev] [PATCH v2 13/15] nv50/ir: use C++11 compliant unordered_set if possible

2015-05-19 Thread Chih-Wei Huang
If build with C++11 standard, use std::unordered_set instead of std::tr1::unordered_set. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk | 1 + src/gallium/auxiliary/Android.mk | 2 -- src/gallium/drivers/nouveau/codegen/nv50_ir.h

[Mesa-dev] [PATCH v2 07/15] android: clean up the makefile of libGLES_mesa

2015-05-19 Thread Chih-Wei Huang
Most of the rules for the gallium drivers has been moved to src/gallium/targets/dri/Android.mk. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/main/Android.mk | 75 + 1 file changed, 1 insertion(+), 74 deletions(-) diff --git a/src

[Mesa-dev] [PATCH v2 02/15] android: export more dirs from libmesa_dri_common

2015-05-19 Thread Chih-Wei Huang
The include paths of libmesa_dri_common are also used by modules that need libmesa_dri_common. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/drivers/dri/common/Android.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common

[Mesa-dev] [PATCH v2 05/15] android: enable the rules to build gallium st/dri

2015-05-19 Thread Chih-Wei Huang
The libmesa_dri_common and libmesa_egl_dri2 should not be limited to the classical drivers only. Allow them to be built with the gallium drivers. v2: add a clean step to rebuild all dri modules properly. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.mk | 6

[Mesa-dev] [PATCH v2 15/15] android: build with libcxx of android lollipop

2015-05-19 Thread Chih-Wei Huang
The libcxx introduced in android lollipop can be used to replace stlport. Fallback to use stlport when build with earlier android releases. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk | 1 + src/gallium/drivers/nouveau/Android.mk | 4 src

[Mesa-dev] [PATCH v2 04/15] android: add rules to build gallium_dri.so

2015-05-19 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/Android.mk | 7 +- src/gallium/targets/dri/Android.mk | 112 +++ src/gallium/winsys/sw/dri/Android.mk | 35 ++ src/gallium/winsys/sw/kms-dri/Android.mk | 37

[Mesa-dev] [PATCH v2 11/15] android: avoid building errors with stlport

2015-05-19 Thread Chih-Wei Huang
The gallium debugging helpers have defined the assert macro. It causes some errors when build with Android stlport. To workaround it, do not include assert.h if the assert macro has been defined. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/util/list.h | 2 ++ 1 file changed, 2

Re: [Mesa-dev] [PATCH 01/12] nv50/ir: optimize the use of std::tr1::unordered_set

2015-05-17 Thread Chih-Wei Huang
) is fine. So the patch avoids instantiating unordered_setuser-defined-type *. I didn't see your request in the past (I'm new to the list) But in Android lollipop seems we can use libcxx to replace stlport. I'll try this approach later. Thank you! On Fri, May 15, 2015 at 2:42 PM, Chih-Wei Huang cwhu

[Mesa-dev] [PATCH 02/12] android: make the code be compatible with stlport

2015-05-15 Thread Chih-Wei Huang
The android's stlport doesn't have tr1/unordered_set but unordered_set. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/main/Android.mk | 5 +++-- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 5 + 2 files changed, 8 insertions(+), 2 deletions(-) diff

[Mesa-dev] [PATCH 06/12] android: add rules to build gallium_dri

2015-05-15 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/Android.mk | 7 +- src/gallium/targets/dri/Android.mk | 110 +++ src/gallium/winsys/sw/dri/Android.mk | 35 ++ src/gallium/winsys/sw/kms-dri/Android.mk | 37

[Mesa-dev] [PATCH 01/12] nv50/ir: optimize the use of std::tr1::unordered_set

2015-05-15 Thread Chih-Wei Huang
. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 28 +++--- .../nouveau/codegen/nv50_ir_lowering_nvc0.cpp | 4 ++-- .../nouveau/codegen/nv50_ir_lowering_nvc0.h| 4 +--- src/gallium/drivers/nouveau/codegen

[Mesa-dev] [PATCH 11/12] android: generate files by $(call es-gen)

2015-05-15 Thread Chih-Wei Huang
/format_pack.c: No such file or directory make: *** [out/target/product/x86/gen/STATIC_LIBRARIES/libmesa_st_mesa_intermediates/main/format_pack.c] Error 1 Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/Android.gen.mk | 16 1 file changed, 12 insertions(+), 4

[Mesa-dev] [PATCH 09/12] egl/main: let EGL_RECORDABLE_ANDROID be a valid attrib

2015-05-15 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/main/eglconfig.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/egl/main/eglconfig.h b/src/egl/main/eglconfig.h index 84cb227..7121b3d 100644 --- a/src/egl/main/eglconfig.h +++ b/src/egl/main/eglconfig.h @@ -86,6 +86,7

[Mesa-dev] [PATCH 00/12] More Android patches

2015-05-15 Thread Chih-Wei Huang
This is another series of patches for Android. Summary of the changes: * Fix nouveau driver build with Android stlport. * Add gallium_dri.so for Android. This fixes gallium support since 5564c36. * Enable radeonsi driver for Android. * Miscellaneous fixes. Chih-Wei Huang (12): nv50/ir

[Mesa-dev] [PATCH 04/12] android: export more dirs from libmesa_dri_common

2015-05-15 Thread Chih-Wei Huang
The include paths of libmesa_dri_common are also used by modules that need libmesa_dri_common. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/drivers/dri/common/Android.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common

[Mesa-dev] [PATCH 07/12] android: enable the rules to build gallium st/dri

2015-05-15 Thread Chih-Wei Huang
The libmesa_dri_common and libmesa_egl_dri2 should not be limited to the classical drivers only. Allow them to be built with the gallium drivers. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.mk | 6 +- src/egl/main/Android.mk | 8 ++-- 2 files changed, 3

[Mesa-dev] [PATCH 05/12] android: add rules to build gallium/state_trackers/dri

2015-05-15 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/gallium/Android.mk| 5 ++- src/gallium/state_trackers/dri/Android.mk | 64 +++ 2 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 src/gallium/state_trackers/dri

[Mesa-dev] [PATCH 12/12] android: enable the radeonsi driver

2015-05-15 Thread Chih-Wei Huang
of libelf library for lollipop Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk | 8 Android.mk| 2 ++ src/gallium/Android.common.mk | 8 src/gallium/auxiliary/Android.mk | 8 src

[Mesa-dev] [PATCH 10/12] android: fix building errors with stlport

2015-05-15 Thread Chih-Wei Huang
be added to C++'s include paths. However, the Android build system doesn't support 'LOCAL_CPP_INCLUDES'. Workaround the problem by GCC's #include_next so the bionic's assert.h will be chosen. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/util/list.h | 4 1 file changed, 4

[Mesa-dev] [PATCH 03/12] android: loader: export the path to be included

2015-05-15 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/drivers/dri2/Android.mk | 1 - src/loader/Android.mk | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/egl/drivers/dri2/Android.mk b/src/egl/drivers/dri2/Android.mk index 5931ce8..d4d809b 100644

[Mesa-dev] [PATCH 08/12] android: clean up the makefile of libGLES_mesa

2015-05-15 Thread Chih-Wei Huang
Most of the logic for the gallium drivers has been moved to src/gallium/targets/dri/Android.mk. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/egl/main/Android.mk | 79 ++--- 1 file changed, 2 insertions(+), 77 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] i965: Add XRGB8888 format to intel_screen_make_configs

2015-04-09 Thread Chih-Wei Huang
Please consider i915 as well. Should it be add to .../dri/i915/intel_screen.c? diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c index 34efb29..5cd2a9b 100644 --- a/src/mesa/drivers/dri/i915/intel_screen.c +++

Re: [Mesa-dev] [PATCH 16/16] android: mesa: fix the path of the SSE4_1 optimisations

2015-04-04 Thread Chih-Wei Huang
2015-03-29 4:54 GMT+08:00 Emil Velikov emil.l.veli...@gmail.com: Commit dd6f641303c(mesa: Build with subdir-objects.) removed the SRCDIR variable, but forgot to update all references of it. Cc: 10.5 mesa-sta...@lists.freedesktop.org Signed-off-by: Emil Velikov emil.l.veli...@gmail.com ---

[Mesa-dev] [PATCH 3/6] android: export the path of the generated headers

2015-04-03 Thread Chih-Wei Huang
The modules need the headers can get the path automatically. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/Android.libmesa_dricore.mk| 1 - src/mesa/Android.libmesa_st_mesa.mk| 1 - src/mesa/drivers/dri/Android.mk| 2 -- src/mesa/drivers/dri/common/Android.mk

[Mesa-dev] [PATCH 1/6] android: fix building issues of host binaries

2015-04-03 Thread Chih-Wei Huang
Define _GNU_SOURCE to enable features (__USE_XOPEN2K and __USE_UNIX98) required to build the host binaries. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk| 2 +- src/mesa/Android.mesa_gen_matypes.mk | 1 - 2 files changed, 1 insertion(+), 2 deletions

[Mesa-dev] [PATCH 2/6] android: fix the building rules for Android 5.0

2015-04-03 Thread Chih-Wei Huang
-generated-sources-dir. If the Android version is less than 5.0, fallback to local-intermediates-dir. The patch also fixes the 64-bit building issue of Android 5.0. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.mk | 7 +++ src/egl/drivers/dri2

[Mesa-dev] [PATCH 4/6] android: refine the rules to generate xmlpool/options.h

2015-04-03 Thread Chih-Wei Huang
The patch gets rid of the last use of intermediates-dir-for. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/drivers/dri/Android.mk| 3 --- src/mesa/drivers/dri/common/Android.mk | 18 -- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/src

[Mesa-dev] [[PATCH 0/6] Fix Android 5.x building issues

2015-04-03 Thread Chih-Wei Huang
This is a series of patches to fix building issues with Android 5.0 (and newer version) based on Emil's 'submit/android-fixes#1' branch. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 5/6] android: build x86(-64) assembly for Android 5.0

2015-04-03 Thread Chih-Wei Huang
Android 5.0 changed HOST_ARCH to x86_64 that broke the asm building rules. The patch fix the rules to build asm for both x86 and x86_64 targets. Note mesa_gen_matypes is built for 32-bit only. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- Android.common.mk| 9

[Mesa-dev] [PATCH 6/6] android: re-build all mesa binaries properly

2015-04-03 Thread Chih-Wei Huang
The clean steps ensure both 32-bit and 64-bit objects are cleaned. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- CleanSpec.mk | 8 1 file changed, 8 insertions(+) diff --git a/CleanSpec.mk b/CleanSpec.mk index 820a1c7..2068163 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk

[Mesa-dev] [PATCH 2/2] android: fix a building error of libmesa_program

2015-04-02 Thread Chih-Wei Huang
Add libmesa_glsl to LOCAL_STATIC_LIBRARIES to get its exported include path (for nir_opcodes.h). Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/program/Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/program/Android.mk b/src/mesa/program/Android.mk index

[Mesa-dev] [PATCH 1/2] android: export the path of the generated nir_opcodes.h

2015-04-02 Thread Chih-Wei Huang
The modules including nir_opcodes.h can just add libmesa_glsl to their LOCAL_STATIC_LIBRARIES. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/glsl/Android.gen.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/Android.gen.mk b/src/glsl/Android.gen.mk index 82f2bf1

[Mesa-dev] [PATCH] i915: add mock implementation of GL_OES_EGL_image_external

2015-04-02 Thread Chih-Wei Huang
This is similar to commit 7420c9dab4aaf87e6b840410226c296c4668a48f but for the i915 driver. It's necessary to support android-x86. Signed-off-by: Chih-Wei Huang cwhu...@linux.org.tw --- src/mesa/drivers/dri/i915/i830_texstate.c| 1 + src/mesa/drivers/dri/i915/i915_fragprog.c| 1 + src

Re: [Mesa-dev] [PATCH 14/16] android: add inital NIR build

2015-04-01 Thread Chih-Wei Huang
2015-03-29 4:54 GMT+08:00 Emil Velikov emil.l.veli...@gmail.com: From: Mauro Rossi issor.or...@gmail.com Required by the i965 driver. Cc: 10.5 mesa-sta...@lists.freedesktop.org [Emil Velikov: Split from a larger commit] Signed-off-by: Emil Velikov emil.l.veli...@gmail.com ---

<    1   2