summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver McFadden <[email protected]>2007-05-11 22:23:31 +0000
committerOliver McFadden <[email protected]>2007-05-11 22:23:31 +0000
commitf405fbb36de167eb3294358d97e6f62a420f3bff (patch)
tree47196d0414e6e82d55af9d972fa09ba0e2cd81ab
parent5a09ea01e06a648b37eb167914fb1549e066326d (diff)
r300: Corrected some macro errors from the previous commit.
-rw-r--r--src/mesa/drivers/dri/r300/radeon_lock.h22
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_lock.h12
2 files changed, 17 insertions, 17 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_lock.h b/src/mesa/drivers/dri/r300/radeon_lock.h
index e131967e423..3c1c8c2a0de 100644
--- a/src/mesa/drivers/dri/r300/radeon_lock.h
+++ b/src/mesa/drivers/dri/r300/radeon_lock.h
@@ -100,22 +100,22 @@ extern int prevLockLine;
do { \
char __ret = 0; \
DEBUG_CHECK_LOCK(); \
- DRM_CAS(rmesa->dri.hwLock, rmesa->dri.hwContext, \
- (DRM_LOCK_HELD | rmesa->dri.hwContext), __ret); \
+ DRM_CAS((rmesa)->dri.hwLock, (rmesa)->dri.hwContext, \
+ (DRM_LOCK_HELD | (rmesa)->dri.hwContext), __ret); \
if (__ret) \
- radeonGetLock(rmesa, 0); \
+ radeonGetLock((rmesa), 0); \
DEBUG_LOCK(); \
} while (0)
#if R200_MERGED
#define UNLOCK_HARDWARE( rmesa ) \
do { \
- DRM_UNLOCK(rmesa->dri.fd, \
- rmesa->dri.hwLock, \
- rmesa->dri.hwContext); \
+ DRM_UNLOCK((rmesa)->dri.fd, \
+ (rmesa)->dri.hwLock, \
+ (rmesa)->dri.hwContext); \
DEBUG_RESET(); \
- if (IS_R200_CLASS(rmesa->radeonScreen)) { \
- r200ContextPtr __r200 = (r200ContextPtr)rmesa; \
+ if (IS_R200_CLASS((rmesa)->radeonScreen)) { \
+ r200ContextPtr __r200 = (r200ContextPtr)(rmesa); \
if (__r200->save_on_next_unlock) \
r200SaveHwState(__r200); \
__r200->save_on_next_unlock = GL_FALSE; \
@@ -124,9 +124,9 @@ extern int prevLockLine;
#else
#define UNLOCK_HARDWARErmesa \
do { \
- DRM_UNLOCK(rmesa->dri.fd, \
- rmesa->dri.hwLock, \
- rmesa->dri.hwContext); \
+ DRM_UNLOCK((rmesa)->dri.fd, \
+ (rmesa)->dri.hwLock, \
+ (rmesa)->dri.hwContext); \
DEBUG_RESET(); \
} while (0)
#endif
diff --git a/src/mesa/drivers/dri/radeon/radeon_lock.h b/src/mesa/drivers/dri/radeon/radeon_lock.h
index e793541e3f0..86e96aa7d2c 100644
--- a/src/mesa/drivers/dri/radeon/radeon_lock.h
+++ b/src/mesa/drivers/dri/radeon/radeon_lock.h
@@ -94,18 +94,18 @@ extern int prevLockLine;
do { \
char __ret = 0; \
DEBUG_CHECK_LOCK(); \
- DRM_CAS( rmesa->dri.hwLock, rmesa->dri.hwContext, \
- (DRM_LOCK_HELD | rmesa->dri.hwContext), __ret ); \
+ DRM_CAS( (rmesa)->dri.hwLock, (rmesa)->dri.hwContext, \
+ (DRM_LOCK_HELD | (rmesa)->dri.hwContext), __ret ); \
if ( __ret ) \
- radeonGetLock( rmesa, 0 ); \
+ radeonGetLock( (rmesa), 0 ); \
DEBUG_LOCK(); \
} while (0)
#define UNLOCK_HARDWARE( rmesa ) \
do { \
- DRM_UNLOCK( rmesa->dri.fd, \
- rmesa->dri.hwLock, \
- rmesa->dri.hwContext ); \
+ DRM_UNLOCK( (rmesa)->dri.fd, \
+ (rmesa)->dri.hwLock, \
+ (rmesa)->dri.hwContext ); \
DEBUG_RESET(); \
} while (0)