diff options
-rw-r--r-- | src/sna/sna_dri.c | 8 |
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; |