diff options
author | Ben Skeggs <skeggsb@nisroch.keine.ath.cx> | 2008-06-23 01:00:42 +1000 |
---|---|---|
committer | Ben Skeggs <skeggsb@nisroch.keine.ath.cx> | 2008-06-23 01:00:42 +1000 |
commit | b9ed0f995077f69ae806aae2e83085738ea5e651 (patch) | |
tree | 7742478af8bdfc98961c0f325530931a4c475858 /shared-core/nouveau_drm.h | |
parent | 11f2a2ed6f854e7b461a98408df54167e9b9566d (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_drm.h')
-rw-r--r-- | shared-core/nouveau_drm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shared-core/nouveau_drm.h b/shared-core/nouveau_drm.h index cf762052..bbb51bc4 100644 --- a/shared-core/nouveau_drm.h +++ b/shared-core/nouveau_drm.h @@ -88,9 +88,11 @@ struct drm_nouveau_gpuobj_free { #define NOUVEAU_MEM_INSTANCE 0x00000200 /* internal */ #define NOUVEAU_MEM_NOTIFIER 0x00000400 /* internal */ #define NOUVEAU_MEM_NOVM 0x00000800 /* internal */ +#define NOUVEAU_MEM_USER 0x00001000 /* internal */ #define NOUVEAU_MEM_INTERNAL (NOUVEAU_MEM_INSTANCE | \ NOUVEAU_MEM_NOTIFIER | \ - NOUVEAU_MEM_NOVM) + NOUVEAU_MEM_NOVM | \ + NOUVEAU_MEM_USER) struct drm_nouveau_mem_alloc { int flags; |