diff options
Diffstat (limited to 'intel/intel_bufmgr.c')
-rw-r--r-- | intel/intel_bufmgr.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/intel/intel_bufmgr.c b/intel/intel_bufmgr.c index bede0a21..192de093 100644 --- a/intel/intel_bufmgr.c +++ b/intel/intel_bufmgr.c | |||
@@ -32,7 +32,9 @@ | |||
32 | #include <errno.h> | 32 | #include <errno.h> |
33 | #include <drm.h> | 33 | #include <drm.h> |
34 | #include <i915_drm.h> | 34 | #include <i915_drm.h> |
35 | #ifndef __ANDROID__ | ||
35 | #include <pciaccess.h> | 36 | #include <pciaccess.h> |
37 | #endif | ||
36 | #include "libdrm_macros.h" | 38 | #include "libdrm_macros.h" |
37 | #include "intel_bufmgr.h" | 39 | #include "intel_bufmgr.h" |
38 | #include "intel_bufmgr_priv.h" | 40 | #include "intel_bufmgr_priv.h" |
@@ -322,6 +324,7 @@ drm_intel_get_pipe_from_crtc_id(drm_intel_bufmgr *bufmgr, int crtc_id) | |||
322 | return -1; | 324 | return -1; |
323 | } | 325 | } |
324 | 326 | ||
327 | #ifndef __ANDROID__ | ||
325 | static size_t | 328 | static size_t |
326 | drm_intel_probe_agp_aperture_size(int fd) | 329 | drm_intel_probe_agp_aperture_size(int fd) |
327 | { | 330 | { |
@@ -347,6 +350,15 @@ err: | |||
347 | pci_system_cleanup (); | 350 | pci_system_cleanup (); |
348 | return size; | 351 | return size; |
349 | } | 352 | } |
353 | #else | ||
354 | static size_t | ||
355 | drm_intel_probe_agp_aperture_size(int fd) | ||
356 | { | ||
357 | /* Nothing seems to rely on this value on Android anyway... */ | ||
358 | fprintf(stderr, "%s: Mappable aperture size hardcoded to 64MiB\n", __func__); | ||
359 | return 64 * 1024 * 1024; | ||
360 | } | ||
361 | #endif | ||
350 | 362 | ||
351 | int | 363 | int |
352 | drm_intel_get_aperture_sizes(int fd, size_t *mappable, size_t *total) | 364 | drm_intel_get_aperture_sizes(int fd, size_t *mappable, size_t *total) |