summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvor Hewitt <ivor@ivor.org>2008-07-18 15:37:31 +0000
committerIvor Hewitt <ivor@ivor.org>2008-07-18 15:37:31 +0000
commitdc2ac2194022500e3efb32b0bda98bc8dcf090dc (patch)
tree1c2f54898fa81a43b4df755ff0ff3b8c56f25be4
parentcd70bf9f4ef724b4316c65b9ce3e94da6d4dc98a (diff)
Minor compilation fix
-rw-r--r--src/via_accel.c75
-rw-r--r--src/via_memory.c2
2 files changed, 40 insertions, 37 deletions
diff --git a/src/via_accel.c b/src/via_accel.c
index 1de2c53bb80d..3b485d14c2b4 100644
--- a/src/via_accel.c
+++ b/src/via_accel.c
@@ -1200,6 +1200,44 @@ viaAccelWaitMarker(ScreenPtr pScreen, int marker)
}
}
+/*
+ * Check if we need to force upload of the whole 3D state (when other
+ * clients or subsystems have touched the 3D engine). Also tell DRI
+ * clients and subsystems that we have touched the 3D engine.
+ */
+static Bool
+viaCheckUpload(ScrnInfoPtr pScrn, Via3DState * v3d)
+{
+ VIAPtr pVia = VIAPTR(pScrn);
+ Bool forceUpload;
+
+ forceUpload = (pVia->lastToUpload != v3d);
+ pVia->lastToUpload = v3d;
+
+#ifdef XF86DRI
+ if (pVia->directRenderingEnabled) {
+ volatile drm_via_sarea_t *saPriv = (drm_via_sarea_t *)
+ DRIGetSAREAPrivate(pScrn->pScreen);
+ int myContext = DRIGetContext(pScrn->pScreen);
+
+ forceUpload = forceUpload || (saPriv->ctxOwner != myContext);
+ saPriv->ctxOwner = myContext;
+ }
+#endif
+ return forceUpload;
+}
+
+static Bool
+viaOrder(CARD32 val, CARD32 * shift)
+{
+ *shift = 0;
+
+ while (val > (1 << *shift))
+ (*shift)++;
+ return (val == (1 << *shift));
+}
+
+
#ifdef VIA_HAVE_EXA
/*
* Exa functions. It is assumed that EXA does not exceed the blitter limits.
@@ -1473,43 +1511,6 @@ viaExpandablePixel(int format)
formatType == PICT_TYPE_ABGR || formatType == PICT_TYPE_ARGB);
}
-/*
- * Check if we need to force upload of the whole 3D state (when other
- * clients or subsystems have touched the 3D engine). Also tell DRI
- * clients and subsystems that we have touched the 3D engine.
- */
-static Bool
-viaCheckUpload(ScrnInfoPtr pScrn, Via3DState * v3d)
-{
- VIAPtr pVia = VIAPTR(pScrn);
- Bool forceUpload;
-
- forceUpload = (pVia->lastToUpload != v3d);
- pVia->lastToUpload = v3d;
-
-#ifdef XF86DRI
- if (pVia->directRenderingEnabled) {
- volatile drm_via_sarea_t *saPriv = (drm_via_sarea_t *)
- DRIGetSAREAPrivate(pScrn->pScreen);
- int myContext = DRIGetContext(pScrn->pScreen);
-
- forceUpload = forceUpload || (saPriv->ctxOwner != myContext);
- saPriv->ctxOwner = myContext;
- }
-#endif
- return forceUpload;
-}
-
-static Bool
-viaOrder(CARD32 val, CARD32 * shift)
-{
- *shift = 0;
-
- while (val > (1 << *shift))
- (*shift)++;
- return (val == (1 << *shift));
-}
-
#ifdef XF86DRI
static int
diff --git a/src/via_memory.c b/src/via_memory.c
index 3fc7982f7e0a..553545d0377d 100644
--- a/src/via_memory.c
+++ b/src/via_memory.c
@@ -52,6 +52,7 @@
* 2 - DRM
*/
+#ifdef VIA_HAVE_EXA
static void
viaExaFBSave(ScreenPtr pScreen, ExaOffscreenArea * exa)
{
@@ -60,6 +61,7 @@ viaExaFBSave(ScreenPtr pScreen, ExaOffscreenArea * exa)
"\t\thttp://wiki.openchrome.org/tikiwiki/tiki-index"
".php?page=EXAAcceleration .\n");
}
+#endif
void
VIAFreeLinear(VIAMemPtr mem)