diff options
author | Gurchetan Singh <gurchetansingh@chromium.org> | 2017-10-09 17:59:47 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-10-17 23:14:19 -0700 |
commit | c2ad63e7a5c60673cea7d96d14f7151430860e16 (patch) | |
tree | 59dd8387695615babaf7ec6e88f57cd9cf15a00c /drv_priv.h | |
parent | 8317bc0658be27b66ebf0b745533adf0214fe3a2 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); }; |