From 6241cbd68789815affe3de35a16d1558cbe35780 Mon Sep 17 00:00:00 2001 From: Hong Liu Date: Fri, 9 May 2008 10:32:27 +0800 Subject: [PATCH] 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. --- src/common.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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)) -- 1.5.0.5