gbm: Move gbm_format_canonicalize() to the core.
[mesa.git] / src / gbm / backends / dri / gbm_dri.c
index 35ec3a1c3a2a1911cf4043229cf7aa7a26f0c091..f32c0cd9885f201b8f148d9f0cd2f7ca6544a753 100644 (file)
@@ -594,22 +594,6 @@ static const struct gbm_dri_visual gbm_dri_visuals_table[] = {
    },
 };
 
-/* The two GBM_BO_FORMAT_[XA]RGB8888 formats alias the GBM_FORMAT_*
- * formats of the same name. We want to accept them whenever someone
- * has a GBM format, but never return them to the user. */
-static int
-gbm_format_canonicalize(uint32_t gbm_format)
-{
-   switch (gbm_format) {
-   case GBM_BO_FORMAT_XRGB8888:
-      return GBM_FORMAT_XRGB8888;
-   case GBM_BO_FORMAT_ARGB8888:
-      return GBM_FORMAT_ARGB8888;
-   default:
-      return gbm_format;
-   }
-}
-
 static int
 gbm_format_to_dri_format(uint32_t gbm_format)
 {