I want it for the format name debugging code.
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
},
};
-/* 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)
{
{
return surf->gbm->surface_has_free_buffers(surf);
}
+
+/* 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. */
+uint32_t
+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;
+ }
+}
struct gbm_device *(*create_device)(int fd);
};
+uint32_t
+gbm_format_canonicalize(uint32_t gbm_format);
+
#endif