diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2014-11-10 11:24:27 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2014-12-02 15:37:22 +1000 |
commit | 06278f577f4097b78902b6be99b7a2f9fb430180 (patch) | |
tree | dd78f7a38d14a281c70b5197cc777a514daf3677 /drm/nv17_fence.c | |
parent | 6420c0c7712af7494cea1b72b8101695fa9bed17 (diff) | |
download | nouveau-06278f577f4097b78902b6be99b7a2f9fb430180.tar.gz |
drm: teach nouveau_bo_pin() how to force a contig vram allocation
We have the ability to move buffers around in the kernel if necessary,
and should probably use it rather than failing if userspace passes us
a non-contig buffer for a plane.
The NOUVEAU_GEM_TILE_NONCONTIG flag from userspace will become a mere
initial placement hint once all the relevant paths have been updated.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nv17_fence.c')
-rw-r--r-- | drm/nv17_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drm/nv17_fence.c b/drm/nv17_fence.c index 40b461c7d..57860cfa1 100644 --- a/drm/nv17_fence.c +++ b/drm/nv17_fence.c @@ -131,7 +131,7 @@ nv17_fence_create(struct nouveau_drm *drm) ret = nouveau_bo_new(drm->dev, 4096, 0x1000, TTM_PL_FLAG_VRAM, 0, 0x0000, NULL, NULL, &priv->bo); if (!ret) { - ret = nouveau_bo_pin(priv->bo, TTM_PL_FLAG_VRAM); + ret = nouveau_bo_pin(priv->bo, TTM_PL_FLAG_VRAM, false); if (!ret) { ret = nouveau_bo_map(priv->bo); if (ret) |