summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Dergachev <volodya@mindspring.com>2004-10-24 18:17:36 +0000
committerVladimir Dergachev <volodya@mindspring.com>2004-10-24 18:17:36 +0000
commitac054e427c6ce8cd5b89459dd3f16ca20e6b2d6a (patch)
tree4fd24494918ecb4a01f2fbeb5ddb94fbf8e009e4
parent445ed4b9b61347c866ee67dc0cb110904d667b84 (diff)
Add registers to facilitate work with stereo 3d.
-rw-r--r--src/radeon_reg.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/radeon_reg.h b/src/radeon_reg.h
index 02c9b50e..c14b6aec 100644
--- a/src/radeon_reg.h
+++ b/src/radeon_reg.h
@@ -337,13 +337,26 @@
# define RADEON_CRTC2_H_TOTAL_SHIFT 0
# define RADEON_CRTC2_H_DISP (0x01ff << 16)
# define RADEON_CRTC2_H_DISP_SHIFT 16
+
+#define RADEON_CRTC_OFFSET_RIGHT 0x0220
#define RADEON_CRTC_OFFSET 0x0224
+# define RADEON_CRTC_OFFSET__GUI_TRIG_OFFSET (1<<30)
+# define RADEON_CRTC_OFFSET__OFFSET_LOCK (1<<31)
+
#define RADEON_CRTC2_OFFSET 0x0324
#define RADEON_CRTC_OFFSET_CNTL 0x0228
-# define RADEON_CRTC_TILE_EN (1 << 15)
+# define RADEON_CRTC_TILE_LINE_SHIFT 0
+# define RADEON_CRTC_TILE_LINE_RIGHT_SHIFT 4
+# define RADEON_CRTC_TILE_EN_RIGHT (1 << 14)
+# define RADEON_CRTC_TILE_EN (1 << 15)
+# define RADEON_CRTC_STEREO_OFFSET_EN (1 << 17)
+
#define RADEON_CRTC2_OFFSET_CNTL 0x0328
# define RADEON_CRTC2_TILE_EN (1 << 15)
#define RADEON_CRTC_PITCH 0x022c
+# define RADEON_CRTC_PITCH__SHIFT 0
+# define RADEON_CRTC_PITCH__RIGHT_SHIFT 16
+
#define RADEON_CRTC2_PITCH 0x032c
#define RADEON_CRTC_STATUS 0x005c
# define RADEON_CRTC_VBLANK_SAVE (1 << 1)