diff options
author | Eric Anholt <eric@anholt.net> | 2017-04-12 12:11:58 -0700 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2017-05-27 13:48:26 -0400 |
commit | 43523eba79bda8f5b4c27f8ffe20ea078d20113a (patch) | |
tree | 2901b946f356d7bdd15a0036c826365eb405170a /drivers/gpu/drm/msm/msm_drv.c | |
parent | 134ccada7ac59156761ce05afd1c0b1d02ebd928 (diff) | |
download | op-kernel-dev-43523eba79bda8f5b4c27f8ffe20ea078d20113a.zip op-kernel-dev-43523eba79bda8f5b4c27f8ffe20ea078d20113a.tar.gz |
drm/msm: Expose our reservation object when exporting a dmabuf.
Without this, polling on the dma-buf (and presumably other devices
synchronizing against our rendering) would return immediately, even
while the BO was busy.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Cc: Rob Clark <robdclark@gmail.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_drv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 87b5695..9d498eb 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -830,6 +830,7 @@ static struct drm_driver msm_driver = { .prime_fd_to_handle = drm_gem_prime_fd_to_handle, .gem_prime_export = drm_gem_prime_export, .gem_prime_import = drm_gem_prime_import, + .gem_prime_res_obj = msm_gem_prime_res_obj, .gem_prime_pin = msm_gem_prime_pin, .gem_prime_unpin = msm_gem_prime_unpin, .gem_prime_get_sg_table = msm_gem_prime_get_sg_table, |