Mesa (master): i965: track if image is created by a dmabuf

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jan 13 23:19:00 UTC 2020


Module: Mesa
Branch: master
Commit: 34fe560cd6ddbaf320da2adac452c8d6cdd9b8c0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=34fe560cd6ddbaf320da2adac452c8d6cdd9b8c0

Author: Gurchetan Singh <gurchetansingh at chromium.org>
Date:   Wed Aug 21 15:07:28 2019 -0700

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 at intel.com>

---

 src/mesa/drivers/dri/i965/intel_image.h  | 1 +
 src/mesa/drivers/dri/i965/intel_screen.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/intel_image.h b/src/mesa/drivers/dri/i965/intel_image.h
index 4ab8a49b8bb..961b2712360 100644
--- a/src/mesa/drivers/dri/i965/intel_image.h
+++ b/src/mesa/drivers/dri/i965/intel_image.h
@@ -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;
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c
index 64f1d888442..7bb2e195d62 100644
--- a/src/mesa/drivers/dri/i965/intel_screen.c
+++ b/src/mesa/drivers/dri/i965/intel_screen.c
@@ -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;



More information about the mesa-commit mailing list