diff options
author | Rob Clark <robdclark@gmail.com> | 2015-09-01 15:55:34 -0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2015-09-01 15:55:34 -0400 |
commit | 9a316c8bdbed33c7ac07462928d6cd633188decb (patch) | |
tree | 6c528be380fa4391fa2e4cd4ca7887c99f15a2f9 | |
parent | bcd65cced04b3f0dbcb5642cec4f630fa9f5319d (diff) | |
download | drm_gralloc-9a316c8bdbed33c7ac07462928d6cd633188decb.tar.gz |
WIP: hacks to build gralloc_drm_pipe for freedreno
-rw-r--r-- | Android.mk | 20 | ||||
-rw-r--r-- | gralloc_drm_pipe.c | 2 |
2 files changed, 19 insertions, 3 deletions
@@ -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> |