diff options
author | Rob Clark <robdclark@gmail.com> | 2013-09-01 21:25:09 +0400 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2013-09-10 21:56:58 +0400 |
commit | bf6811f304795e7697985449ee870b29a8cbc6c7 (patch) | |
tree | 23e844ef2eb4887d6d8f939fc056ffa54b1cbcd7 /drivers/gpu/drm/msm/msm_gem.h | |
parent | 86a7e1224a68511d3a1ae0b7e11581b9d37723ae (diff) | |
download | linux-bf6811f304795e7697985449ee870b29a8cbc6c7.tar.xz |
drm/msm: handle read vs write fences
The userspace API already had everything needed to handle read vs write
synchronization. This patch actually bothers to hook it up properly, so
that we don't need to (for example) stall on userspace read access to a
buffer that gpu is also still reading.
Signed-off-by: Rob Clark <robdclark@gmail.com>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem.h')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem.h b/drivers/gpu/drm/msm/msm_gem.h index d746f13d283c..0676f32e2c6a 100644 --- a/drivers/gpu/drm/msm/msm_gem.h +++ b/drivers/gpu/drm/msm/msm_gem.h @@ -36,7 +36,7 @@ struct msm_gem_object { */ struct list_head mm_list; struct msm_gpu *gpu; /* non-null if active */ - uint32_t fence; + uint32_t read_fence, write_fence; /* Transiently in the process of submit ioctl, objects associated * with the submit are on submit->bo_list.. this only lasts for |