[Mesa-dev] [PATCH 1/2] i965: Fix duplication of DRI images

Jason Ekstrand jason at jlekstrand.net
Tue Sep 19 19:07:46 UTC 2017


Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

On Tue, Sep 19, 2017 at 6:40 AM, Daniel Stone <daniels at collabora.com> wrote:

> From: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
>
> Some DRI image properties weren't properly duplicated in the
> new image. Some properties are still missing, but I'm not
> certain if there was a good reason to let them out in the first
> place.
>
> Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb at collabora.com>
> Reviewed-by: Daniel Stone <daniels at collabora.com>
> Signed-off-by: Daniel Stone <daniels at collabora.com>
> ---
>  src/mesa/drivers/dri/i965/intel_screen.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/intel_screen.c
> b/src/mesa/drivers/dri/i965/intel_screen.c
> index ad081f0658..bc2bba00b6 100644
> --- a/src/mesa/drivers/dri/i965/intel_screen.c
> +++ b/src/mesa/drivers/dri/i965/intel_screen.c
> @@ -868,6 +868,9 @@ intel_dup_image(__DRIimage *orig_image, void
> *loaderPrivate)
>     image->tile_y          = orig_image->tile_y;
>     image->has_depthstencil = orig_image->has_depthstencil;
>     image->data            = loaderPrivate;
> +   image->dma_buf_imported = orig_image->dma_buf_imported;
> +   image->aux_offset      = orig_image->aux_offset;
> +   image->aux_pitch       = orig_image->aux_pitch;
>
>     memcpy(image->strides, orig_image->strides, sizeof(image->strides));
>     memcpy(image->offsets, orig_image->offsets, sizeof(image->offsets));
> --
> 2.14.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170919/25cc6d15/attachment.html>


More information about the mesa-dev mailing list