mesa: Remove unused _mesa_get_linear_format_srgb
Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14220>
This commit is contained in:
parent
267f28e384
commit
69678d50d1
|
@ -101,28 +101,6 @@ _mesa_get_srgb_format_linear(mesa_format format)
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* For a linear format, return the corresponding sRGB color space format.
|
||||
* For an sRGB format, return the format as-is.
|
||||
* Assert-fails if the format is not sRGB and does not have an sRGB equivalent.
|
||||
*/
|
||||
mesa_format
|
||||
_mesa_get_linear_format_srgb(mesa_format format)
|
||||
{
|
||||
switch (format) {
|
||||
%for unorm, srgb in unorm_to_srgb_map:
|
||||
case ${unorm}:
|
||||
return ${srgb};
|
||||
%endfor
|
||||
%for unorm, srgb in unorm_to_srgb_map:
|
||||
case ${srgb}:
|
||||
%endfor
|
||||
return format;
|
||||
default:
|
||||
unreachable("Given format does not have an sRGB equivalent");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* For an intensity format, return the corresponding red format. For other
|
||||
* formats, return the format as-is.
|
||||
|
|
|
@ -722,9 +722,6 @@ _mesa_test_formats(void);
|
|||
extern mesa_format
|
||||
_mesa_get_srgb_format_linear(mesa_format format);
|
||||
|
||||
extern mesa_format
|
||||
_mesa_get_linear_format_srgb(mesa_format format);
|
||||
|
||||
extern mesa_format
|
||||
_mesa_get_intensity_format_red(mesa_format format);
|
||||
|
||||
|
|
Loading…
Reference in New Issue