summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Deucher <alex@botch2.(none)>2007-12-12 20:12:06 -0500
committerAlex Deucher <alex@botch2.(none)>2007-12-12 20:12:06 -0500
commit6ccf5b33d27218ae1c45ab93c122438ed536d8ba (patch)
tree8d9372fc3aefab377372824a92a9c6c1c3d92171
parent1668f2056f56370f1b5681c13f1e14904e301216 (diff)
RADEON: only enable vblanks if we want them
should fix bug 13610
-rw-r--r--src/radeon_dri.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_dri.c b/src/radeon_dri.c
index 7136e4e..618334e 100644
--- a/src/radeon_dri.c
+++ b/src/radeon_dri.c
@@ -1361,6 +1361,9 @@ Bool RADEONDRISetVBlankInterrupt(ScrnInfoPtr pScrn, Bool on)
xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn);
int value = 0;
+ if (!info->want_vblank_interrupts)
+ on = FALSE;
+
if (info->directRenderingEnabled && info->pKernelDRMVersion->version_minor >= 28) {
if (on) {
if (xf86_config->num_crtc > 1 && xf86_config->crtc[1]->enabled)