gallium/dri: Delete unused helper function

This isn't used since some of the DRI_IMAGE_FORMAT rework.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30245>
This commit is contained in:
Daniel Stone
2024-05-15 13:16:30 +01:00
committed by Marge Bot
parent 2ef4b6ed54
commit d62bea127d
2 changed files with 0 additions and 13 deletions
-10
View File
@@ -1129,16 +1129,6 @@ static const struct {
},
};
uint32_t
driGLFormatToImageFormat(mesa_format format)
{
for (size_t i = 0; i < ARRAY_SIZE(format_mapping); i++)
if (format_mapping[i].mesa_format == format)
return format_mapping[i].image_format;
return __DRI_IMAGE_FORMAT_NONE;
}
uint32_t
driGLFormatToSizedInternalGLFormat(mesa_format format)
{
-3
View File
@@ -122,9 +122,6 @@ driCreateContextAttribs(__DRIscreen *psp, int api,
unsigned *error,
void *data);
extern uint32_t
driGLFormatToImageFormat(mesa_format format);
extern uint32_t
driGLFormatToSizedInternalGLFormat(mesa_format format);