summaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-08-22 11:04:46 +0800
committerChia-I Wu <[email protected]>2011-08-27 17:29:09 +0800
commit99be968e99141c01b0fd3c045fe0f4c0c595ed51 (patch)
tree3172682e0846392c10e09fe90a12b0b9428c01c0 /Android.mk
parent04dbb37eaa1aa6c60eb7130ebba6893954418b78 (diff)
android: add support for i915g
Quickly tested with 945GME. SurfaceFlinger (the display server and compositor) works. 2D apps with RGB or RGBA visuals work. As for 3D apps, some work and some do not.
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index ad7feed2052..02ce3f1609b 100644
--- a/Android.mk
+++ b/Android.mk
@@ -24,7 +24,7 @@
# BOARD_GPU_DRIVERS should be defined. The valid values are
#
# classic drivers:
-# gallium drivers: swrast r600g vmwgfx
+# gallium drivers: swrast i915g r600g vmwgfx
#
# The main target is libGLES_mesa. There is no classic drivers yet.
@@ -36,7 +36,7 @@ DRM_TOP := external/drm
DRM_GRALLOC_TOP := hardware/drm_gralloc
classic_drivers :=
-gallium_drivers := swrast r600g vmwgfx
+gallium_drivers := swrast i915g r600g vmwgfx
MESA_GPU_DRIVERS := $(BOARD_GPU_DRIVERS)
@@ -110,6 +110,12 @@ gallium_DRIVERS :=
# swrast
gallium_DRIVERS += libmesa_pipe_softpipe libmesa_winsys_sw_android
+# i915g
+ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
+gallium_DRIVERS += libmesa_winsys_i915 libmesa_pipe_i915
+LOCAL_SHARED_LIBRARIES += libdrm_intel
+endif
+
# r600g
ifneq ($(filter r600g, $(MESA_GPU_DRIVERS)),)
gallium_DRIVERS += libmesa_winsys_radeon