Re: [Mesa-dev] [PATCH] fixup! genxml: Add enough XML for gens 4, 4.5, and 5 to get SURFACE_STATE

2016-06-13 Thread Mauro Rossi
s disappeared. Tested and working Ok, please consider that the following is equivalent to Emil's fixup! patch: From 83078aa616c429c496b467d23fa2390f1a6008bc Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Tue, 14 Jun 2016 02:26:30 +0200 Subject: [PATCH] android: genxml: optimize autogenerate

Re: [Mesa-dev] [PATCH] fixup! genxml: Add enough XML for gens 4, 4.5, and 5 to get SURFACE_STATE

2016-06-20 Thread Mauro Rossi
Hi, I tested the optimized one with android-x86 before submitting the patch to mesa-dev, also re-tested several times in the last two days with mesa 12.0.0rc3 mesa 12 and later need some changes in drm_gralloc, expecially this one: https://github.com/maurossi/hardware_drm_gralloc/commit/4d331710

Re: [Mesa-dev] [PATCH] fixup! genxml: Add enough XML for gens 4, 4.5, and 5 to get SURFACE_STATE

2016-06-24 Thread Mauro Rossi
> On Mon, Jun 20, 2016 at 4:49 PM, Chad Versace > wrote: > > Emil, how do you test the Android build? I tried building i965 using > > vanilla AOSP, but that turned into a long journey in yak shaving. > > Fun, isn't it. Here's cut-n-paste from my CI job that is tracks AOSP > Hi, in this moment in

Re: [Mesa-dev] [PATCH] android: fix LOCAL_C_INCLUDES to find glsl_types.h

2015-11-20 Thread Mauro Rossi
> > My last problem was probably due to uncleaned mesa targets folders in > $OUT > > path, > > now I have checked again and building errors are gone. > > > You might want to take a look and update the CleanSpec.mk for that. > I've pushed the one-liner to master - do we want it in stable (11.0.x) >

Re: [Mesa-dev] [PATCH v2] egl/dri2: expose srgb configs when KHR_gl_colorspace is available

2015-11-29 Thread Mauro Rossi
one. > > v2: > - Bail out when KHR_gl_colorspace is missing and srgb is set (Marek) > > Cc: Mauro Rossi > Cc: Chih-Wei Huang > Cc: "11.0 11.1" > Fixes: c2c2e9ab604(egl: implement EGL_KHR_gl_colorspace (v2)) > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=9159

[Mesa-dev] [PATCH] android: radeon(s): fix libdrm_amdgpu shared dependencies

2017-05-20 Thread Mauro Rossi
Fixes building errors in radeon drivers and winsys: target C: libmesa_amd_common <= external/mesa/src/amd/common/ac_gpu_info.c ... target C: libmesa_amd_common <= external/mesa/src/amd/common/ac_surface.c ... target C: libmesa_pipe_r300 <= external/mesa/src/gallium/drivers/r300/r300_blit.c ...

Re: [Mesa-dev] [PATCH] android: radeon(s): fix libdrm_amdgpu shared dependencies

2017-05-21 Thread Mauro Rossi
2017-05-21 18:27 GMT+02:00 Emil Velikov : > Hi Mauro, > > There is a similar issue when building with autotools. There's a few > ways to address this so let's see what the devs prefer. > > Another temporary workaround is to build radeonsi alongside the other > radeon drivers. > > -Emil > Just FYI

[Mesa-dev] [PATCH] svga: fix git_sha1.h include path in Android.mk

2017-05-26 Thread Mauro Rossi
Fixes the following building error: external/mesa/src/gallium/drivers/svga/svga_screen.c:26:10: fatal error: 'git_sha1.h' file not found ^ 1 error generated. --- src/gallium/drivers/svga/Android.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers

Re: [Mesa-dev] [PATCH] android: radeon(s): fix libdrm_amdgpu shared dependencies

2017-05-27 Thread Mauro Rossi
2017-05-22 1:34 GMT+02:00 Mauro Rossi : > > > 2017-05-21 18:27 GMT+02:00 Emil Velikov : > >> Hi Mauro, >> >> There is a similar issue when building with autotools. There's a few >> ways to address this so let's see what the devs prefer. >>

Re: [Mesa-dev] [PATCH] svga: fix git_sha1.h include path in Android.mk

2017-05-28 Thread Mauro Rossi
2017-05-28 16:46 GMT+02:00 Rob Herring : > On Fri, May 26, 2017 at 10:15 AM, Mauro Rossi > wrote: > > Fixes the following building error: > > > > external/mesa/src/gallium/drivers/svga/svga_screen.c:26:10: > > fatal error: 'git_sha1.h' file not fo

Re: [Mesa-dev] [PATCH] svga: fix git_sha1.h include path in Android.mk

2017-05-28 Thread Mauro Rossi
2017-05-28 21:02 GMT+02:00 Rob Herring : > On Sun, May 28, 2017 at 1:31 PM, Mauro Rossi > wrote: > > > > > > 2017-05-28 16:46 GMT+02:00 Rob Herring : > >> > >> On Fri, May 26, 2017 at 10:15 AM, Mauro Rossi > >> wrote: > >> > Fixe

Re: [Mesa-dev] [PATCH] svga: fix git_sha1.h include path in Android.mk

2017-05-28 Thread Mauro Rossi
2017-05-28 21:02 GMT+02:00 Rob Herring : > On Sun, May 28, 2017 at 1:31 PM, Mauro Rossi > wrote: > > > > > > 2017-05-28 16:46 GMT+02:00 Rob Herring : > >> > >> On Fri, May 26, 2017 at 10:15 AM, Mauro Rossi > >> wrote: > >> > Fixe

Re: [Mesa-dev] [PATCH] Android: major/minor/makedev live in

