[PATCH 5/5] glamor: Check large pixmap users in glamor_largepixmap.c

Keith Packard keithp at keithp.com
Tue Aug 19 13:00:13 PDT 2014


This enables the assertion that all users of the large pixmap member
are restricted to pixmaps which are actually large.

Signed-off-by: Keith Packard <keithp at keithp.com>
---
 glamor/glamor_largepixmap.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/glamor/glamor_largepixmap.c b/glamor/glamor_largepixmap.c
index ce38809..9b24584 100644
--- a/glamor/glamor_largepixmap.c
+++ b/glamor/glamor_largepixmap.c
@@ -4,9 +4,7 @@
 
 static inline glamor_pixmap_private_large_t *
 __glamor_large(glamor_pixmap_private *pixmap_priv) {
-#if 0
     assert(pixmap_priv->type == GLAMOR_TEXTURE_LARGE);
-#endif
     return &pixmap_priv->large;
 }
 
-- 
2.0.1



More information about the xorg-devel mailing list