summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glamor/glamor_utils.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/glamor/glamor_utils.h b/glamor/glamor_utils.h
index a923b7a9d..81820069e 100644
--- a/glamor/glamor_utils.h
+++ b/glamor/glamor_utils.h
@@ -805,16 +805,7 @@ gl_iformat_for_pixmap(PixmapPtr pixmap)
static inline CARD32
format_for_pixmap(PixmapPtr pixmap)
{
- glamor_pixmap_private *pixmap_priv;
- PictFormatShort pict_format;
-
- pixmap_priv = glamor_get_pixmap_private(pixmap);
- if (GLAMOR_PIXMAP_PRIV_IS_PICTURE(pixmap_priv))
- pict_format = pixmap_priv->picture->format;
- else
- pict_format = format_for_depth((pixmap)->drawable.depth);
-
- return pict_format;
+ return format_for_depth((pixmap)->drawable.depth);
}
#define REVERT_NONE 0