summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEgbert Eich <eich@freedesktop.org>2013-07-29 13:02:21 +0200
committerTormod Volden <debian.tormod@gmail.com>2013-10-25 19:46:20 +0200
commita77b9c5143591672fbe56f4428ced439c1f4d0f3 (patch)
tree0217b76bfd6ecab04cf901984187ca42e744519f
parentdba8778b9214dc3794198029fc6d59b3e97700d4 (diff)
Disable HW cursor by default on G200 server chips
Disable HW cursor by default on G200 server chips as these chips a re often used with a remote graphics link which cannot display the HW cursor. This can be overridden by a config option. Most desktops today use ARGB cursors anyhow which are not supported by this driver anyhow. Thus the performance penalty should be irrelevant. Signed-off-by: Egbert Eich <eich@freedesktop.org>
-rw-r--r--src/mga_driver.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 0e0e6a2..5603836 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -1679,7 +1679,27 @@ MGAPreInit(ScrnInfoPtr pScrn, int flags)
}
}
- pMga->HWCursor = TRUE;
+ /*
+ * Disable HW cursor by default on G200 server chips as these
+ * chips are often used with a remote graphics link which cannot
+ * display the HW cursor.
+ */
+ switch (pMga->Chipset) {
+ case PCI_CHIP_MGAG200_SE_A_PCI:
+ case PCI_CHIP_MGAG200_SE_B_PCI:
+ case PCI_CHIP_MGAG200_EV_PCI:
+ case PCI_CHIP_MGAG200_ER_PCI:
+ case PCI_CHIP_MGAG200_WINBOND_PCI:
+ case PCI_CHIP_MGAG200_EH_PCI:
+ pMga->HWCursor = FALSE;
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "HW cursor is not supported with video redirection on"
+ "G200 server chips.\n If you don't intend to use video "
+ "redirection enable with Option \"HWCursor\" \"On\"\n");
+ break;
+ default:
+ pMga->HWCursor = TRUE;
+ }
from = X_DEFAULT;
/*