xf86-video-intel: Branch 'intel-kernelmode' - src/common.h

Jesse Barnes jbarnes at kemper.freedesktop.org
Mon May 12 16:14:07 PDT 2008


 src/common.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 3e21a3b22fb821bd360772020eae8ab60fc285b7
Author: Hong Liu <hong.liu at intel.com>
Date:   Fri May 9 10:32:27 2008 +0800

    fix G33 hw status page alloc
    
    driver can only use TTM to allocate gfx memory in drm modeset, so we have to
    setup G33 hw status page in drm kernel module.

diff --git a/src/common.h b/src/common.h
index 7100b4e..47bcf92 100644
--- a/src/common.h
+++ b/src/common.h
@@ -450,7 +450,8 @@ extern int I810_DEBUG;
 /* mark chipsets for using gfx VM offset for overlay */
 #define OVERLAY_NOPHYSICAL(pI810) (IS_G33CLASS(pI810))
 /* chipsets require graphics mem for hardware status page */
-#define HWS_NEED_GFX(pI810) (IS_G33CLASS(pI810) || IS_IGD_GM(pI810))
+#define HWS_NEED_GFX(pI810) (!pI810->use_drm_mode &&\
+			     (IS_G33CLASS(pI810) || IS_IGD_GM(pI810)))
 
 #define GTT_PAGE_SIZE			KB(4)
 #define ROUND_TO(x, y)			(((x) + (y) - 1) / (y) * (y))


More information about the xorg-commit mailing list