summaryrefslogtreecommitdiff
path: root/vmwgfx_fb.c
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2010-02-16 21:24:15 +0100
committerThomas Hellstrom <thellstrom@vmware.com>2010-02-16 21:30:16 +0100
commit95da1e8ac8b2854f46e374cefc8bd7fcd8972f62 (patch)
treeeaac27849d6e5c5f85fa5e11de57fb180a75dd19 /vmwgfx_fb.c
parent48f745f09e0542d2f05e19d6598e594ba3c81b03 (diff)
vmwgfx: Use the fb handover mechanism for kernels >= 2.6.32.
Use fb handover rather than stealth mode for kernel versions >= 2.6.32. The version is not exact and may need adjustments. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'vmwgfx_fb.c')
-rw-r--r--vmwgfx_fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vmwgfx_fb.c b/vmwgfx_fb.c
index ca6fe58..f77ba69 100644
--- a/vmwgfx_fb.c
+++ b/vmwgfx_fb.c
@@ -555,6 +555,11 @@ int vmw_fb_init(struct vmw_private *vmw_priv)
info->pixmap.scan_align = 1;
#endif
+#ifdef VMWGFX_HANDOVER
+ info->aperture_base = vmw_priv->vram_start;
+ info->aperture_size = vmw_priv->vram_size;
+#endif
+
/*
* Dirty & Deferred IO
*/