intel: Add dri_bufmgr_check_aperture support for bufmgr_gem.
authorEric Anholt <eric@anholt.net>
Tue, 21 Oct 2008 07:10:54 +0000 (00:10 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 28 Oct 2008 21:27:49 +0000 (14:27 -0700)
commit0e867312323fa51af324228b98bff4f49a813481
treee2ebd033a8ecf9661d9c2936455ce2ff9ba5dccb
parente47ab7a5081e178bad385ce2e75b01474ea7aa4c
intel: Add dri_bufmgr_check_aperture support for bufmgr_gem.

This relies on a new kernel ioctl to get the available aperture size.

In order to provide reasonable performance from dri_bufmgr_check_aperture, we
now require that once a buffer has been used as the target of a relocation,
it gets no further relocations added to it.  This cuts the cost of
check_aperture from 10% to 1% in the 3D driver with no code changes, but
slightly complicates our plans for the 2D driver.
libdrm/intel/intel_bufmgr_gem.c
shared-core/i915_drm.h