summaryrefslogtreecommitdiffstats
path: root/src/gbm/backends
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2018-11-08 09:57:32 -0800
committerEric Anholt <[email protected]>2018-11-12 15:20:23 -0800
commitee7f848c000112a98e9614f42921b176be473792 (patch)
treeaeecb528e97e82f5bb2e28f3e3552cd2ce914763 /src/gbm/backends
parent4eab98b66e7dc495f26ac3b0e356e405c0796b74 (diff)
gbm: Move gbm_format_canonicalize() to the core.
I want it for the format name debugging code. Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/gbm/backends')
-rw-r--r--src/gbm/backends/dri/gbm_dri.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c
index 35ec3a1c3a2..f32c0cd9885 100644
--- a/src/gbm/backends/dri/gbm_dri.c
+++ b/src/gbm/backends/dri/gbm_dri.c
@@ -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)
{