diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-02 15:23:03 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-02-03 09:54:25 +0000 |
commit | 4774c6b8331831e0c9f3b24f5f6e1b6ea399f628 (patch) | |
tree | 5f46fec63cae6f2854037df6af341679512e715a | |
parent | 418cd98db7c4a2886c9e310f3691eb6c77421dd7 (diff) |
sna: Add a couple of sanity checks that the CPU drawable is on the CPU
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 71d3f06b..1d2b999b 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -1070,7 +1070,8 @@ done: DBG(("%s: syncing CPU bo\n", __FUNCTION__)); kgem_bo_sync__cpu(&sna->kgem, priv->cpu_bo); } - + assert(pixmap->devPrivate.ptr); + assert(pixmap->devKind); return true; } @@ -1534,6 +1535,8 @@ out: DBG(("%s: syncing cpu bo\n", __FUNCTION__)); kgem_bo_sync__cpu(&sna->kgem, priv->cpu_bo); } + assert(pixmap->devPrivate.ptr); + assert(pixmap->devKind); return true; } |