summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-06-24 21:51:03 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-07-07 15:06:01 -0400
commit847b6cf9fb771341a550661ef61d510722eba785 (patch)
tree58117cdedc59e562d1d4cbc3ba01731c9435a400 /drivers/gpu/drm/ttm
parent880a076cdefe7f345d25e462cd327bea9ff81831 (diff)
downloadblackbird-op-linux-847b6cf9fb771341a550661ef61d510722eba785.tar.gz
blackbird-op-linux-847b6cf9fb771341a550661ef61d510722eba785.zip
drm/ttm: fix stupid parameter inversion in the pipeline code
We want to keep the newest fence, not the oldest one. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/ttm')
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
index 0c389a54cac1..4da0e784f9e7 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -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);
}
OpenPOWER on IntegriCloud