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
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
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
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
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
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
>>
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
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
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
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
&
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
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
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/
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
(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
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
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
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
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
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
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
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.
>
&
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
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
_
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
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.
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
>>&
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
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
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
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
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
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
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
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
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
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
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
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
/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
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
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
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
/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
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
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
.
* 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
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
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
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
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
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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
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
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.
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
>
> 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
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
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 (
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
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
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
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?
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
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
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
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
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 - 100 of 177 matches
Mail list logo