summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/radeon_lock.h
diff options
context:
space:
mode:
authorOliver McFadden <z3ro.geek@gmail.com>2007-05-11 22:23:31 +0000
committerOliver McFadden <z3ro.geek@gmail.com>2007-05-11 22:23:31 +0000
commitf405fbb36de167eb3294358d97e6f62a420f3bff (patch)
tree47196d0414e6e82d55af9d972fa09ba0e2cd81ab /src/mesa/drivers/dri/r300/radeon_lock.h
parent5a09ea01e06a648b37eb167914fb1549e066326d (diff)
r300: Corrected some macro errors from the previous commit.
Diffstat (limited to 'src/mesa/drivers/dri/r300/radeon_lock.h')
-rw-r--r--src/mesa/drivers/dri/r300/radeon_lock.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/mesa/drivers/dri/r300/radeon_lock.h b/src/mesa/drivers/dri/r300/radeon_lock.h
index e131967e42..3c1c8c2a0d 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