summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-01-21 10:14:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-01-21 10:15:13 +0000
commitd16ac1f30bb12d4830f6ed05c161b1175e77b019 (patch)
tree4f9c9a9334174f5e5098946355f968f3a0b93da7 /src
parentb0f90a46111ada91f99e7babcc3dbba5780965b2 (diff)
sna/dri2: Prefer to use normal selection criteria for CopyRegion on small GT
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_dri2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/sna_dri2.c b/src/sna/sna_dri2.c
index a1df00c1..6b0520f8 100644
--- a/src/sna/sna_dri2.c
+++ b/src/sna/sna_dri2.c
@@ -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))