This function uses libpciaccess, which is not part of Android.
Just disable this function until we find a better solution.
#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"
return -1;
}
+#ifndef ANDROID
static size_t
drm_intel_probe_agp_aperture_size(int fd)
{
pci_system_cleanup ();
return size;
}
+#endif
int drm_intel_get_aperture_sizes(int fd,
size_t *mappable,
*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;