summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_dma.c
diff options
context:
space:
mode:
authorKeith Packard2008-11-21 07:54:54 +0100
committerDave Airlie2008-11-25 00:28:06 +0100
commit2678d9d6964b29ecd1975870c7a850242b29bc5c (patch)
treebce313afee7ef1eed42c622f7cd0e142e1ca4cdf /drivers/gpu/drm/i915/i915_dma.c
parentdrm/i915: Avoid BUG_ONs on VT switch with a wedged chipset. (diff)
downloadkernel-qcow2-linux-2678d9d6964b29ecd1975870c7a850242b29bc5c.tar.gz
kernel-qcow2-linux-2678d9d6964b29ecd1975870c7a850242b29bc5c.tar.xz
kernel-qcow2-linux-2678d9d6964b29ecd1975870c7a850242b29bc5c.zip
drm/i915: Subtract total pinned bytes from available aperture size
The old code was wandering through the active list looking for pinned buffers; there may be other pinned buffers around. Fortunately, we keep a count of the total amount of pinned memory and can use that instead. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Eric Anholt <eric@anholt.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_dma.c')
0 files changed, 0 insertions, 0 deletions