img->layer = 0;
img->use = 0;
img->loader_private = loaderPrivate;
- img->lowered_yuv = use_lowered;
return img;
}
img->dri_fourcc = map->dri_fourcc;
img->dri_components = 0;
img->use = use;
- img->lowered_yuv = false;
img->loader_private = loaderPrivate;
return img;
/* This should be 0 for sub images, but dup is also used for base images. */
img->dri_components = image->dri_components;
img->loader_private = loaderPrivate;
- img->lowered_yuv = image->lowered_yuv;
return img;
}
if (!image || !data || *data)
return NULL;
- if (image->lowered_yuv) {
- unsigned plane = image->plane;
- if (plane >= dri2_get_mapping_by_format(image->dri_format)->nplanes)
- return NULL;
-
- while (plane--)
- resource = resource->next;
- } else if (dri2_get_mapping_by_format(image->dri_format)->nplanes > 1)
+ unsigned plane = image->plane;
+ if (plane >= dri2_get_mapping_by_format(image->dri_format)->nplanes)
return NULL;
+ while (plane--)
+ resource = resource->next;
+
if (flags & __DRI_IMAGE_TRANSFER_READ)
pipe_access |= PIPE_TRANSFER_READ;
if (flags & __DRI_IMAGE_TRANSFER_WRITE)