[Mesa-dev] [PATCH 09/27] gbm: Introduce modifiers into surface/bo creation

Daniel Stone daniel at fooishbar.org
Fri Dec 2 09:38:24 UTC 2016


Hi Ben,

On 1 December 2016 at 22:09, Ben Widawsky <benjamin.widawsky at intel.com> wrote:
> @@ -996,13 +997,22 @@ gbm_dri_bo_create(struct gbm_device *gbm,
>     dri_use |= __DRI_IMAGE_USE_SHARE;
>
>     bo->image =
> -      dri->image->createImage(dri->screen,
> -                              width, height,
> -                              dri_format, dri_use,
> -                              bo);
> +      dri->image->createImageWithModifiers(dri->screen,
> +                                           width, height,
> +                                           dri_format, dri_use,
> +                                           modifiers, count,
> +                                           bo);
>     if (bo->image == NULL)
>        goto failed;
>
> +   bo->base.base.modifiers = calloc(count, sizeof(*modifiers));
> +   if (!bo->base.base.modifiers) {

if (count && ...)

Cheers,
Daniel


More information about the mesa-dev mailing list