summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-07-28 13:32:35 +1000
committerDave Airlie <airlied@redhat.com>2009-07-28 13:32:35 +1000
commitd9e34c59faf63162f18dc87f599e36de024f557c (patch)
treeed004fac3d9d6a0c3ee90b8dd56142536b3124ef
parent2013e650484bd66c238a497f241c23d82361e49e (diff)
rendition: update for resources/RAC API removal
-rw-r--r--src/rendition.c4
-rw-r--r--src/rendition.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/rendition.c b/src/rendition.c
index db62f8e..7a9e18b 100644
--- a/src/rendition.c
+++ b/src/rendition.c
@@ -538,7 +538,6 @@ renditionPreInit(ScrnInfoPtr pScreenInfo, int flags)
pRendition->PciInfo = xf86GetPciInfoForEntity(pRendition->pEnt->index);
pRendition->pcitag= pciTag(pRendition->PciInfo->bus,
pRendition->PciInfo->device, pRendition->PciInfo->func);
-#endif
/*
* XXX This could be refined if some VGA memory resources are not
@@ -549,11 +548,12 @@ renditionPreInit(ScrnInfoPtr pScreenInfo, int flags)
if (xf86RegisterResources(pRendition->pEnt->index, NULL, ResExclusive))
return FALSE;
+
/* Operations for which memory access is required. */
pScreenInfo->racMemFlags = RAC_FB | RAC_CURSOR;
/* Operations for which I/O access is required. (XXX Check this) */
pScreenInfo->racIoFlags = RAC_FB | RAC_COLORMAP | RAC_CURSOR | RAC_VIEWPORT;
-
+#endif
/* determine depth, bpp, etc. */
if (!xf86SetDepthBpp(pScreenInfo, 0, 0, 0, Support32bppFb))
return FALSE;
diff --git a/src/rendition.h b/src/rendition.h
index 2b43cba..84809fa 100644
--- a/src/rendition.h
+++ b/src/rendition.h
@@ -37,11 +37,13 @@
/* All drivers using the mi colormap manipulation need this */
#include "micmap.h"
+#ifndef XSERVER_LIBPCIACCESS
/* Needed by Resources Access Control (RAC) */
#include "xf86RAC.h"
/* Several predefined resource lists */
#include "xf86Resources.h"
+#endif
/* Needed by the Shadow Framebuffer */
#include "shadowfb.h"