glamor: Check large pixmap users in glamor_largepixmap.c

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@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
Keith Packard 2014-08-19 12:52:05 -07:00
parent 5fc3e99f53
commit b2452311bd

View File

@ -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;
}