OSDN Git Service

minigbm: add buffer invalidation function
authorGurchetan Singh <gurchetansingh@chromium.org>
Tue, 10 Oct 2017 00:59:47 +0000 (17:59 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 18 Oct 2017 06:14:19 +0000 (23:14 -0700)
commitc2ad63e7a5c60673cea7d96d14f7151430860e16
tree59dd8387695615babaf7ec6e88f57cd9cf15a00c
parent8317bc0658be27b66ebf0b745533adf0214fe3a2
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>
cros_gralloc/cros_gralloc_buffer.cc
drv.c
drv.h
drv_priv.h