android: egl/main: add/enable freedreno
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 20 Jul 2014 21:21:23 +0000 (22:21 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 12 Aug 2014 23:46:53 +0000 (00:46 +0100)
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>
src/egl/main/Android.mk
src/gallium/targets/egl-static/Android.mk

index b134682f465a3c568a0cf5d132ac3cd83d7fb87f..c3d9197565424e41ef3b23d224b1448b7fba85fa 100644 (file)
@@ -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
index 00569dd0183959e95ad7c00be1a9659be17e7c6c..d25c43225cabe79e15755c2a926e28f0785dad4b 100644 (file)
@@ -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