summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2008-08-12 13:52:35 -0400
committerDave Airlie <airlied@redhat.com>2008-08-14 09:19:03 +1000
commitb486ed7f7d89528c94f2345040324946f6eadc81 (patch)
tree0d008b5b4699151a0cf4fce533c2df5a985c7a23 /shared-core
parent8867eca8721a02135f4b0e65a454d5e05141eee3 (diff)
Get legacy working finally
- extra ~ in RADEON_WRITE_P() - re-arrange crtc setup a bit - add debugging for tracing calls - fix pitch calculation
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/radeon_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h
index fb266093..2b8d7f6e 100644
--- a/shared-core/radeon_drv.h
+++ b/shared-core/radeon_drv.h
@@ -1283,7 +1283,7 @@ extern void RADEON_WRITE_PLL(struct drm_radeon_private *dev_priv, int addr, uint
#define RADEON_WRITE_P(reg, val, mask) \
do { \
uint32_t tmp = RADEON_READ(reg); \
- tmp &= ~(mask); \
+ tmp &= (mask); \
tmp |= ((val) & ~(mask)); \
RADEON_WRITE(reg, tmp); \
} while(0)