diff options
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
-rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index 9672b579f950..a16e8b7df120 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c | |||
@@ -158,6 +158,7 @@ static int imx_drm_atomic_commit(struct drm_device *dev, | |||
158 | struct drm_plane_state *plane_state; | 158 | struct drm_plane_state *plane_state; |
159 | struct drm_plane *plane; | 159 | struct drm_plane *plane; |
160 | struct dma_buf *dma_buf; | 160 | struct dma_buf *dma_buf; |
161 | struct dma_fence *fence; | ||
161 | int i; | 162 | int i; |
162 | 163 | ||
163 | /* | 164 | /* |
@@ -170,8 +171,9 @@ static int imx_drm_atomic_commit(struct drm_device *dev, | |||
170 | 0)->base.dma_buf; | 171 | 0)->base.dma_buf; |
171 | if (!dma_buf) | 172 | if (!dma_buf) |
172 | continue; | 173 | continue; |
173 | plane_state->fence = | 174 | fence = reservation_object_get_excl_rcu(dma_buf->resv); |
174 | reservation_object_get_excl_rcu(dma_buf->resv); | 175 | |
176 | drm_atomic_set_fence_for_plane(plane_state, fence); | ||
175 | } | 177 | } |
176 | } | 178 | } |
177 | 179 | ||