sna/dri: Don't force ring selection if we have semaphores

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-04 14:28:41 +01:00
parent fb7b584ec9
commit 4bad76b451
1 changed files with 6 additions and 0 deletions

View File

@ -461,6 +461,12 @@ static void sna_dri_select_mode(struct sna *sna, struct kgem_bo *src, bool sync)
return;
}
if (sna->kgem.has_semaphores) {
DBG(("%s: have sempahores, prefering RENDER\n", __FUNCTION__));
kgem_set_mode(&sna->kgem, KGEM_RENDER);
return;
}
VG_CLEAR(busy);
busy.handle = src->handle;
if (drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_GEM_BUSY, &busy))