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 * For an intensity format, return the corresponding red format. For other
283 * formats, return the format as-is.
286 _mesa_get_intensity_format_red(mesa_format format)
288 switch (format) {
314 return format;
319 * If the format has an alpha channel, and there exists a non-alpha
320 * variant of the format with an identical bit layout, then return
321 * the non-alpha format. Otherwise return the original format.
333 _mesa_format_fallback_rgbx_to_rgba(mesa_format format)
335 switch (format) {
385 return format;