resource_pixel_format_to_bpp
if (resource_pixel_format_to_bpp(u->plane_info->format) !=
resource_pixel_format_to_bpp(u->surface->format)) {
unsigned int resource_pixel_format_to_bpp(enum surface_pixel_format format);
unsigned int bpp = resource_pixel_format_to_bpp(surf_pix_format);
unsigned int bpp = resource_pixel_format_to_bpp(surf_pix_format);