summaryrefslogtreecommitdiff
path: root/drv_priv.h
diff options
context:
space:
mode:
authorGurchetan Singh <gurchetansingh@chromium.org>2017-10-09 17:59:47 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-10-17 23:14:19 -0700
commitc2ad63e7a5c60673cea7d96d14f7151430860e16 (patch)
tree59dd8387695615babaf7ec6e88f57cd9cf15a00c /drv_priv.h
parent8317bc0658be27b66ebf0b745533adf0214fe3a2 (diff)
minigbm: add buffer invalidation function
We may need to invalidate a buffer before reading it. Some use cases are: - DRM_IOCTL_I915_GEM_SET_DOMAIN - DMA_BUF_IOCTL_SYNC with the SYNC_START option - DRM_IOCTL_VIRTGPU_TRANSFER_FROM_HOST This patch adds the function hook. BUG=chromium:764871 TEST=compiles Change-Id: I85811407252b859a12294381c65ff3545424636b Reviewed-on: https://chromium-review.googlesource.com/710322 Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org> Tested-by: Gurchetan Singh <gurchetansingh@chromium.org> Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Diffstat (limited to 'drv_priv.h')
-rw-r--r--drv_priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drv_priv.h b/drv_priv.h
index a195e0e..8978e8d 100644
--- a/drv_priv.h
+++ b/drv_priv.h
@@ -77,6 +77,7 @@ struct backend {
int (*bo_import)(struct bo *bo, struct drv_import_fd_data *data);
void *(*bo_map)(struct bo *bo, struct map_info *data, size_t plane, uint32_t map_flags);
int (*bo_unmap)(struct bo *bo, struct map_info *data);
+ int (*bo_invalidate)(struct bo *bo, struct map_info *data);
int (*bo_flush)(struct bo *bo, struct map_info *data);
uint32_t (*resolve_format)(uint32_t format, uint64_t use_flags);
};