sna: Assert that the CPU bo is not used if the GPU is clear

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-08-22 10:10:33 +01:00
parent 2737650332
commit 5aa59ce7c0
1 changed files with 1 additions and 0 deletions

View File

@ -2561,6 +2561,7 @@ use_gpu_bo:
return priv->gpu_bo;
use_cpu_bo:
assert(!priv->clear);
if (priv->cpu_bo == NULL)
return NULL;