diff options
author | Ben Skeggs <skeggsb@nisroch.keine.ath.cx> | 2008-06-23 01:00:42 +1000 |
---|---|---|
committer | Maarten Maathuis <madman2003@gmail.com> | 2008-06-25 09:55:14 +0200 |
commit | 5a0164d1e1799b68b3131efd7b9fcaf20c578257 (patch) | |
tree | bf62bb8a33ce52ff9816d3a018b73f64d4b0160b /shared-core/nouveau_object.c | |
parent | d55629a13d0f287e186e93a4828ef86b36678eba (diff) |
nouveau: allocate drm-use vram buffers from end of vram.
This avoids seeing garbage from engine setup etc before X gets around
to pointing the CRTCs at a new scanout buffer. Not actually a noticable
problem before G80 as PRAMIN is forced to the end of VRAM by the hardware
already.
Diffstat (limited to 'shared-core/nouveau_object.c')
-rw-r--r-- | shared-core/nouveau_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/nouveau_object.c b/shared-core/nouveau_object.c index 09f9027a..5664bfc8 100644 --- a/shared-core/nouveau_object.c +++ b/shared-core/nouveau_object.c @@ -248,7 +248,7 @@ nouveau_gpuobj_new(struct drm_device *dev, struct nouveau_channel *chan, /* Allocate a chunk of the PRAMIN aperture */ gpuobj->im_pramin = nouveau_mem_alloc_block(pramin, size, drm_order(align), - (struct drm_file *)-2); + (struct drm_file *)-2, 0); if (!gpuobj->im_pramin) { nouveau_gpuobj_del(dev, &gpuobj); return -ENOMEM; |