summaryrefslogtreecommitdiff
path: root/hw/xfree86/modes/xf86Crtc.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-30 11:40:19 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2009-10-01 11:02:25 +1000
commitdb98b26ee145f70e732e2cf4a6ac3de77fdf4adc (patch)
tree5a4f2718d8cc84713889a9c66308571df598bf8a /hw/xfree86/modes/xf86Crtc.h
parent873467adad479be02cd9cc6b43685919f5612d91 (diff)
Re-fix DGA removal.
Removing DGA ended up breaking any drivers calling into the old xf86DiDGAInit function as it tried to see if DGA was already enabled and ended up crashing if the VT wasn't completely initialized. Oops. Also, if the driver initializes DGA itself, have the DiDGA initialization overwrite that information as the DiDGA code will call ReInit on mode detect. Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'hw/xfree86/modes/xf86Crtc.h')
-rw-r--r--hw/xfree86/modes/xf86Crtc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/xfree86/modes/xf86Crtc.h b/hw/xfree86/modes/xf86Crtc.h
index 69afaa5d1..9baa956a3 100644
--- a/hw/xfree86/modes/xf86Crtc.h
+++ b/hw/xfree86/modes/xf86Crtc.h
@@ -833,6 +833,10 @@ xf86OutputGetEDID (xf86OutputPtr output, I2CBusPtr pDDCBus);
extern _X_EXPORT Bool
xf86DiDGAInit (ScreenPtr pScreen, unsigned long dga_address);
+/* this is the real function, used only internally */
+_X_INTERNAL Bool
+_xf86_di_dga_init_internal (ScreenPtr pScreen);
+
/**
* Re-initialize dga for this screen (as when the set of modes changes)
*/
@@ -841,6 +845,10 @@ extern _X_EXPORT Bool
xf86DiDGAReInit (ScreenPtr pScreen);
#endif
+/* This is the real function, used only internally */
+_X_INTERNAL Bool
+_xf86_di_dga_reinit_internal (ScreenPtr pScreen);
+
/*
* Set the subpixel order reported for the screen using
* the information from the outputs