summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2008-06-12 14:04:41 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-06-12 14:04:41 +0800
commitdf0bbdc7cbb6ff357a81ed28d12e56c9c7d643f7 (patch)
treedc48c62b3b6db2a8535fcb1dc82f8b8f8ed28aa2
parentd3df74ebb0b61cda347e5e4754f2fc8a4c3110b0 (diff)
Fix compiler warning when disable xvmc config
-rw-r--r--src/i830_memory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_memory.c b/src/i830_memory.c
index 9ceb2543..ccbe7bd1 100644
--- a/src/i830_memory.c
+++ b/src/i830_memory.c
@@ -2020,6 +2020,7 @@ I830CheckAvailableMemory(ScrnInfoPtr pScrn)
return maxPages * 4;
}
+#ifdef INTEL_XVMC
/*
* Allocate memory for MC compensation
*/
@@ -2041,3 +2042,4 @@ Bool i830_allocate_xvmc_buffer(ScrnInfoPtr pScrn, const char *name,
return TRUE;
}
+#endif