locking fixes (Martijn Van Oosterhout)
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 26 Jun 2006 19:59:38 +0000 (19:59 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 26 Jun 2006 19:59:38 +0000 (19:59 +0000)
src/mesa/drivers/dri/r128/r128_span.c

index a24e63c9b675dcb82799a637cdb834ec6287f40e..25e57133cc3ad7a4045bc7877e00aab84d3ee8ed 100644 (file)
@@ -123,6 +123,12 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
  * Depth buffer
  */
 
+/* These functions require locking */
+#undef HW_LOCK
+#undef HW_UNLOCK
+#define HW_LOCK()    LOCK_HARDWARE(R128_CONTEXT(ctx));
+#define HW_UNLOCK()  UNLOCK_HARDWARE(R128_CONTEXT(ctx));
+
 /* 16-bit depth buffer functions
  */