static bool vrend_resource_has_24bpp_internal_format(struct vrend_resource *res)
{
   /* Some shared resources imported to guest mesa as EGL images occupy 24bpp instead of more common 32bpp. */
   return (has_bit(res->storage_bits, VREND_STORAGE_EGL_IMAGE) &&
           (res->base.format == VIRGL_FORMAT_B8G8R8X8_UNORM ||
            res->base.format == VIRGL_FORMAT_R8G8B8X8_UNORM));
}
static bool vrend_resource_has_24bpp_internal_format(struct vrend_resource *res)
{
    
   return (has_bit(res->storage_bits, VREND_STORAGE_EGL_IMAGE) &&
           (res->base.format == VIRGL_FORMAT_B8G8R8X8_UNORM ||
            res->base.format == VIRGL_FORMAT_R8G8B8X8_UNORM));
}