2017-05-30 Thread Mauro Rossi
2017-05-30 15:41 GMT+02:00 Rob Herring : > On Tue, May 30, 2017 at 8:03 AM, Emil Velikov > wrote: > > On 30 May 2017 at 13:23, Rob Herring wrote: > >> sysmacros.h was getting implicitly included in types.h until recently in > >> AOSP master. Define MAJOR_IN_SYSMACROS to explicitly include > sysm

Re: [Mesa-dev] [PATCH] Android: major/minor/makedev live in

2017-05-30 Thread Mauro Rossi
2017-05-30 14:23 GMT+02:00 Rob Herring : > sysmacros.h was getting implicitly included in types.h until recently in > AOSP master. Define MAJOR_IN_SYSMACROS to explicitly include sysmacros.h. > > Signed-off-by: Rob Herring > --- > Android.common.mk | 1 + > 1 file changed, 1 insertion(+) > > dif

[Mesa-dev] [PATCH] android: r600/eg: add support for tracing IBs after a hang.

2017-06-04 Thread Mauro Rossi
The rules to generate egd_tables.h are added in Android makefile Fixes: f42fb00 "r600/eg: add support for tracing IBs after a hang." --- src/gallium/drivers/r600/Android.mk | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/gallium/drivers/r600/Android.mk b/src/gallium/drivers/r

Re: [Mesa-dev] [PATCH] svga: fix git_sha1.h include path in Android.mk

2017-06-04 Thread Mauro Rossi
2017-05-29 14:30 GMT+02:00 Emil Velikov : > On 26 May 2017 at 16:15, Mauro Rossi wrote: >> Fixes the following building error: >> >> external/mesa/src/gallium/drivers/svga/svga_screen.c:26:10: >> fatal error: 'git_sha1.h' file not found >>

Re: [Mesa-dev] [PATCH 10/24] i965/cnl: Wire up android Mesa build files for gen10

2017-06-04 Thread Mauro Rossi
following a try > https://github.com/aphogat/mesa.git branch: reviews > > 9 and 10 are > Reviewed-by; Emil Velikov > > -Emil Hi, the Android makefiles changes have been reviewed and double checked. Reviewed-by: Mauro Rossi ___ mesa

Re: [Mesa-dev] [PATCH 10/24] i965/cnl: Wire up android Mesa build files for gen10

2017-06-04 Thread Mauro Rossi
2017-06-05 1:46 GMT+02:00 Mauro Rossi : > 2017-06-04 23:21 GMT+02:00 Emil Velikov : >> On 3 June 2017 at 00:54, Jason Ekstrand wrote: >>> Acked-by: Jason Ekstrand >>> >>> Maybe one of the android people would like to test it? >>> >> Mauro and

Re: [Mesa-dev] [PATCH] svga: fix git_sha1.h include path in Android.mk

2017-06-06 Thread Mauro Rossi
2017-06-05 2:29 GMT+02:00 Emil Velikov : > On 4 June 2017 at 22:47, Mauro Rossi wrote: >> 2017-05-29 14:30 GMT+02:00 Emil Velikov : >>> On 26 May 2017 at 16:15, Mauro Rossi wrote: >>>> Fixes the following building error: >>>> >>>> exte

Re: [Mesa-dev] [PATCH] svga: fix git_sha1.h include path in Android.mk

2017-06-06 Thread Mauro Rossi
And here is last (v3) version tested by building nougat-x86 >From 052df48ae71b82b04ed8f634101d0ec919b497e5 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Tue, 6 Jun 2017 23:15:05 +0200 Subject: [PATCH 1/5] svga: fix git_sha1.h include path in Android.mk (v3) Adds libmesa_git_sha1 sta

[Mesa-dev] [PATCH] Android: move drivers' symlinks to /vendor

