summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <robdclark@gmail.com>2015-09-01 15:55:34 -0400
committerRob Clark <robdclark@gmail.com>2015-09-01 15:55:34 -0400
commit9a316c8bdbed33c7ac07462928d6cd633188decb (patch)
tree6c528be380fa4391fa2e4cd4ca7887c99f15a2f9
parentbcd65cced04b3f0dbcb5642cec4f630fa9f5319d (diff)
downloaddrm_gralloc-9a316c8bdbed33c7ac07462928d6cd633188decb.tar.gz
WIP: hacks to build gralloc_drm_pipe for freedreno
-rw-r--r--Android.mk20
-rw-r--r--gralloc_drm_pipe.c2
2 files changed, 19 insertions, 3 deletions
diff --git a/Android.mk b/Android.mk
index 2a0d8b9..b718425 100644
--- a/Android.mk
+++ b/Android.mk
@@ -94,9 +94,23 @@ LOCAL_SHARED_LIBRARIES := \
libhardware_legacy \
ifneq ($(filter $(freedreno_drivers), $(DRM_GPU_DRIVERS)),)
-LOCAL_SRC_FILES += gralloc_drm_freedreno.c
-LOCAL_CFLAGS += -DENABLE_FREEDRENO -DDMABUF
-LOCAL_SHARED_LIBRARIES += libdrm_freedreno
+LOCAL_SRC_FILES += gralloc_drm_pipe.c
+LOCAL_C_INCLUDES += \
+ hardware/mesa/include \
+ hardware/mesa/src \
+ hardware/mesa/src/gallium/include \
+ hardware/mesa/src/gallium/winsys \
+ hardware/mesa/src/gallium/drivers \
+ hardware/mesa/src/gallium/auxiliary
+LOCAL_STATIC_LIBRARIES += \
+ libmesa_winsys_freedreno \
+ libmesa_pipe_freedreno \
+ libmesa_glsl \
+ libmesa_gallium \
+ libmesa_st_mesa \
+ libmesa_util
+LOCAL_CFLAGS += -DENABLE_PIPE -DENABLE_PIPE_FREEDRENO -DDMABUF
+LOCAL_SHARED_LIBRARIES += libdrm_freedreno libdl
endif
ifneq ($(filter $(intel_drivers), $(DRM_GPU_DRIVERS)),)
diff --git a/gralloc_drm_pipe.c b/gralloc_drm_pipe.c
index 682a00e..1a08157 100644
--- a/gralloc_drm_pipe.c
+++ b/gralloc_drm_pipe.c
@@ -26,6 +26,8 @@
#include <cutils/log.h>
#include <errno.h>
+#define _C99_MATH_H_ /* hack to avoid pulling in c99_math.h which explodes.. */
+
#include <pipe/p_screen.h>
#include <pipe/p_context.h>
#include <state_tracker/drm_driver.h>