drm/radeon: stop using dma_resv_excl_fence
Instead use the new dma_resv_get_singleton function. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: amd-gfx@lists.freedesktop.org Link: https://patchwork.freedesktop.org/patch/msgid/20220321135856.1331-8-christian.koenig@amd.com
This commit is contained in:
parent
2029a6d028
commit
9b53fddf3f
1 changed files with 6 additions and 1 deletions
|
@ -533,7 +533,12 @@ static int radeon_crtc_page_flip_target(struct drm_crtc *crtc,
|
|||
DRM_ERROR("failed to pin new rbo buffer before flip\n");
|
||||
goto cleanup;
|
||||
}
|
||||
work->fence = dma_fence_get(dma_resv_excl_fence(new_rbo->tbo.base.resv));
|
||||
r = dma_resv_get_singleton(new_rbo->tbo.base.resv, false, &work->fence);
|
||||
if (r) {
|
||||
radeon_bo_unreserve(new_rbo);
|
||||
DRM_ERROR("failed to get new rbo buffer fences\n");
|
||||
goto cleanup;
|
||||
}
|
||||
radeon_bo_get_tiling_flags(new_rbo, &tiling_flags, NULL);
|
||||
radeon_bo_unreserve(new_rbo);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue