]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Subtract total pinned bytes from available aperture size
authorKeith Packard <keithp@keithp.com>
Fri, 21 Nov 2008 06:54:54 +0000 (22:54 -0800)
committerDave Airlie <airlied@redhat.com>
Mon, 24 Nov 2008 23:28:06 +0000 (09:28 +1000)
commit8654d113c7660ea6c4d14a031eff50bce3f7bb99
treebce313afee7ef1eed42c622f7cd0e142e1ca4cdf
parent3e8282c98c91c25d968c466832c2fd49c8dd4bc7
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>
drivers/gpu/drm/i915/i915_gem.c