xref: /OK3568_Linux_fs/buildroot/package/x11r7/xdriver_xf86-video-savage/0002-xorg-xserver120.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Fix build with modular-xorg-server-1.20
2
3Downloaded from
4http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/x11/xf86-video-savage/patches/patch-src_savage__driver.c?rev=1.3&content-type=text/x-cvsweb-markup
5
6Patch was sent upstream by Thomas Klausner <wiz@netbsd.org>:
7https://lists.x.org/archives/xorg-devel/2018-May/056952.html
8
9Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10
11--- a/src/savage_driver.c.orig	2017-01-17 22:43:40.000000000 +0000
12+++ b/src/savage_driver.c
13@@ -2034,8 +2034,10 @@ static Bool SavagePreInit(ScrnInfoPtr pS
14     xf86DrvMsg(pScrn->scrnIndex, X_PROBED, "Detected current MCLK value of %1.3f MHz\n",
15 	       mclk / 1000.0);
16
17+#if 0
18     pScrn->maxHValue = 2048 << 3;	/* 11 bits of h_total 8-pixel units */
19     pScrn->maxVValue = 2048;		/* 11 bits of v_total */
20+#endif
21     pScrn->virtualX = pScrn->display->virtualX;
22     pScrn->virtualY = pScrn->display->virtualY;
23
24