From: Emil Velikov Date: Sun, 20 Jul 2014 21:21:23 +0000 (+0100) Subject: android: egl/main: add/enable freedreno X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=792041ebe5d6ccfdd03cf6903f4942aa115387c6;p=mesa.git 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" Cc: Rob Clark Cc: freedreno@lists.freedesktop.org Signed-off-by: Emil Velikov --- diff --git a/src/egl/main/Android.mk b/src/egl/main/Android.mk index b134682f465..c3d91975654 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 00569dd0183..d25c43225ca 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