summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nouveau_gem.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2010-11-22 08:50:27 +1000
committerFrancisco Jerez <currojerez@riseup.net>2010-12-08 03:00:37 +0100
commit7a45d764a8e3177f0c9cd4a0be9f2ab7965e55cb (patch)
treed8be83174c23cf30c339e21ea62fca2f565cf144 /drivers/gpu/drm/nouveau/nouveau_gem.c
parenta0fd9b9f68cd7a5952eae3c5b3c5a3bc0eadfd44 (diff)
downloadop-kernel-dev-7a45d764a8e3177f0c9cd4a0be9f2ab7965e55cb.zip
op-kernel-dev-7a45d764a8e3177f0c9cd4a0be9f2ab7965e55cb.tar.gz
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 9886b64..0adb2a8 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,
}
nvbo->channel = (b->read_domains & (1 << 31)) ? NULL : chan;
- ret = ttm_bo_validate(&nvbo->bo, &nvbo->placement,
- true, false, false);
+ ret = nouveau_bo_validate(nvbo, true, false, false);
nvbo->channel = NULL;
if (unlikely(ret)) {
if (ret != -ERESTARTSYS)
OpenPOWER on IntegriCloud