aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Clark <rob@ti.com>2011-10-26 10:39:15 -0500
committerRob Clark <rob@ti.com>2012-01-13 10:08:53 -0600
commit7c73aae165dcfc53ed87075379672c732785cdc9 (patch)
tree3226d4ac2beccea3f4d7fdd2d397b652b5761bc6
parent8ea325fd5d0eeac29eab0b90cc648b44d065829b (diff)
fix potential modeset crash
-rw-r--r--src/drmmode_display.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 51ccf22..b388452 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -368,8 +368,10 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
// Fixme - Intel puts a call to set GEM sizes here; do we need to do
// something like that?
- if (pScrn->pScreen)
- xf86_reload_cursors(pScrn->pScreen);
+// TODO: only call this if we are not using sw cursor.. ie. bad to call this
+// if we haven't called xf86InitCursor()!!
+// if (pScrn->pScreen)
+// xf86_reload_cursors(pScrn->pScreen);
done:
if (output_ids) {