Lines Matching defs:format
29 * For an sRGB format, return the corresponding linear color space format.
30 * For non-sRGB formats, return the format as-is.
33 _mesa_get_srgb_format_linear(mesa_format format)
35 switch (format) {
127 return format;
132 * For a linear format, return the corresponding sRGB color space format.
133 * For an sRGB format, return the format as-is.
134 * Assert-fails if the format is not sRGB and does not have an sRGB equivalent.
137 _mesa_get_linear_format_srgb(mesa_format format)
139 switch (format) {
275 return format;
277 unreachable("Given format does not have an sRGB equivalent");
282 * If the format has an alpha channel, and there exists a non-alpha
283 * variant of the format with an identical bit layout, then return
284 * the non-alpha format. Otherwise return the original format.
296 _mesa_format_fallback_rgbx_to_rgba(mesa_format format)
298 switch (format) {
350 return format;