[Intel-gfx] [patch xf86-video-intel] sna: fix --enable-debug=full

Alexei Podtelezhnikov apodtele at gmail.com
Thu Apr 16 03:56:11 UTC 2020


From: Alexei Podtelezhnikov <apotele at gmail.com>

Once a typo is fixed, the debug build triggers an assertion failure.
Given that the normal build is just fine, the assert might be wrong.

Signed-off-by: Alexei Podtelezhnikov <apotele at gmail.com>
---
 src/sna/compiler.h  | 2 +-
 src/sna/sna_accel.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sna/compiler.h b/src/sna/compiler.h
index 2e579b15..c3d98797 100644
--- a/src/sna/compiler.h
+++ b/src/sna/compiler.h
@@ -50,7 +50,7 @@
 #define must_check
 #define constant
 #define pure
-#define tighly_packed
+#define tightly_packed
 #define flatten
 #define nonnull
 #define page_aligned
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index ee857a14..bf1edec8 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -17410,7 +17410,7 @@ void sna_accel_flush(struct sna *sna)
 			assert(!priv->flush);
 			ret = sna_pixmap_move_to_cpu(priv->pixmap,
 						     MOVE_READ | MOVE_WRITE);
-			assert(!ret || priv->gpu_bo == NULL);
+			assert(ret || priv->gpu_bo == NULL);
 			if (priv->pixmap->refcnt == 0) {
 				sna_damage_destroy(&priv->cpu_damage);
 				__sna_free_pixmap(sna, priv->pixmap, priv);
--
2.26


More information about the Intel-gfx mailing list