mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-17 20:00:20 +01:00
i965: track if image is created by a dmabuf
Will be used by EXT_EGL_image_storage later. Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
bf576772ab
commit
34fe560cd6
2 changed files with 2 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ struct __DRIimageRec {
|
|||
GLuint tile_x;
|
||||
GLuint tile_y;
|
||||
bool has_depthstencil;
|
||||
bool imported_dmabuf;
|
||||
|
||||
/** Offset of the auxiliary compression surface in the bo. */
|
||||
uint32_t aux_offset;
|
||||
|
|
|
|||
|
|
@ -1277,6 +1277,7 @@ intel_create_image_from_dma_bufs2(__DRIscreen *dri_screen,
|
|||
image->sample_range = sample_range;
|
||||
image->horizontal_siting = horizontal_siting;
|
||||
image->vertical_siting = vertical_siting;
|
||||
image->imported_dmabuf = true;
|
||||
|
||||
*error = __DRI_IMAGE_ERROR_SUCCESS;
|
||||
return image;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue