[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#373949: [PATCH] Possible fix (added locking)



Attached is a patch which I can confirm fixes the issue on my machine.

Unfortunatly, my mail to mesa3d-dev appears to have vanished into the
ether so I will resend it there to see I can get some feedback.

Have a nice day,
-- 
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.
diff -ur Mesa-6.4.2/src/mesa/drivers/dri/r128/r128_span.c mesa-6.4.2/src/mesa/drivers/dri/r128/r128_span.c
--- Mesa-6.4.2/src/mesa/drivers/dri/r128/r128_span.c	2005-07-01 02:08:52.000000000 +0200
+++ mesa-6.4.2/src/mesa/drivers/dri/r128/r128_span.c	2006-06-19 15:18:38.000000000 +0200
@@ -111,6 +111,12 @@
  * 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
  */
 

Reply to: