Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 847b6cf9 authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/ttm: fix stupid parameter inversion in the pipeline code



We want to keep the newest fence, not the oldest one.

Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 880a076c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -753,7 +753,7 @@ int ttm_bo_pipeline_move(struct ttm_buffer_object *bo,
		 */

		spin_lock(&from->move_lock);
		if (!from->move || fence_is_later(from->move, fence)) {
		if (!from->move || fence_is_later(fence, from->move)) {
			fence_put(from->move);
			from->move = fence_get(fence);
		}