summaryrefslogtreecommitdiffstats
path: root/src/gallium/targets
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2011-08-22 11:04:46 +0800
committerChia-I Wu <olvaffe@gmail.com>2011-08-27 17:29:09 +0800
commit99be968e99141c01b0fd3c045fe0f4c0c595ed51 (patch)
tree3172682e0846392c10e09fe90a12b0b9428c01c0 /src/gallium/targets
parent04dbb37eaa1aa6c60eb7130ebba6893954418b78 (diff)
downloadexternal_mesa3d-99be968e99141c01b0fd3c045fe0f4c0c595ed51.zip
external_mesa3d-99be968e99141c01b0fd3c045fe0f4c0c595ed51.tar.gz
external_mesa3d-99be968e99141c01b0fd3c045fe0f4c0c595ed51.tar.bz2
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 'src/gallium/targets')
-rw-r--r--src/gallium/targets/egl-static/Android.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/targets/egl-static/Android.mk b/src/gallium/targets/egl-static/Android.mk
index b7c29ae..a6b026c 100644
--- a/src/gallium/targets/egl-static/Android.mk
+++ b/src/gallium/targets/egl-static/Android.mk
@@ -46,6 +46,9 @@ LOCAL_C_INCLUDES := \
# swrast
LOCAL_CFLAGS += -DGALLIUM_SOFTPIPE
+ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -D_EGL_PIPE_I915=1
+endif
ifneq ($(filter r600g, $(MESA_GPU_DRIVERS)),)
LOCAL_CFLAGS += -D_EGL_PIPE_R600=1
endif