[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 --- Android.common.mk | 1

[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 --- 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/eglconfig.c +++ b/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 : >> >> 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 building-on-old-android-version-with-broken-stl

[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 --- src/gallium/auxiliary/util/u_math.h | 2 ++ src/util/list.h

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 : > Chih-Wei Huang 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 >>

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 : > 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 by it. And t

[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 --- Android.common.mk | 2

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 : > The nouveau bits are > > Reviewed-by: Ilia Mirkin > > 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.] About the Android.mk change, ori

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 : > 2015-06-20 3:12 GMT+08:00 Emil Velikov : >> Hi Chih-Wei, >> On 19 June 2015 at 19:00, Chih-Wei Huang wrote: > >>> diff --git a/Android.common.mk b/Android.common.mk >>> index d662d60..35dcda2 100644 &

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 > Cc: Eric Anholt > Signed-off-by: Emil Velikov > --- > src/gallium/targets/dri/Android.mk | 8 +++- > 1 file changed, 3 insertions(+), 5 delet

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

2015-10-12 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang --- 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/src/mesa/Android.libmesa_dricore.mk +++ b/src

[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 --- src/gallium/targets/dri/Android.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/targets/dri/Android.mk b/src/gallium/targets/dri/

[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 --- src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp b/src/gallium

[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 --- 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/drivers/nouveau/nv30/nvfx_vertprog.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 11.0.x impractical? Ah, yes. They apply to 11.0

Re: [Mesa-dev] [PATCH] android: avoid using libdrm with host modules

2017-02-16 Thread Chih-Wei Huang
2016-11-02 23:42 GMT+08:00 Emil Velikov : > > Skimming through the outstanding patches for yours [1] I've tagged > some [2] as superseded since the functionality has already landed. Let > me know the status of the rest when you've got the chance. Sorry I forgot to reply. > [1] https://patchwork.f

Re: [Mesa-dev] [PATCH] Revert "mesa_glinterop: remove inclusion of GLX header"

2016-10-12 Thread Chih-Wei Huang
2016-10-04 7:03 GMT+08:00 Vinson Lee : > This reverts commit 8472045b16b3e4621553fe451a20a9ba9f0d44b6. > > Conflicts: > > include/GL/mesa_glinterop.h > > This patch fixes this build error with GCC 4.4. > > Compiling src/glx/dri_common_interop.c ... > In file included from src/glx/dri_comm

Re: [Mesa-dev] [PATCH] mesa_glinterop: allow building without X and related headers

2016-10-12 Thread Chih-Wei Huang
they ensure that the X (or others > in terms of EGL) headers are included, which ensures that everything is > resolved within the compilation unit. > > Cc: Vinson Lee > Cc: "12.0" > Cc: Tapani Pälli > Cc: Chih-Wei Huang > Fixes: c10dcb2ce837 ("Revert &q

Re: [Mesa-dev] [PATCH] android: fix a build issue with libmesa_st_mesa_32

2016-09-06 Thread Chih-Wei Huang
2016-08-29 16:52 GMT+08:00 Tapani Pälli : > make sure nir_opcodes.h is in LOCAL_GENERATED_SOURCES otherwise > build fails with: > > "In file included from > external/mesa/src/mesa/state_tracker/st_glsl_to_nir.cpp:44: > external/mesa/src/compiler/nir/nir.h:42:10: fatal error: 'nir_opcodes.h' file >

[Mesa-dev] [PATCH] android: avoid using libdrm with host modules

2016-10-28 Thread Chih-Wei Huang
needed by 'out/host/linux-x86/obj32/EXECUTABLES/mesa_gen_matypes_intermediates/import_includes', missing and no known rule to make it No reason to use libdrm with host modules. Signed-off-by: Chih-Wei Huang --- Android.common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a

Re: [Mesa-dev] [RFC] mesa: drop current draw/read buffer when ctx is released

2016-10-30 Thread Chih-Wei Huang
2016-10-28 22:09 GMT+08:00 Rob Herring : > +Mauro, Chih-Wei > > On Fri, Oct 28, 2016 at 7:22 AM, Rob Clark wrote: >> On Fri, Oct 28, 2016 at 1:24 AM, Tapani Pälli wrote: >>> On 10/27/2016 01:48 PM, Rob Clark wrote: On Thu, Oct 27, 2016 at 2:59 AM, Tapani Pälli wrote: > > O

Re: [Mesa-dev] [PATCH 1/2] android: anv: fix generated files depedencies

2019-03-04 Thread Chih-Wei Huang
Mauro Rossi 於 2019年3月4日 週一 上午3:58寫道: > > Fix anv_extrypoints.{c,h} and anv_extensions.{c,h} missing dependencies > Rename the variable labels according to targets and python scripts > Align the building rules as per Automake for simplification > > Fixes building errors during rebuils due to missin

Re: [Mesa-dev] [PATCH 1/2] android: anv: fix generated files depedencies

2019-03-05 Thread Chih-Wei Huang
Tapani Pälli 於 2019年3月5日 週二 下午4:48寫道: > > On 3/5/19 9:26 AM, Chih-Wei Huang wrote: > > Mauro Rossi 於 2019年3月4日 週一 上午3:58寫道: > >> > >> Fix anv_extrypoints.{c,h} and anv_extensions.{c,h} missing dependencies > >> Rename the variable labels according to ta

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 : > 2015-09-25 16:21 GMT+08:00 Chih-Wei Huang : >> Actually I'm testing your mesa 11.0 branch >> to see if it is acceptable. >> The major issue I found is the >> Camera and Youtube crashing in me

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

2015-10-04 Thread Chih-Wei Huang
r implementation requires context >> > pointer. >> > >> > UNTESTED. >> > >> > Cc: Chad Versace >> > Cc: Marek Olšák >> > Cc: Chih-Wei Huang >> > Cc: Mauro Rossi >> > Cc: 10.6 11.0 >> > Signed-off-by: Emil

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 Android needs libdrm built statically for recovery; enable that as well. Signed-off-by: Sumit Semwal Signed-off-by: Rob Herring Cc: Chih-Wei Huang Cc: Emil Velikov --- Android.mk | 19 +++ 1 file changed, 19

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

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

2016-01-20 Thread Chih-Wei Huang
CC to the android-x86 devel list so more developers can follow. 2016-01-21 6:19 GMT+08:00 Rob Clark : > On Wed, Jan 20, 2016 at 4:59 PM, Rob Herring wrote: >> Hi Sean, >> >> On Thu, Jan 14, 2016 at 1:15 PM, Sean Paul wrote: >>> >>> >>> On Thu, Ja

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

2016-03-31 Thread Chih-Wei Huang
2016-03-31 0:09 GMT+08:00 Rob Herring : > On Tue, Mar 29, 2016 at 2:49 PM, Jaap Jan Meijer wrote: >> >> First of all, thanks for the hard work! >> >> Only one problem I noticed so far: when enabling virgl in drm_gralloc but >> without support in MESA, MESA / drm_gralloc (?) will just crash during

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

2016-03-31 Thread Chih-Wei Huang
2016-04-01 2:40 GMT+08:00 Jaap Jan Meijer : > Op donderdag 31 maart 2016 13:02:36 UTC+2 schreef Chih-Wei Huang: > Thanks for the patch, I tested it on both x86 and x64 kernels and it doesn't > crash anymore, previously it did on both. > >> Thanks for the fix. I'll app

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

2016-04-03 Thread Chih-Wei Huang
2016-04-02 4:42 GMT+08:00 Rob Herring : > > Here's an initial gralloc implementation based on my GBM map/unmap support: > > https://github.com/robherring/gbm_gralloc > > It's based on drm_gralloc, but heavily re-written to collapse some > unnecessary layers. Thank you for it. What GPU have you te

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

2016-04-03 Thread Chih-Wei Huang
2016-04-04 0:53 GMT+08:00 Chih-Wei Huang : > 2016-04-02 4:42 GMT+08:00 Rob Herring : >> >> Here's an initial gralloc implementation based on my GBM map/unmap support: >> >> https://github.com/robherring/gbm_gralloc >> >> It's based on drm

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

2016-04-06 Thread Chih-Wei Huang
2016-04-04 6:25 GMT+08:00 Rob Herring : > On Sun, Apr 3, 2016 at 12:29 PM, Chih-Wei Huang > wrote: >> Besides, the module name is still gralloc.drm. >> How about call it gralloc.gbm? > > Eventually yes, but for now it is more convenient for my development > to keep t

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

2016-04-08 Thread Chih-Wei Huang
2016-04-07 13:30 GMT+08:00 Rob Herring : > On Wed, Apr 6, 2016 at 11:12 AM, Chih-Wei Huang > wrote: > >> I guess the first supported GPU is virgl. Right? > > Yes. Any gallium driver really. The classic mesa drivers will need > their own additions for GBM map/unmap. > &

Re: [Mesa-dev] [PATCH 1/2] glsl: android: add back missing generated glcpp include path

2016-04-18 Thread Chih-Wei Huang
patch we got external/mesa/src/compiler/glsl/glcpp/glcpp-lex.l:30:25: fatal error: glcpp-parse.h: No such file or directory #include "glcpp-parse.h" ^ compilation terminated. make: *** [out/target/product/x86_64/obj_x86/STATIC_LIBRARIES/libmesa_glsl_intermediates/glsl

[Mesa-dev] Latest Mesa is broken on Android-x86?

2016-04-19 Thread Chih-Wei Huang
I just tried the commit d3c98c73d on i965 GPU but it became black screen on surfaceflinger starting. Just hope to know if anyone has tested and can confirm that. Or it's a stupid mistake I made. -- Chih-Wei Android-x86 project http://www.android-x86.org _

Re: [Mesa-dev] [PATCH 0/3] Support for Android RGBX/RGBA formats

2016-04-20 Thread Chih-Wei Huang
2016-04-20 3:38 GMT+08:00 Rob Herring : > The RGBX/RGBA pixel formats used in the Android EGL don't get configs > created due to the missing formats in the DRI state tracker. This series > adds the necessary formats for configs and DRI images. Support in GBM is > also added as it will be needed soo

Re: [Mesa-dev] [PATCH 0/3] Support for Android RGBX/RGBA formats

2016-04-22 Thread Chih-Wei Huang
2016-04-21 21:42 GMT+08:00 Emil Velikov : > > On 19 April 2016 at 20:38, Rob Herring wrote: >> The RGBX/RGBA pixel formats used in the Android EGL don't get configs >> created due to the missing formats in the DRI state tracker. This series >> adds the necessary formats for configs and DRI images.

Re: [Mesa-dev] [PATCH 0/3] Support for Android RGBX/RGBA formats

2016-04-24 Thread Chih-Wei Huang
2016-04-24 21:50 GMT+08:00 Emil Velikov : > On 24 April 2016 at 14:20, Marek Olšák wrote: >> On Sun, Apr 24, 2016 at 3:09 PM, Marek Olšák wrote: >>> On Sun, Apr 24, 2016 at 2:16 PM, Marek Olšák wrote: >>>> On Fri, Apr 22, 2016 at 12:41 PM, Chih-Wei Huang >>&

[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 --- src/egl/main/Android.mk | 5 +++-- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 5 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sr

[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 --- 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 +++ 4 files

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

2015-05-15 Thread Chih-Wei Huang
Instead of using unordered_set directly, the patch changes to use unordered_set and adds a wrapper template class to convert the iterators to the expected user-defined type. This avoid instantiating the template multiple times and make it be more compatible with stlport. Signed-off-by: Chih-Wei

[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 --- src/mesa/drivers/dri/common/Android.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/Android.mk b/src/mesa

[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 --- Android.mk | 6 +- src/egl/main/Android.mk | 8 ++-- 2 files changed, 3 insertions(+), 11

[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 --- 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 @@ struct _egl_config

[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 05/12] android: add rules to build gallium/state_trackers/dri

2015-05-15 Thread Chih-Wei Huang
Signed-off-by: Chih-Wei Huang --- 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/Android.mk diff --git a/src

[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 --- Android.common.mk | 8 Android.mk| 2 ++ src/gallium/Android.common.mk | 8 src/gallium/auxiliary/Android.mk | 8 src/gallium/drivers/radeon/Andro

[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 --- src/egl/main/Android.mk | 79 ++--- 1 file changed, 2 insertions(+), 77 deletions(-) diff --git a/src/egl/main

[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 --- src/util/list.h | 4 1 file change

[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 --- 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 --- a/src/egl/drivers

[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 --- src/mesa/Android.gen.mk | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

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

2015-05-17 Thread Chih-Wei Huang
ids instantiating unordered_set. 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 > wrote: >> Instea

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

2015-05-18 Thread Chih-Wei Huang
2015-05-18 1:46 GMT+08:00 Chih-Wei Huang : > 2015-05-16 2:46 GMT+08:00 Ilia Mirkin : >> 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++1

[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 --- 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/Android.mk diff --git a/src

[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 --- src/mesa/Android.gen.mk | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git

[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 --- Android.common.mk | 8 Android.mk| 2 ++ src/gallium/Android.common.mk | 8 src/gallium/auxiliary/Android.mk | 8 src/gallium/drivers/radeon/Andro

[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 --- 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 --- a/src/egl

[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 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 --- Android.common.mk | 1 + src/gallium/drivers/nouveau/Android.mk | 4 src/gallium/drivers/r600

[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 --- 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 ++ 4 files

[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 --- src/util/list.h | 2 ++ 1 file changed, 2 insertions(+) diff

[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 --- 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 --- a/src/egl/drivers

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

2015-05-19 Thread Chih-Wei Huang
-Wei Huang --- 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/nv50_ir_ra.cpp | 5 ++-- 4 files changed, 30

[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 --- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 5 + 1 file changed, 5 insertions

[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 --- 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 @@ struct _egl_config

[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 --- Android.common.mk | 1 + src/gallium/auxiliary/Android.mk | 2 -- src/gallium/drivers/nouveau/codegen/nv50_ir.h | 8 ++-- 3

[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 --- src/egl/main/Android.mk | 75 + 1 file changed, 1 insertion(+), 74 deletions(-) diff --git a/src/egl/main/Android.mk

[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 --- src/mesa/drivers/dri/common/Android.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/common/Android.mk b/src/mesa

[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 --- Android.mk | 6 +- CleanSpec.mk

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 : > 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 > doesn't. You're

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 : > From: Mauro Rossi > > Required by the i965 driver. > > Cc: "10.5" > [Emil Velikov: Split from a larger commit] > Signed-off-by: Emil Velikov > --- > src/glsl/Android.gen.mk | 62 > +++-- > src/glsl/Android.m

[Mesa-dev] [PATCH 0/2] More Android patches

2015-04-01 Thread Chih-Wei Huang
First, thanks to Emil who submitted a series of patches to fix Android building issues for the master branch. However, there are still some errors in my test. These patches try to fix them. The patches are based on Emil's 'submit/android-fixes#1' branch. With them I'm able to build the i915 and i9

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

2015-04-01 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 --- 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..35d79f2 100644 --- a

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

2015-04-01 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 --- 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 374fcbf..af16e77

[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 --- src/mesa/drivers/dri/i915/i830_texstate.c| 1 + src/mesa/drivers/dri/i915/i915_fragprog.c| 1 + src/mesa/drivers/dri

[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 --- 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 | 2 ++ src/mesa

[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 --- Android.common.mk| 2 +- src/mesa/Android.mesa_gen_matypes.mk | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a

[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 --- Android.mk | 7 +++ src/egl/drivers/dri2/Android.mk| 8

[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 --- 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/drivers/dri

[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 --- Android.common.mk| 9 + Android.mk

[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 --- 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 @@ -5,3 +5,11 @@ $(call

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 : > Commit dd6f641303c(mesa: Build with subdir-objects.) removed the SRCDIR > variable, but forgot to update all references of it. > > Cc: "10.5" > Signed-off-by: Emil Velikov > --- > src/mesa/Android.libmesa_dricore.mk | 4 ++-- > 1 file changed, 2 inserti

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

2015-04-08 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 +++ b/src/mesa/drivers/dri/i915/intel_screen.

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 : > 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 > Cc: Chih-Wei Huang > Signed-off-by: Rob Herring > --- > v2: > - Use L

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
> > Cc: Emil Velikov > Cc: Chih-Wei Huang > Signed-off-by: Rob Herring > --- > v2: > - move c99 comment > - Reword the commit msg to better describe the problem and about pre-4.4 > breakage > > Android.common.mk | 11 +-- > 1 file changed, 5 ins

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 > --enable-texture-float. Hi ilia, After enabled t

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 to ? I can see "blueprint" > (ninja?), kati (

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 : > On 25 February 2016 at 17:22, Chih-Wei Huang wrote: >> 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 bu

[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 --- 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 a985f0a..e567102 100644 --- a

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 for android, gallium drivers use gralloc_drm_pipe, since wit

[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 fixed?

Re: [Mesa-dev] LLVMInitializeAMDGPU* undefined?

2016-03-10 Thread Chih-Wei Huang
kind of fix do we want (i.e., acceptable by the upstream)? > On Thu, Mar 10, 2016 at 10:04 AM, Chih-Wei Huang > wrote: > > Hi devs, > > On building 64-bit Android-x86 mesa with amdgpu support, > > we got some errors about the symbols LLVMInitializeAMDGPU* > > are no

Re: [Mesa-dev] LLVMInitializeAMDGPU* undefined?

2016-03-13 Thread Chih-Wei Huang
2016-03-11 11:50 GMT+08:00 Jan Vesely : > On Fri, 2016-03-11 at 10:09 +0800, Chih-Wei Huang wrote: >> cc1: some warnings being treated as errors >> >> >> But I'm still not sure whether if it should be fixed on the mesa >> side. >> >> So my question

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

2016-03-23 Thread Chih-Wei Huang
2016-03-24 8:51 GMT+08:00 Rob Clark : [deleted] > > [*] the caveat there is vmwgfx stuff which seems to want to do blits.. > although I'm not entirely sure why or if that is even still requires > w/ newer vmware players. But if vmwgfx still really needs the blit > path, I guess they could still ke

Re: [Mesa-dev] [PATCH] Android: correct libz dependency

2017-05-17 Thread Chih-Wei Huang
2017-05-17 21:11 GMT+08:00 Emil Velikov : > On 17 May 2017 at 13:45, Rob Herring wrote: >> On Wed, May 17, 2017 at 12:10 AM, Chih-Wei Huang >> wrote: >>> Commit 6facb0c0 ("android: fix libz dynamic library dependencies") >>> unconditionally adds l

Re: [Mesa-dev] [PATCH] i965: Add RGBX8888 and RGBA8888 to EGL configure and reorder the list

2017-05-17 Thread Chih-Wei Huang
2017-05-12 12:04 GMT+08:00 Xu, Randy : > Thanks, Emil > > dEQP has patch to exclude 565 blend cases (commit named "Exclude RGB565 > blending cases from the must-pass"), so we don’t need any patches now. Hi Randy, Tapani, I think we still need a patch. Right? I see the similar patch is still appli

  1   2   >