aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_gem.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-11-21 17:50:27 -0500
committerFrancisco Jerez <currojerez@riseup.net>2010-12-07 21:00:37 -0500
commit7a45d764a8e3177f0c9cd4a0be9f2ab7965e55cb (patch)
treed8be83174c23cf30c339e21ea62fca2f565cf144 /drivers/gpu/drm/nouveau/nouveau_gem.c
parenta0fd9b9f68cd7a5952eae3c5b3c5a3bc0eadfd44 (diff)
drm/nouveau: wrap calls to ttm_bo_validate()
This will be used later to fixup bo.offset with a buffer's fixed GPU virtual address. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_gem.c')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_gem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
index 9886b644f27d..0adb2a85c143 100644
--- a/drivers/gpu/drm/nouveau/nouveau_gem.c
+++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
@@ -358,8 +358,7 @@ validate_list(struct nouveau_channel *chan, struct list_head *list,
358 } 358 }
359 359
360 nvbo->channel = (b->read_domains & (1 << 31)) ? NULL : chan; 360 nvbo->channel = (b->read_domains & (1 << 31)) ? NULL : chan;
361 ret = ttm_bo_validate(&nvbo->bo, &nvbo->placement, 361 ret = nouveau_bo_validate(nvbo, true, false, false);
362 true, false, false);
363 nvbo->channel = NULL; 362 nvbo->channel = NULL;
364 if (unlikely(ret)) { 363 if (unlikely(ret)) {
365 if (ret != -ERESTARTSYS) 364 if (ret != -ERESTARTSYS)