Skip to content
Commit 6fe4f140 authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915/execbuffer: Reorder binding of objects to favour restrictions



As the mappable portion of the aperture is always a small subset at the
start of the GTT, it is allocated preferentially by drm_mm. This is
useful in case we ever need to map an object later. However, if you have
a large object that can consume the entire mappable region of the
GTT this prevents the batchbuffer from fitting and so causing an error.
Instead allocate all those that require a mapping up front in order to
improve the likelihood of finding sufficient space to bind them.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
parent 809b6334
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment