Mesa (master): dri: drop DRI_VALIDATE macros

George Sapountzis gsap7 at kemper.freedesktop.org
Fri Nov 4 21:34:21 UTC 2011


Module: Mesa
Branch: master
Commit: 721669d078afcf8f73e14bf2cf77889ad617e71e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=721669d078afcf8f73e14bf2cf77889ad617e71e

Author: George Sapountzis <gsapountzis at gmail.com>
Date:   Wed Nov  2 18:01:01 2011 +0200

dri: drop DRI_VALIDATE macros

---

 src/gallium/winsys/g3dvl/dri/driclient.h |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)

diff --git a/src/gallium/winsys/g3dvl/dri/driclient.h b/src/gallium/winsys/g3dvl/dri/driclient.h
index 4e4fd36..271fd11 100644
--- a/src/gallium/winsys/g3dvl/dri/driclient.h
+++ b/src/gallium/winsys/g3dvl/dri/driclient.h
@@ -72,30 +72,6 @@ int driDestroyDrawable(dri_drawable_t *dri_drawable);
 int driCreateContext(dri_screen_t *dri_screen, Visual *visual, dri_context_t **dri_context);
 int driDestroyContext(dri_context_t *dri_context);
 
-#define DRI_VALIDATE_DRAWABLE_INFO_ONCE(dri_drawable)					\
-do											\
-{											\
-	if (*(dri_drawable->sarea_stamp) != dri_drawable->last_sarea_stamp)		\
-		driUpdateDrawableInfo(dri_drawable);					\
-} while (0)
-
-#define DRI_VALIDATE_DRAWABLE_INFO(dri_screen, dri_drawable)					\
-do												\
-{												\
-	while (*(dri_drawable->sarea_stamp) != dri_drawable->last_sarea_stamp)			\
-	{											\
-		register unsigned int hwContext = dri_screen->sarea->lock.lock &		\
-		~(DRM_LOCK_HELD | DRM_LOCK_CONT);						\
-		DRM_UNLOCK(dri_screen->fd, &dri_screen->sarea->lock, hwContext);		\
-												\
-		DRM_SPINLOCK(&dri_screen->sarea->drawable_lock, dri_screen->draw_lock_id);	\
-		DRI_VALIDATE_DRAWABLE_INFO_ONCE(dri_drawable);					\
-		DRM_SPINUNLOCK(&dri_screen->sarea->drawable_lock, dri_screen->draw_lock_id);	\
-												\
-		DRM_LIGHT_LOCK(dri_screen->fd, &dri_screen->sarea->lock, hwContext);		\
-	}											\
-} while (0)
-
 int dri2CreateScreen(Display *display, int screen, dri_screen_t **dri_screen);
 int dri2DestroyScreen(dri_screen_t *dri_screen);
 int dri2CreateDrawable(dri_screen_t *dri_screen, XID drawable);




More information about the mesa-commit mailing list