Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,076
    • Issues 3,076
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1,007
    • Merge requests 1,007
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • MesaMesa
  • mesamesa
  • Merge requests
  • !10183

Android: Build mesa3d using meson from inside AOSP

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Roman Stratiienko requested to merge roman.stratiienko/mesa:android-meson-integration into main Apr 12, 2021
  • Overview 186
  • Commits 2
  • Pipelines 84
  • Changes 5

How to use:

For GALLIUM drivers:

  1. Add gallium drivers into your board.mk file:

board.mk:

    BOARD_MESA3D_USES_MESON_BUILD := true
    BOARD_MESA3D_GALLIUM_DRIVERS := lima panfrost v3d
  1. Add the following packages into your device.mk file:

device.mk:

    PRODUCT_PACKAGES += \
        libEGL_mesa \
        libGLESv1_CM_mesa \
        libGLESv2_mesa \
        libgallium_dri \
        libglapi

For VULKAN drivers:

  1. Add single vulkan driver into your board.mk file:

board.mk:

    BOARD_MESA3D_USES_MESON_BUILD := true
    BOARD_MESA3D_VULKAN_DRIVERS := freedreno broadcom
  1. Add the following packages into your device.mk file:

device.mk:

    PRODUCT_PACKAGES += \
       vulkan.freedreno
    PRODUCT_PROPERTY_OVERRIDES += \
       ro.hardware.vulkan=freedreno

To build 'libgbm':

Set definition in the board.mk:

    BOARD_MESA3D_BUILD_LIBGBM := true

And add a package to the device.mk:

    PRODUCT_PACKAGES += libgbm

For building and testing instructions please refer to #4835 (closed)

Edited May 31, 2021 by Roman Stratiienko
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: android-meson-integration