sna: Tweak preference for small GPU bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
19a62e088f
commit
c25fa2216a
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue