st/dri: track if image is created by a dmabuf
[mesa.git] / src / gallium / state_trackers / dri / dri2.c
index 490c4b16f031c94fb210efc5fb81313452ebc563..54a05c916f1ce4b6ce21a262f5dd6133e4970815 100644 (file)
@@ -938,6 +938,7 @@ dri2_create_image_from_fd(__DRIscreen *_screen,
    img->dri_components = map->dri_components;
    img->dri_fourcc = fourcc;
    img->dri_format = map->dri_format;
+   img->imported_dmabuf = TRUE;
 
 exit:
    if (error)