[Freedreno] [PATCH 08/29] android: egl/main: add/enable freedreno
Emil Velikov
emil.l.velikov at gmail.com
Tue Jul 29 15:54:20 PDT 2014
For all everyone willing to give the freedreno driver
a go they can now build it under Android.
Cc: "10.1 10.2" <mesa-stable at lists.freedesktop.org>
Cc: Rob Clark <robclark at freedesktop.org>
Cc: freedreno at lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
src/egl/main/Android.mk | 6 ++++++
src/gallium/targets/egl-static/Android.mk | 3 +++
2 files changed, 9 insertions(+)
diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk
index b134682..c3d9197 100644
--- a/src/egl/main/Android.mk
+++ b/src/egl/main/Android.mk
@@ -80,6 +80,12 @@ gallium_DRIVERS :=
# swrast
gallium_DRIVERS += libmesa_pipe_softpipe libmesa_winsys_sw_android
+# freedreno
+ifneq ($(filter freedreno, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_freedreno libmesa_pipe_freedreno
+LOCAL_SHARED_LIBRARIES += libdrm_freedreno
+endif
+
# i915g
ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
gallium_DRIVERS += libmesa_winsys_i915 libmesa_pipe_i915
diff --git a/src/gallium/targets/egl-static/Android.mk b/src/gallium/targets/egl-static/Android.mk
index 00569dd..d25c432 100644
--- a/src/gallium/targets/egl-static/Android.mk
+++ b/src/gallium/targets/egl-static/Android.mk
@@ -52,6 +52,9 @@ LOCAL_C_INCLUDES += \
$(DRM_TOP)
endif
+ifneq ($(filter freedreno, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_FREEDRENO
+endif
ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
LOCAL_CFLAGS += -DGALLIUM_I915
endif
--
2.0.2
More information about the Freedreno
mailing list