2017-10-26 Thread Mauro Rossi
Having moved gallium_dri.so library to /vendor/lib/dri also symlinks need to be coherently created using TARGET_OUT_VENDOR insted of TARGET_OUT or all non Intel drivers will not be loaded with Android N and earlier, thus causing SurfaceFlinger SIGABRT Fixes: c3f75d483c ("Android: move libraries t

Re: [Mesa-dev] [PATCH] Android: move drivers' symlinks to /vendor

2017-10-27 Thread Mauro Rossi
2017-10-27 14:28 GMT+02:00 Rob Herring : > On Fri, Oct 27, 2017 at 6:41 AM, Emil Velikov > wrote: > > On 26 October 2017 at 23:48, Mauro Rossi wrote: > >> Having moved gallium_dri.so library to /vendor/lib/dri > >> also symlinks need to be coherently created using

[Mesa-dev] [PATCH] Android: move drivers' symlinks to /vendor (v2)

2017-10-27 Thread Mauro Rossi
Having moved gallium_dri.so library to /vendor/lib/dri also symlinks need to be coherently created using TARGET_OUT_VENDOR instead of TARGET_OUT or all non Intel drivers will not be loaded with Android N and earlier, thus causing SurfaceFlinger SIGABRT (v2) simplification of post install command

[Mesa-dev] [PATCH 3/3] android: radeonsi: prepare for driver-specific driconf options

2017-08-02 Thread Mauro Rossi
Android build changes to avoid the following building error: In file included from external/mesa/src/gallium/targets/dri/target.c:1: external/mesa/src/gallium/auxiliary/target-helpers/drm_helper.h:185:10: fatal error: 'radeonsi/si_driinfo.h' file not found #include "radeonsi/si_driinfo.h"

[Mesa-dev] [PATCH 1/3] android: radeonsi: add nir include paths

2017-08-02 Thread Mauro Rossi
Android build changes to avoid the following building error: target C: libmesa_pipe_radeonsi <= external/mesa/src/gallium/drivers/radeonsi/si_pipe.c ... In file included from external/mesa/src/gallium/drivers/radeonsi/si_pipe.c:38: external/mesa/src/compiler/nir/nir.h:48:10: fatal error: 'nir_op

[Mesa-dev] [PATCH 2/3] android: ac/common: always build NIR translation

2017-08-02 Thread Mauro Rossi
Android build changes to avoid the following building error: external/mesa/src/gallium/drivers/radeonsi/si_shader_nir.c:505: error: undefined reference to 'ac_nir_translate' Fixes: 86d4b46d66 "ac/common: always build NIR translation" --- src/amd/Android.common.mk | 3 ++- 1 file changed, 2 inser

[Mesa-dev] Android fixes for radeonsi building errors introduced by recent commits

2017-08-02 Thread Mauro Rossi
[PATCH 1/3] android: radeonsi: add nir include paths [PATCH 2/3] android: ac/common: always build NIR translation [PATCH 3/3] android: radeonsi: prepare for driver-specific driconf ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.fre

Re: [Mesa-dev] [PATCH 1/3] android: radeonsi: add nir include paths

2017-08-03 Thread Mauro Rossi
2017-08-03 11:57 GMT+02:00 Emil Velikov : > Hi Mauro, > > Thanks for the series. I'll pull 2&3 in a second - there's a minor > suggestion in this patch. > > On 3 August 2017 at 01:55, Mauro Rossi wrote: >> Android build changes to avoid the fol

Re: [Mesa-dev] [PATCH 1/3] android: radeonsi: add nir include paths

2017-08-03 Thread Mauro Rossi
2017-08-03 16:52 GMT+02:00 Emil Velikov : > On 3 August 2017 at 13:24, Mauro Rossi wrote: >> 2017-08-03 11:57 GMT+02:00 Emil Velikov : >>> Hi Mauro, >>> >>> Thanks for the series. I'll pull 2&3 in a second - there's a minor >>> suggest

Re: [Mesa-dev] [PATCH 1/3] android: radeonsi: add nir include paths

2017-08-04 Thread Mauro Rossi
2017-08-03 20:50 GMT+02:00 Rob Herring : > On Thu, Aug 3, 2017 at 11:12 AM, Mauro Rossi wrote: >> 2017-08-03 16:52 GMT+02:00 Emil Velikov : >>> On 3 August 2017 at 13:24, Mauro Rossi wrote: >>>> 2017-08-03 11:57 GMT+02:00 Emil Velikov : >>>>> Hi M

[Mesa-dev] [PATCH] android: amd/common: fix sid_tables.h generation rules

2017-08-11 Thread Mauro Rossi
Current generation rules rely on LOCAL_PATH variable, which may be undefined when dependencies are expanded; move to using MESA_TOP variable to define sid_tables.py script path Fixes the following building error: external/mesa/src/gallium/drivers/radeonsi/si_debug.c:30:10: fatal error: 'sid_tabl

Re: [Mesa-dev] [PATCH] android: amd/common: fix sid_tables.h generation rules

2017-08-11 Thread Mauro Rossi
2017-08-11 16:23 GMT+02:00 Rob Herring : > On Fri, Aug 11, 2017 at 9:02 AM, Mauro Rossi wrote: >> Current generation rules rely on LOCAL_PATH variable, >> which may be undefined when dependencies are expanded; >> move to using MESA_TOP variable to define sid_tables.py sc

Re: [Mesa-dev] [PATCH] android: amd/common: fix sid_tables.h generation rules

2017-08-11 Thread Mauro Rossi
2017-08-11 20:06 GMT+02:00 Mauro Rossi : > 2017-08-11 17:25 GMT+02:00 Rob Herring : >> On Fri, Aug 11, 2017 at 10:10 AM, Mauro Rossi wrote: >>> 2017-08-11 16:23 GMT+02:00 Rob Herring : >>>> On Fri, Aug 11, 2017 at 9:02 AM, Mauro Rossi wrote: >>>>>

Re: [Mesa-dev] [PATCH 2/2] i965: Guard GetBufferSubData's streaming memcpy load with USE_SSE41

2017-08-12 Thread Mauro Rossi
On Aug 11, 2017 5:14 PM, "Kenneth Graunke" wrote: On Thursday, August 10, 2017 11:50:30 PM PDT Tapani Pälli wrote: > I do wonder what the target machine is (I haven't seen one that would > not have ARCH_X86_HAVE_SSE4_1 true, both 32bit and 64bit) but falling > back to memcpy makes perfect sense w

[Mesa-dev] [PATCH] android: radv/ac: Fix nir.h include

2017-04-22 Thread Mauro Rossi
Fixes following building errors due to missing include paths: external/mesa/src/amd/common/ac_shader_info.c:23:10: fatal error: 'nir/nir.h' file not found #include "nir/nir.h" ^ external/mesa/src/compiler/nir/nir.h:48:10: fatal error: 'nir_opcodes.h' file not found #include "nir_opcode

Re: [Mesa-dev] [PATCH 3/3] egl/android: Dequeue buffers inside EGL calls (v2)

2017-04-22 Thread Mauro Rossi
Hi Tomasz, last minute doubt 2017-04-19 9:00 GMT+02:00 Tomasz Figa : > Android buffer queues can be abandoned, which results in failing to > dequeue next buffer. Currently this would fail somewhere deep within > the DRI stack calling loader's getBuffers*(), without any error > reporting to the c

Re: [Mesa-dev] [PATCH] Android: fix r300g only build

2017-04-25 Thread Mauro Rossi
2017-04-25 18:21 GMT+02:00 Emil Velikov : > > On 24 April 2017 at 22:49, Rob Herring wrote: > > On Mon, Apr 24, 2017 at 11:59 AM, Emil Velikov > > wrote: > >> Hi Rob, > >> > >> On 24 April 2017 at 17:46, Rob Herring wrote: > >>> If r300g is the only radeon driver built, the Android build fails

Re: [Mesa-dev] [PATCH] Android: fix r300g only build

2017-04-25 Thread Mauro Rossi
2017-04-25 22:12 GMT+02:00 Rob Herring : > On Tue, Apr 25, 2017 at 1:50 PM, Mauro Rossi wrote: >> 2017-04-25 18:21 GMT+02:00 Emil Velikov : >>> >>> On 24 April 2017 at 22:49, Rob Herring wrote: >>> > On Mon, Apr 24, 2017 at 11:59 AM, Emil Velikov >>

Re: [Mesa-dev] [PATCH] Android: fix r300g only build

2017-04-26 Thread Mauro Rossi
2017-04-27 0:37 GMT+02:00 Rob Herring : > > On Tue, Apr 25, 2017 at 3:12 PM, Rob Herring wrote: > > On Tue, Apr 25, 2017 at 1:50 PM, Mauro Rossi wrote: > >> 2017-04-25 18:21 GMT+02:00 Emil Velikov : > >>> > >>> On 24 April 2017 at 22:49, Rob Herring

Re: [Mesa-dev] [PATCH] Android: fix r300g only build

2017-04-27 Thread Mauro Rossi
2017-04-27 17:36 GMT+02:00 Emil Velikov : > On 27 April 2017 at 16:11, Rob Herring wrote: > >> >> BTW, mesa lists this as the LLVM version requirements: >> >> LLVM_REQUIRED_GALLIUM=3.3.0 > src/gallium/auxiliary/{draw,gallivm}, used by > - nouveau (nv30), i915, r300, softpipe (yes) and svga - opt

Re: [Mesa-dev] [PATCH 10/12] Android: default to building all drivers

2017-04-28 Thread Mauro Rossi
2017-04-28 14:23 GMT+02:00 Rob Herring : > On Thu, Apr 27, 2017 at 9:50 PM, Chih-Wei Huang > wrote: >> A typo in the subject? >> (s/building/build/) > > It's a bit misleading as originally I wrote it such that a blank > BOARD_GPU_DRIVERS would enable all drivers, then changed it to "all". > So it

Re: [Mesa-dev] [PATCH 10/12] Android: default to building all drivers

2017-04-28 Thread Mauro Rossi
2017-04-28 21:38 GMT+02:00 Rob Herring : > On Fri, Apr 28, 2017 at 10:58 AM, Mauro Rossi > wrote: > > 2017-04-28 14:23 GMT+02:00 Rob Herring : > >> On Thu, Apr 27, 2017 at 9:50 PM, Chih-Wei Huang < > cwhu...@android-x86.org> wrote: > >>> A ty

Re: [Mesa-dev] [PATCH 02/12] android: define required __STDC* macros as cflags

2017-04-30 Thread Mauro Rossi
2017-04-30 11:43 GMT+02:00 Emil Velikov : > Hi Rob, > > On 27 April 2017 at 20:43, Rob Herring wrote: > > From: Mauro Rossi > > > > Necessary to fix the following radeonsi building errors: > > > > In file included from external/mesa/src/gallium/ >

Re: [Mesa-dev] [PATCH 00/12] Android build cleanup/fixes

2017-04-30 Thread Mauro Rossi
um LLVM version for several drivers. Also, > > android-x86 L support is using mesa 11.0. > > > > I've only tested against AOSP master so far. > > > > Rob > > > > Mauro Rossi (2): > > android: drop static linking of R600 LLVM libraries >

[Mesa-dev] [PATCH] i965: fix cast in OA performance query code

2017-05-01 Thread Mauro Rossi
Fixes the following building error happening on marshmallow-x86 with Ubuntu 16.04 LTS stock build essentials package and by the book Android build system. external/mesa/src/mesa/drivers/dri/i965/brw_performance_query.c: In function 'open_i915_perf_oa_stream': external/mesa/src/mesa/drivers/dri/i9

Re: [Mesa-dev] [PATCH 09/12] Android: push driver build details to driver makefiles

2017-05-01 Thread Mauro Rossi
2017-04-27 21:43 GMT+02:00 Rob Herring : > src/gallium/targets/dri/Android.mk contains lots of conditional for > individual drivers. Let's move these details into the individual driver > makefiles. > > In the process, align the make driver conditionals with automake > (i.e. HAVE_GALLIUM_*). > > Si

Re: [Mesa-dev] [PATCH 7/8] android: support creating texture from gralloc buffer

2017-05-01 Thread Mauro Rossi
Hi all, another try to merge android swrast patches in mesa 17.1 or mesa-dev if they are somehow considered useful for android. Mauro 2017-01-20 20:17 GMT+01:00 Mauro Rossi : > > > Il lunedì 9 gennaio 2017, Zhen Wu ha scritto: > >> Thanks for your review, Rob. Using kms-dri

Re: [Mesa-dev] [PATCH 8/8] android: egl: add support for software rasterizer

2017-05-01 Thread Mauro Rossi
2017-01-06 18:35 GMT+01:00 Wu Zhen : > From: WuZhen > > this commit enable software rendering on android with llvmpipe. > the system boots fine antutu 3D benchmark is passing > > this commit incorporates some further work done by: > Paulo Sergio Travaglia > Ma

Re: [Mesa-dev] [PATCH 8/8] android: egl: add support for software rasterizer

2017-05-01 Thread Mauro Rossi
+ Karl 2017-05-01 17:02 GMT+02:00 Mauro Rossi : > > > 2017-01-06 18:35 GMT+01:00 Wu Zhen : > >> From: WuZhen >> >> this commit enable software rendering on android with llvmpipe. >> the system boots fine antutu 3D benchmark is passing >> >> th

Re: [Mesa-dev] [PATCH 09/12] Android: push driver build details to driver makefiles

2017-05-01 Thread Mauro Rossi
2017-04-27 21:43 GMT+02:00 Rob Herring : > src/gallium/targets/dri/Android.mk contains lots of conditional for > individual drivers. Let's move these details into the individual driver > makefiles. > > In the process, align the make driver conditionals with automake > (i.e. HAVE_GALLIUM_*). > > Si

Re: [Mesa-dev] [PATCH 00/12] Android build cleanup/fixes

2017-05-01 Thread Mauro Rossi
2017-05-01 3:03 GMT+02:00 Mauro Rossi : > > > 2017-04-28 4:55 GMT+02:00 Chih-Wei Huang : > >> 2017-04-28 3:43 GMT+08:00 Rob Herring : >> > This is a series of clean-ups and fixes to the Android build files. >> > Overall, it removes a lot of the if conditions t

Re: [Mesa-dev] [PATCH 05/12] Android: drop LLVM support on Lollipop

2017-05-01 Thread Mauro Rossi
2017-04-30 11:49 GMT+02:00 Emil Velikov : > On 27 April 2017 at 20:43, Rob Herring wrote: > > Mesa no longer supports LLVM 3.5 for any targets we support. > > Android-x86 adds support for llvmpipe which could work, but android-x86 > > for L is using mesa 11.0 anyway. > > > Fine with me. An ack fr

Re: [Mesa-dev] [PATCH v2 6/7] docs/releasing: added relevant people for build/check with Android

2017-05-05 Thread Mauro Rossi
eedbacks about the build status in that project It is not correct that people may think I'm resposible for debugging/building, in any circumstance, thanks for correcting the statement. Mauro > > > > Signed-off-by: Andres Gomez > > Cc: Emil Velikov > > Cc: Tapani P

[Mesa-dev] Building error in android-x86

2017-05-06 Thread Mauro Rossi
Hi, mesa-dev is about to be polished for marshmallow, nougat and O and radeonsi was working on both marshmallow-x86 and nougat-x86 Now I see that llvm 3.8 is considered dropped, but commit "radeonsi: drop support for LLVM 3.8" does not mention that nougat is gone. Is there a chance that we can t

Re: [Mesa-dev] [PATCH 7/8] android: support creating texture from gralloc buffer

2017-05-06 Thread Mauro Rossi
2017-05-05 19:14 GMT+02:00 Rob Herring : > On Mon, May 1, 2017 at 9:55 AM, Tomasz Figa wrote: > > On Mon, May 1, 2017 at 11:17 PM, Mauro Rossi > wrote: > >> Hi all, > >> > >> another try to merge android swrast patches in mesa 17.1 or mesa-dev > &g

[Mesa-dev] [PATCH] android: i965: add per-gen libmesa_i965_gen{4, 45, 5} static

2017-05-06 Thread Mauro Rossi
Needed to fix android building errors: external/mesa/src/mesa/drivers/dri/i965/brw_state_upload.c:148: error: undefined reference to 'gen5_init_atoms' external/mesa/src/mesa/drivers/dri/i965/brw_state_upload.c:150: error: undefined reference to 'gen45_init_atoms' external/mesa/src/mesa/drivers/d

Re: [Mesa-dev] Building error in android-x86

2017-05-06 Thread Mauro Rossi
cd258f849cd3ce78384623c96d2c027682d Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Sat, 6 May 2017 14:40:59 +0200 Subject: [HACK] HACK: radeonsi: workaround to llvm 3.9 constraints Just to avoid the followinf building errors: external/mesa/src/gallium/drivers/radeonsi/si_shader.c:4

Re: [Mesa-dev] [PATCH v3 6/7] docs/releasing: added relevant people for build/check with Android

2017-05-08 Thread Mauro Rossi
help with >> debugging/building (Mauro). >> >> v3: Mauro my provide feedback for android-x86 only (Mauro). >> >> Signed-off-by: Andres Gomez >> Cc: Emil Velikov >> Cc: Tapani Pälli >> Cc: Mauro Rossi >> Acked-by: Tapani Pälli >> --

[Mesa-dev] [PATCH] egl: fold Android logger into main/ (v2)

2017-05-08 Thread Mauro Rossi
Fixes the folloing building error: external/mesa/src/egl/drivers/dri2/platform_android.c:1492:19: error: use of undeclared identifier 'droid_log' _eglSetLogProc(droid_log); ^ 1 error generated. Fixes: 0372097 "egl: fold Android logger into main/" --- src/egl/drivers/dri2/pla

Re: [Mesa-dev] [PATCH] egl: fold Android logger into main/ (v2)

2017-05-11 Thread Mauro Rossi
2017-05-11 13:25 GMT+02:00 Emil Velikov : > On 9 May 2017 at 00:24, Mauro Rossi wrote: >> Fixes the folloing building error: >> >> external/mesa/src/egl/drivers/dri2/platform_android.c:1492:19: >> error: use of undeclared identifier 'droid_log

Re: [Mesa-dev] [PATCH] android: r600: fix libmesa_amd_common dependency

2017-05-11 Thread Mauro Rossi
2017-05-11 13:28 GMT+02:00 Emil Velikov : > On 13 March 2017 at 13:10, Emil Velikov wrote: >> On 11 March 2017 at 16:26, Mauro Rossi wrote: >>> 2017-03-08 17:44 GMT+01:00 Emil Velikov : >>>> >>>> On 5 March 2017 at 21:23, Mauro Rossi wrote: >&

Re: [Mesa-dev] [PATCH] egl: fold Android logger into main/ (v2)

2017-05-11 Thread Mauro Rossi
2017-05-11 14:38 GMT+02:00 Emil Velikov : > On 11 May 2017 at 13:07, Mauro Rossi wrote: >> 2017-05-11 13:25 GMT+02:00 Emil Velikov : >>> On 9 May 2017 at 00:24, Mauro Rossi wrote: >>>> Fixes the folloing building error: >>>> >>>> externa

Re: [Mesa-dev] [PATCH] android: r600: fix libmesa_amd_common dependency

2017-05-11 Thread Mauro Rossi
2017-05-11 14:08 GMT+02:00 Mauro Rossi : > 2017-05-11 13:28 GMT+02:00 Emil Velikov : >> On 13 March 2017 at 13:10, Emil Velikov wrote: >>> On 11 March 2017 at 16:26, Mauro Rossi wrote: >>>> 2017-03-08 17:44 GMT+01:00 Emil Velikov : >>>>> >&

Re: [Mesa-dev] [PATCH] i965: fix cast in OA performance query code

2017-05-12 Thread Mauro Rossi
2017-05-12 8:18 GMT+02:00 Tapani Pälli : > > > On 05/11/2017 04:00 PM, Lionel Landwerlin wrote: >> >> On 11/05/17 13:58, Lionel Landwerlin wrote: >>> >>> On 11/05/17 12:27, Tapani Pälli wrote: >>>> >>>> >>>> >>>>

[Mesa-dev] [PATCH] radeonsi: bugfix in performance counters

2017-05-12 Thread Mauro Rossi
'if (regs->counters)' expression at line 623 is always true, spotted because of an error when building android-x86. 'if (regs->counters[idx])' is used instead. Fixes the following building error in Android: external/mesa/src/gallium/drivers/radeonsi/si_perfcounter.c:617:14: error: address of arr

[Mesa-dev] [PATCH] Android: gallium/radeon: fix libmesa_amd_common dependency

2017-12-02 Thread Mauro Rossi
libmesa_amd_common static dependency is added in Android build to avoid the following building errors: In file included from external/mesa/src/gallium/drivers/radeon/r600_buffer_common.c:24: In file included from external/mesa/src/gallium/drivers/radeonsi/si_pipe.h:26: external/mesa/src/gallium/d

[Mesa-dev] [PATCH] android: r600: fix libelf dependency

2017-06-17 Thread Mauro Rossi
Needed to avoid following building error: external/mesa/src/gallium/drivers/r600/evergreen_compute.c:27:10: fatal error: 'gelf.h' file not found ^ 1 error generated. Fixes: d96a210842 ("r600g,compute: provide local copy of functions from ac_binary.c") --- src/gallium/drivers/r600/Andro

Re: [Mesa-dev] [PATCH] android: r600: fix libelf dependency

2017-06-17 Thread Mauro Rossi
2017-06-17 10:45 GMT+02:00 Jan Vesely : > On Sat, 2017-06-17 at 10:26 +0200, Mauro Rossi wrote: >> Needed to avoid following building error: >> >> external/mesa/src/gallium/drivers/r600/evergreen_compute.c:27:10: >> fatal error: 'gelf.h' file not fou

Re: [Mesa-dev] [PATCH] r600: include libelf headers only as needed

2017-06-17 Thread Mauro Rossi
below: >> >> src/gallium/drivers/r600/evergreen_compute.c:27:10: >> fatal error: 'gelf.h' file not found >> ^ >> 1 error generated. >> >> Cc: Jan Vesely >> Cc: Mauro Rossi >> Reported-by: Mauro Rossi >> Fixes: d96a2

Re: [Mesa-dev] [PATCH] android: radeon(s): fix libdrm_amdgpu shared dependencies

2017-06-17 Thread Mauro Rossi
2017-05-29 17:30 GMT+02:00 Emil Velikov : > On 27 May 2017 at 10:59, Mauro Rossi wrote: >> >> >> 2017-05-22 1:34 GMT+02:00 Mauro Rossi : >>> >>> >>> >>> 2017-05-21 18:27 GMT+02:00 Emil Velikov : >>>> >>>> Hi Maur

Re: [Mesa-dev] [PATCH] android: radeon(s): fix libdrm_amdgpu shared dependencies

2017-06-17 Thread Mauro Rossi
2017-06-17 19:46 GMT+02:00 Emil Velikov : > On 17 June 2017 at 18:01, Mauro Rossi wrote: >> 2017-05-29 17:30 GMT+02:00 Emil Velikov : >>> On 27 May 2017 at 10:59, Mauro Rossi wrote: >>>> >>>> >>>> 2017-05-22 1:34 GMT+02:00 Mauro Rossi : &

[Mesa-dev] [PATCH] android: anv: drop libdrm_intel dependency

2017-06-28 Thread Mauro Rossi
In addition to Rob Herring "Android: i965: remove libdrm_intel dependency", we can drop libdrm_intel dependency in anv for Android. Please check if libdrm has to stay as shared dependency and drop this comment line. Fixes: 7dd20bc ("anv/i965: drop libdrm_intel dependency completely") --- src/in

[Mesa-dev] [PATCH] Android: fix typo in symlink for driver loading and 32 bit builds

2017-06-29 Thread Mauro Rossi
There is typo in the mkdir command path, the correct one is $(TARGET_OUT)/$(l)/$(MESA_DRI_MODULE_REL_PATH) The other issue is in 32bit builds, because lib64 does not exist there, we can use TARGET_IS_64_BIT to refine the post install command. Fixes: a3d98ca62f ("Android: use symlinks for driver l

[Mesa-dev] [PATCH] Android: generate symlinks for all enabled gallium drivers

2017-07-01 Thread Mauro Rossi
Current post install command relies on GALLIUM_TARGET_DRIVERS variable, however variable needs to be initialized in src/gallium/Android.mk in order that all enabled gallium drivers symlinks are correctly generated. At the moment due to sorting of INC_DIRS and variable set with svga (vmwgfx) only v

[Mesa-dev] [PATCH] Android: gallium_dri: add include to get "util/options.h"

2017-12-17 Thread Mauro Rossi
target.c requires "util/options.h" generated header or the following tricky Android building error may appear: In file included from external/mesa/src/gallium/targets/dri/target.c:1: In file included from external/mesa/src/gallium/auxiliary/target-helpers/drm_helper.h:185: out/target/product/x86_

Re: [Mesa-dev] [PATCH] Android: gallium_dri: add include to get "util/options.h"

2017-12-17 Thread Mauro Rossi
Hi, minor self-review and correction the needed header is "xmlpool/options.h" Only changes needed are in the commit title ... 2017-12-18 0:11 GMT+01:00 Mauro Rossi : > target.c requires "xmlpool/options.h" generated header > ...and here target.c requires "u

Re: [Mesa-dev] [PATCH] Android: gallium_dri: add include to get "util/options.h"

2017-12-17 Thread Mauro Rossi
Sorry for the typos, anyway I'm sending corrected title and message in new thread. Closing this one Mauro 2017-12-18 0:20 GMT+01:00 Mauro Rossi : > Hi, minor self-review and correction the needed header is > "xmlpool/options.h" > Only changes needed are in the commit ti

[Mesa-dev] [PATCH] Android: gallium_dri: add include to get "xmlpool/options.h"

2017-12-17 Thread Mauro Rossi
target.c requires "xmlpool/options.h" generated header or the following tricky Android building error may appear: In file included from external/mesa/src/gallium/targets/dri/target.c:1: In file included from external/mesa/src/gallium/auxiliary/target-helpers/drm_helper.h:185: out/target/product/x

Re: [Mesa-dev] [PATCH] Android: gallium_dri: add include to get "xmlpool/options.h"

2017-12-18 Thread Mauro Rossi
Il 18/dic/2017 17:27, "Emil Velikov" ha scritto: On 17 December 2017 at 23:34, Mauro Rossi wrote: > target.c requires "xmlpool/options.h" generated header > or the following tricky Android building error may appear: > > In file included from external/mesa/sr

Re: [Mesa-dev] [PATCH] Android: gallium_dri: add include to get "xmlpool/options.h"

2017-12-23 Thread Mauro Rossi
Hi, I tried to add LOCAL_GENERATED_SOURCES += $(MESA_DRI_OPTIONS_H) incrementally three places: src/gallium/drivers/radeonsi/Android.mk src/gallium/targets/dri/Android.mk and src/gallium/auxiliary/Android.mk but it didn't work as expected I also tried by putting later the export in src/util/And

[Mesa-dev] [PATCH] ac: fix build error in si_shader

2018-01-12 Thread Mauro Rossi
assert() is replaced by unreachable(), to avoid following building error: external/mesa/src/gallium/drivers/radeonsi/si_shader.c:1967:1: error: control may reach end of non-void function [-Werror,-Wreturn-type] } ^ 1 error generated. Fixes: c797cd6 ("ac: add load_patch_vertices_in() to the abi")

Re: [Mesa-dev] [PATCH 2/8] android: fix building on lollipop

2017-01-08 Thread Mauro Rossi
2017-01-06 18:35 GMT+01:00 Wu Zhen : > From: WuZhen > > this commit fixes mesa building on lollipop, however, > llvm on lollipop is too old to build amdgpu > > based on initial work by Mauro Rossi > > Change-Id: I98d646f9e1c61fe2754479382885718386a8bbb7 > Reviewed-by:

[Mesa-dev] [PATCH 02/12] st/dri: remove trailing whitespace

2017-01-09 Thread Mauro Rossi
--- src/gallium/state_trackers/dri/dri_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c index aa0ad09..a950f52 100644 --- a/src/gallium/state_trackers/dri/dri_screen.c +++ b/src/g

[Mesa-dev] android: patches for upcoming mesa 17.0 release

2017-01-09 Thread Mauro Rossi
Hi, I'm sending a series of 12 patches for android, comprising fixes for build errors, LLVMInitializeAMDGPU* declarations, Android 7 fixes and a (small) i915 patch for feature parity with i965. Tested with nougat-x86 and marshmallow-x86 Mauro Changelog: [building errors/trailing whitespaces]

[Mesa-dev] [PATCH 05/12] android: radeonsi: fix LLVMInitializeAMDGPU* functions declaration

2017-01-09 Thread Mauro Rossi
LLVMInitializeAMDGPU* functions need to be explicitly declared and mesa expects them via header, but LLVM needs to be instructed to invoke its own LLVM_TARGET(AMDGPU) macro, or the functions will not be available. A new llvm cflag (-DFORCE_BUILD_AMDGPU) serves this purpose, the same mechanism is

[Mesa-dev] [PATCH 01/12] android: st/mesa: fix building error in libmesa_st_mesa

2017-01-09 Thread Mauro Rossi
Fixes building error due to dependency on nir generated headers --- src/mesa/Android.libmesa_st_mesa.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/Android.libmesa_st_mesa.mk b/src/mesa/Android.libmesa_st_mesa.mk index 3905ddc..92df4ad 100644 --- a/src/mesa/And

[Mesa-dev] [PATCH 06/12] android: amd/common: fix LLVMInitializeAMDGPU* functions declaration

2017-01-09 Thread Mauro Rossi
LLVMInitializeAMDGPU* functions need to be explicitly declared and mesa expects them via header, but LLVM needs to be instructed to invoke its own LLVM_TARGET(AMDGPU) macro, or the functions will not be available. A new llvm cflag (-DFORCE_BUILD_AMDGPU) serves this purpose, the same mechanism is

[Mesa-dev] [PATCH 03/12] android: define HAVE___BUILTIN_{FFS, FFSLL}

2017-01-09 Thread Mauro Rossi
Fixes building errors due to multiple definition of ffs and ffsll as they are provided by bionic in kitkat, in later versions these definitions do no harm. --- Android.common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Android.common.mk b/Android.common.mk index 80cf572..1745b08 10064

[Mesa-dev] [PATCH 10/12] android: gallium/targets/dri: libz static dependency for Android 7.0

2017-01-09 Thread Mauro Rossi
Fixes a series of libz related building errors: target SharedLib: gallium_dri_32 (out/target/prod...SHARED_LIBRARIES/gallium_dri_intermediates/LINKED/gallium_dri.so) external/elfutils/libelf/elf_compress.c:117: error: undefined reference to 'deflateInit_' ... external/elfutils/libelf/elf_compress

[Mesa-dev] [PATCH 11/12] android: gallium/targets/dri: remove blank static libraries definition

2017-01-09 Thread Mauro Rossi
Removed as unnecessary --- src/gallium/targets/dri/Android.mk | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gallium/targets/dri/Android.mk b/src/gallium/targets/dri/Android.mk index 1564d9d..9067b32 100644 --- a/src/gallium/targets/dri/Android.mk +++ b/src/gallium/targets/dri/Android.m

[Mesa-dev] [PATCH 12/12] i915: add mock implementation of GL_OES_EGL_image_external (v2)

2017-01-09 Thread Mauro Rossi
This is similar to commit 7420c9dab4aaf87e6b840410226c296c4668a48f but for the i915 driver, as neeeded in android-x86. In version v2, as per i965 implementation, the extension GL_OES_EGL_image_external is not enabled by default. The by-the-book way to enable the extension is mesa environment vari

[Mesa-dev] [PATCH 09/12] android: gallium/auxiliary: fix building error in Android 7.0

2017-01-09 Thread Mauro Rossi
Conditional libLLVMCore static library dependency is added, for the case when MESA_ENABLE_LLVM is true Fixes the following building error with Android 7.0: In file included from external/mesa/src/gallium/auxiliary/gallivm/lp_bld_misc.cpp:62: ... external/llvm/include/llvm/IR/Attributes.h:68:14: f

[Mesa-dev] [PATCH 07/12] android: add support for Android 7.0 with llvm 3.8

2017-01-09 Thread Mauro Rossi
Integration of rules that set correct HAVE_LLVM value for Android 7.0 --- Android.common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.common.mk b/Android.common.mk index 1745b08..36a44bb 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -80,7 +80,7 @@ endi

[Mesa-dev] [PATCH 04/12] android: radeon: fix LLVMInitializeAMDGPU* functions declaration

2017-01-09 Thread Mauro Rossi
LLVMInitializeAMDGPU* functions need to be explicitly declared and mesa expects them via header, but LLVM needs to be instructed to invoke its own LLVM_TARGET(AMDGPU) macro, or the functions will not be available. A new llvm cflag (-DFORCE_BUILD_AMDGPU) serves this purpose, the same mechanism is

[Mesa-dev] [PATCH 08/12] android: fix libelf include path for Android 7.0

2017-01-09 Thread Mauro Rossi
LOCAL_C_INCLUDES need to include correct path of libelf, which had exceptions for Android 5.0 (i.e external/elfutils/0.153/libelf) and Android 6.0 (i.e. external/elfutils/src/libelf) In Android 7.0 the path is again external/elfutils/libelf Fixes the following building error: external/mesa/src/ga

Re: [Mesa-dev] android: patches for upcoming mesa 17.0 release

2017-01-10 Thread Mauro Rossi
2017-01-10 9:38 GMT+01:00 Tapani Pälli : > Patches 1 & 2 > > (we've had patch 1 for some time in android-ia but forgot to send it) > > Reviewed-by: Tapani Pälli > > Patch 3 is not needed, this change is already in Mesa. I'll try to > compile-test the rest. For some reason this series does not appl

Re: [Mesa-dev] [PATCH 5/8] android: add Android.mk for llvmpipe

2017-01-10 Thread Mauro Rossi
2017-01-06 18:35 GMT+01:00 Wu Zhen : > From: WuZhen > > rename old swrast to softpipe, add a new driver llvmpipe > > Change-Id: Ia8bc1005ad6846df78bc1f6d0a4196310a049aca > Reviewed-by: Mauro Rossi > Reviewed-by: Chih-Wei Huang > --- > Android.common.mk

Re: [Mesa-dev] [PATCH 07/12] android: add support for Android 7.0 with llvm 3.8

2017-01-10 Thread Mauro Rossi
2017-01-10 1:53 GMT+01:00 Mauro Rossi : > Integration of rules that set correct HAVE_LLVM value for Android 7.0 > --- > Android.common.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/Android.common.mk b/Android.common.mk > index 1745b08..3

[Mesa-dev] [PATCH] android: ac/debug: move sid_tables.h generation and IB decode to amd/common

2017-01-11 Thread Mauro Rossi
o fix LLVMInitializeAMDGPU* declarations, which are in final stages of review, should be upstreamed, to be able to correctly apply this one. Mauro >From d6614af2763ea96940e16571005d4ab06e86304c Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Thu, 12 Jan 2017 00:35:06 +0100 Subject: [PATCH] android: ac/deb

Re: [Mesa-dev] [PATCH 5/8] android: add Android.mk for llvmpipe

2017-01-16 Thread Mauro Rossi
>> --- a/src/gallium/Android.mk >> +++ b/src/gallium/Android.mk >> @@ -34,7 +34,9 @@ SUBDIRS += auxiliary/pipe-loader >> # >> >> # swrast >> -ifneq ($(filter swrast,$(MESA_GPU_DRIVERS)),) >> +ifneq ($(filter llvmpipe,$(MESA_GPU_DRIVERS)),) >> +SUBDIRS += winsys/sw/dri drivers/llvmpipe drivers/sof

<    1   2   3   4   >