OSDN Git Service

android: intel: disable drm_intel_probe_agp_aperture_size
authorChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 1 Aug 2011 03:42:07 +0000 (11:42 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sat, 5 Nov 2011 04:09:18 +0000 (12:09 +0800)
This function uses libpciaccess, which is not part of Android.
Just disable this function until we find a better solution.

intel/intel_bufmgr.c

index 905556f..b56b3e3 100644 (file)
@@ -36,7 +36,9 @@
 #include <errno.h>
 #include <drm.h>
 #include <i915_drm.h>
+#ifndef ANDROID
 #include <pciaccess.h>
+#endif
 #include "intel_bufmgr.h"
 #include "intel_bufmgr_priv.h"
 #include "xf86drm.h"
@@ -272,6 +274,7 @@ int drm_intel_get_pipe_from_crtc_id(drm_intel_bufmgr *bufmgr, int crtc_id)
        return -1;
 }
 
+#ifndef ANDROID
 static size_t
 drm_intel_probe_agp_aperture_size(int fd)
 {
@@ -297,6 +300,7 @@ err:
        pci_system_cleanup ();
        return size;
 }
+#endif
 
 int drm_intel_get_aperture_sizes(int fd,
                                 size_t *mappable,
@@ -312,8 +316,10 @@ int drm_intel_get_aperture_sizes(int fd,
 
        *mappable = 0;
        /* XXX add a query for the kernel value? */
+#ifndef ANDROID
        if (*mappable == 0)
                *mappable = drm_intel_probe_agp_aperture_size(fd);
+#endif
        if (*mappable == 0)
                *mappable = 64 * 1024 * 1024; /* minimum possible value */
        *total = aperture.aper_size;