i965: track if image is created by a dmabuf
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 21 Aug 2019 22:07:28 +0000 (15:07 -0700)
committerGurchetan Singh <gurchetansingh@chromium.org>
Mon, 13 Jan 2020 22:57:27 +0000 (14:57 -0800)
Will be used by EXT_EGL_image_storage later.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_image.h
src/mesa/drivers/dri/i965/intel_screen.c

index 4ab8a49b8bbff4d40a2ffe483aa4133e93d6e34e..961b2712360520549219252963d1ce1379e36b65 100644 (file)
@@ -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;
index 64f1d8884422b6bdf5fe8ff05087be283ecb8946..7bb2e195d6253f1de38da8b96a5c971ba326464a 100644 (file)
@@ -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;