sna/dri2: Prefer to use normal selection criteria for CopyRegion on small GT

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2015-01-21 10:14:41 +00:00
parent b0f90a4611
commit d16ac1f30b
1 changed files with 6 additions and 0 deletions

View File

@ -837,6 +837,12 @@ static void sna_dri2_select_mode(struct sna *sna, struct kgem_bo *dst, struct kg
return;
}
if (sna->render_state.gt < 2) {
DBG(("%s: small GT [%d], not forcing selection\n",
__FUNCTION__, sna->render_state.gt));
return;
}
VG_CLEAR(busy);
busy.handle = src->handle;
if (drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_GEM_BUSY, &busy))