summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-11 11:40:57 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-01-11 15:59:37 +0000
commitec77a07b41f1062b941774f3782b51d21e7824dd (patch)
treef08de9984d86c05837eec547d8385ed2b3f7bd8c
parent42f1026e11527cb62b4522b44e71a4e72582a876 (diff)
sna/dri: Prefer to preserve the ring of the destination bo
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_dri.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sna/sna_dri.c b/src/sna/sna_dri.c
index f4058ccd..35457ac8 100644
--- a/src/sna/sna_dri.c
+++ b/src/sna/sna_dri.c
@@ -526,16 +526,16 @@ static void sna_dri_select_mode(struct sna *sna, struct kgem_bo *dst, struct kge
}
VG_CLEAR(busy);
- busy.handle = src->handle;
+ busy.handle = dst->handle;
if (drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_GEM_BUSY, &busy))
return;
- DBG(("%s: src busy?=%x\n", __FUNCTION__, busy.busy));
+ DBG(("%s: dst busy?=%x\n", __FUNCTION__, busy.busy));
if (busy.busy == 0) {
- busy.handle = dst->handle;
+ busy.handle = src->handle;
if (drmIoctl(sna->kgem.fd, DRM_IOCTL_I915_GEM_BUSY, &busy))
return;
- DBG(("%s: dst busy?=%x\n", __FUNCTION__, busy.busy));
+ DBG(("%s: src busy?=%x\n", __FUNCTION__, busy.busy));
if (busy.busy == 0) {
DBG(("%s: src/dst is idle, using defaults\n", __FUNCTION__));
return;