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:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user