Hi Ben,

On 1 December 2016 at 22:09, Ben Widawsky <benjamin.widaw...@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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to