[Intel-gfx] [PATCH 7/7] sna: add an assert in the lengthy sna_drawable_use_bo
Martin Peres
martin.peres at linux.intel.com
Fri Feb 12 16:31:29 UTC 2016
I got lost in all the changes done on priv->flush and gpu_bo enough
not to be able to guarantee that if flush is non-null, so is gpu_bo.
Caught by Klockwork.
Signed-off-by: Martin Peres <martin.peres at linux.intel.com>
---
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 f1c136a..595faa6 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -4074,6 +4074,7 @@ prefer_gpu_bo:
}
if (priv->flush) {
assert(!priv->shm);
+ assert(priv->gpu_bo);
sna_add_flush_pixmap(sna, priv, priv->gpu_bo);
}
--
2.7.1
More information about the Intel-gfx
mailing list