diff options
author | Matthieu Herrb <matthieu@deville.herrb.com> | 2007-05-31 22:23:57 -0600 |
---|---|---|
committer | Matthieu Herrb <matthieu@deville.herrb.com> | 2007-05-31 22:24:44 -0600 |
commit | 802804461ebdca9a951e7e562ec68fd08d8eae01 (patch) | |
tree | 5c7debe2ca071108f26e8a9e8a2141b8cfba06ea /src/radeon_crtc.c | |
parent | 0e0946e0aa2527794e07473199e851bbfbc47cb1 (diff) |
Fix build whithout XF86DRI
Diffstat (limited to 'src/radeon_crtc.c')
-rw-r--r-- | src/radeon_crtc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 79ab578..bee05e2 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -255,8 +255,10 @@ RADEONInitCrtcRegisters(xf86CrtcPtr crtc, RADEONSavePtr save, : 0)); save->crtc_offset = pScrn->fbOffset; +#ifdef XF86DRI if (info->allowPageFlip) save->crtc_offset_cntl = RADEON_CRTC_OFFSET_FLIP_CNTL; +#endif if (info->tilingEnabled) { if (IS_R300_VARIANT) @@ -443,8 +445,10 @@ RADEONInitCrtc2Registers(xf86CrtcPtr crtc, RADEONSavePtr save, /* It seems all fancy options apart from pflip can be safely disabled */ save->crtc2_offset = pScrn->fbOffset; +#ifdef XF86DRI if (info->allowPageFlip) save->crtc2_offset_cntl = RADEON_CRTC_OFFSET_FLIP_CNTL; +#endif if (info->tilingEnabled) { if (IS_R300_VARIANT) |