}
if (ctx->Color.sRGBEnabled &&
- _mesa_get_format_color_encoding(src_irb->mt->format) !=
- _mesa_get_format_color_encoding(dst_irb->mt->format)) {
+ _mesa_is_format_srgb(src_irb->mt->format) !=
+ _mesa_is_format_srgb(dst_irb->mt->format)) {
perf_debug("glBlitFramebuffer() with sRGB conversion cannot be "
"handled by BLT path.\n");
return mask;