summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-04-22 09:03:21 -0700
committerEric Anholt <eric@anholt.net>2009-04-22 09:07:12 -0700
commit7b01aa5cc41620da5bb48f391ff98d9e82572e52 (patch)
tree3f0c8f033119d0fd28509c743638277ef8c4bfc2
parentceb3a2eaf9090d67e4dfcbed188125108ceab78d (diff)
Revert "fix overflow warning on videoRam"
This reverts commit 08ebde4715b87867184d42b60762cd774e151f5c, which was apparently untested and broke KMS.
-rw-r--r--src/i830_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 2249a990..276132e7 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3000,7 +3000,7 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
if (pI830->use_drm_mode) {
#ifdef XF86DRM_MODE
pI830->stolen_size = 0;
- pScrn->videoRam = INT_MAX / KB(1);
+ pScrn->videoRam = ~0UL / KB(1);
#endif
} else {
I830AdjustMemory(pScreen);