#define DBG 0
#define LOCAL_VARS \
+ mgaContextPtr mmesa = MGA_CONTEXT(ctx); \
__DRIdrawablePrivate *dPriv = mmesa->mesa_drawable; \
mgaScreenPrivate *mgaScreen = mmesa->mgaScreen; \
__DRIscreenPrivate *sPriv = mmesa->driScreen; \
#define LOCAL_DEPTH_VARS \
+ mgaContextPtr mmesa = MGA_CONTEXT(ctx); \
__DRIdrawablePrivate *dPriv = mmesa->mesa_drawable; \
mgaScreenPrivate *mgaScreen = mmesa->mgaScreen; \
__DRIscreenPrivate *sPriv = mmesa->driScreen; \
}
-#define HW_LOCK() \
- mgaContextPtr mmesa = MGA_CONTEXT(ctx); \
- FLUSH_BATCH(mmesa); \
- LOCK_HARDWARE_QUIESCENT(mmesa);
-
+#define HW_LOCK()
#define HW_CLIPLOOP() \
do { \
} \
} while (0)
-#define HW_UNLOCK() \
- UNLOCK_HARDWARE(mmesa);
-
-
+#define HW_UNLOCK()
? mmesa->driDrawable : mmesa->driReadable;
}
+void mgaSpanRenderStart( GLcontext *ctx )
+{
+ mgaContextPtr mmesa = MGA_CONTEXT(ctx);
+ FLUSH_BATCH( mmesa );
+ LOCK_HARDWARE_QUIESCENT( mmesa );
+}
+
+void mgaSpanRenderFinish( GLcontext *ctx )
+{
+ mgaContextPtr mmesa = MGA_CONTEXT(ctx);
+ _swrast_flush( ctx );
+ UNLOCK_HARDWARE( mmesa );
+}
+
/**
* Initialize the driver callbacks for the read / write span functions.
*
#endif
break;
}
+ swdd->SpanRenderStart = mgaSpanRenderStart;
+ swdd->SpanRenderFinish = mgaSpanRenderFinish;
}
-
/**
* Plug in the Get/Put routines for the given driRenderbuffer.
*/