sna: Tweak preference for small GPU bo

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-30 14:13:13 +01:00
parent 19a62e088f
commit c25fa2216a
1 changed files with 1 additions and 1 deletions

View File

@ -4270,7 +4270,7 @@ unsigned kgem_can_create_2d(struct kgem *kgem,
if (size > 0) {
if (size <= kgem->max_cpu_size)
flags |= KGEM_CAN_CREATE_CPU;
else if (size <= kgem->max_gpu_size)
if (size > 4096 && size <= kgem->max_gpu_size)
flags |= KGEM_CAN_CREATE_GPU;
if (size <= PAGE_SIZE*kgem->aperture_mappable/4)
flags |= KGEM_CAN_CREATE_GTT;