summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-08-22 10:10:33 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-08-22 12:59:02 +0100
commit5aa59ce7c012eb309c4f5a362ccf531c065bd7ff (patch)
treefa0abc7d2a23f1f5f1431867c7e8aed33bb935e1
parent273765033223024ff6a662195e0e4b96f8960463 (diff)
sna: Assert that the CPU bo is not used if the GPU is clear
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index ba8c93d5..9731a0a3 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -2561,6 +2561,7 @@ use_gpu_bo:
return priv->gpu_bo;
use_cpu_bo:
+ assert(!priv->clear);
if (priv->cpu_bo == NULL)
return NULL;