[Mesa-dev] [android-x86-devel] [RFC 7/7] android: support swrast

Emil Velikov emil.l.velikov at gmail.com
Fri Apr 29 14:29:54 UTC 2016


[Adding Mauro]

On 29 April 2016 at 14:25, Rob Herring <robherring2 at gmail.com> wrote:
> On Thu, Apr 28, 2016 at 2:35 AM, Chih-Wei Huang <cwhuang at android-x86.org> wrote:
>> From: WuZhen <wuzhen at jidemail.com>
>>
>> System boots up with gles_mesa/softpipe/llvmpipe.
>>
>> NO_REF_TASK
>> tested: local run
>>
>> Change-Id: I629ed0ca9fad12e32270eb8e8bfa9f7681b68474
>> Signed-off-by: Chih-Wei Huang <cwhuang at linux.org.tw>
>> ---
>>  Android.mk                                     |   2 +-
>>  include/GL/internal/dri_interface.h            |   9 +-
>>  src/egl/Android.mk                             |   1 +
>>  src/egl/drivers/dri2/egl_dri2.c                |   1 +
>>  src/egl/drivers/dri2/platform_android.c        | 386 ++++++++++++++++++++++++-
>>  src/gallium/Android.mk                         |   2 +-
>>  src/gallium/drivers/llvmpipe/Android.mk        |  37 +++
>>  src/gallium/include/state_tracker/drm_driver.h |  10 +-
>>  src/gallium/state_trackers/dri/dri2.c          |   6 +-
>>  src/gallium/state_trackers/dri/drisw.c         |  46 +++
>>  src/gallium/targets/dri/Android.mk             |   8 +-
>>  src/gallium/winsys/sw/dri/Android.mk           |   2 +
>>  src/gallium/winsys/sw/dri/dri_sw_winsys.c      |  64 ++++
>>  src/mesa/drivers/dri/common/dri_util.c         |   4 +-
>>  src/mesa/drivers/dri/common/dri_util.h         |   2 +-
>>  15 files changed, 555 insertions(+), 25 deletions(-)
>>  create mode 100644 src/gallium/drivers/llvmpipe/Android.mk
>
> I had started some work on this and needed some changes I don't see
> here. I didn't get beyond getting r600 to build though.
>
> I'm on AOSP master which probably means a different LLVM version.
> First, I had to enable several LLVM libs to build for the target and
> not just the host. In mesa, I had to set the LLVM version to 3.7 from
> 3.5, add libLLVMExecutionEngine to libmesa_nir and use libLLVM shared
> lib instead of r600 static libraries. I'm surprised similar changes
> aren't needed.
>
>From memory Android-x86 (and/or Mauro) did have some LLVM and mesa (?)
changes to get LLVM and radeon(s) working. I think that most/all of
this work is over at github - https://github.com/maurossi

-Emil


More information about the mesa-dev mailing list