aboutsummaryrefslogtreecommitdiff
path: root/shared-core/radeon_drv.h
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-07-06 09:50:50 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-07-06 09:50:50 +0200
commit5b726b63906419ccb3de2e065f9bf7ae875ccdf3 (patch)
tree878856fa98b298073bd38c5ef31fa6985e1307b4 /shared-core/radeon_drv.h
parent7f2a1cf2753c0c97b1290469a15322f7549f78ae (diff)
radeon: Improve vblank counter.
The frame counter seems to increase only at the end of vertical blank, so we need to add 1 while in vertical blank.
Diffstat (limited to 'shared-core/radeon_drv.h')
-rw-r--r--shared-core/radeon_drv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/shared-core/radeon_drv.h b/shared-core/radeon_drv.h
index bb69c106..418b6e78 100644
--- a/shared-core/radeon_drv.h
+++ b/shared-core/radeon_drv.h
@@ -512,6 +512,9 @@ extern int r300_do_cp_cmdbuf(drm_device_t *dev, DRMFILE filp,
#define RADEON_CRTC_CRNT_FRAME 0x0214
#define RADEON_CRTC2_CRNT_FRAME 0x0314
+#define RADEON_CRTC_STATUS 0x005c
+#define RADEON_CRTC2_STATUS 0x03fc
+
#define RADEON_GEN_INT_CNTL 0x0040
# define RADEON_CRTC_VBLANK_MASK (1 << 0)
# define RADEON_CRTC2_VBLANK_MASK (1 << 9)