aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_gem.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
index ead7b8fc53fc..1e630987543e 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -364,7 +364,7 @@ validate_list(struct nouveau_channel *chan, struct list_head *list,
364 list_for_each_entry(nvbo, list, entry) { 364 list_for_each_entry(nvbo, list, entry) {
365 struct drm_nouveau_gem_pushbuf_bo *b = &pbbo[nvbo->pbbo_index]; 365 struct drm_nouveau_gem_pushbuf_bo *b = &pbbo[nvbo->pbbo_index];
366 366
367 ret = nouveau_bo_sync_gpu(nvbo, chan); 367 ret = nouveau_fence_sync(nvbo->bo.sync_obj, chan);
368 if (unlikely(ret)) { 368 if (unlikely(ret)) {
369 NV_ERROR(dev, "fail pre-validate sync\n"); 369 NV_ERROR(dev, "fail pre-validate sync\n");
370 return ret; 370 return ret;
@@ -387,7 +387,7 @@ validate_list(struct nouveau_channel *chan, struct list_head *list,
387 return ret; 387 return ret;
388 } 388 }
389 389
390 ret = nouveau_bo_sync_gpu(nvbo, chan); 390 ret = nouveau_fence_sync(nvbo->bo.sync_obj, chan);
391 if (unlikely(ret)) { 391 if (unlikely(ret)) {
392 NV_ERROR(dev, "fail post-validate sync\n"); 392 NV_ERROR(dev, "fail post-validate sync\n");
393 return ret; 393 return ret;