summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmil Velikov <emil.l.velikov@gmail.com>2014-07-20 22:21:23 +0100
committerEmil Velikov <emil.l.velikov@gmail.com>2014-08-25 23:38:43 +0100
commit1cab5b51449aa8e5e128102ff596408e02ece83a (patch)
tree4e2971c71ba886c404b93f503b59f8addfc48d77 /src
parent6761e28a46ed2fd16eb604bfb2cc14770127b74d (diff)
android: egl/main: add/enable freedreno
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@lists.freedesktop.org> Cc: Rob Clark <robclark@freedesktop.org> Cc: freedreno@lists.freedesktop.org Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> (cherry picked from commit 792041ebe5d6ccfdd03cf6903f4942aa115387c6)
Diffstat (limited to 'src')
-rw-r--r--src/egl/main/Android.mk6
-rw-r--r--src/gallium/targets/egl-static/Android.mk3
2 files changed, 9 insertions, 0 deletions
diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk
index 75d1a47ba5c..4cab2f1f473 100644
--- a/src/egl/main/Android.mk
+++ b/src/egl/main/Android.mk
@@ -95,6 +95,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 37244b5443a..0ad6bb89657 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 += -D_EGL_PIPE_I915=1
endif