From 5aa59ce7c012eb309c4f5a362ccf531c065bd7ff Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 22 Aug 2012 10:10:33 +0100 Subject: [PATCH] sna: Assert that the CPU bo is not used if the GPU is clear Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 1 + 1 file changed, 1 insertion(+) 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;