mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
i965: Fix duplication of DRI images
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@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
704ddbcdf6
commit
4b41361894
1 changed files with 3 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue