wok-next rev 20954
Patch xorg-xf86-video-s3virge
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Sep 03 08:26:01 2018 +0300 (2018-09-03) |
parents | 02b674913611 |
children | 701a4b1784b6 |
files | xorg-xf86-video-s3virge/stuff/patches/check-max-value.patch xorg-xf86-video-s3virge/stuff/patches/series |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xorg-xf86-video-s3virge/stuff/patches/check-max-value.patch Mon Sep 03 08:26:01 2018 +0300 1.3 @@ -0,0 +1,24 @@ 1.4 +--- a/src/s3v_driver.c 1.5 ++++ b/src/s3v_driver.c 1.6 +@@ -1212,8 +1212,6 @@ 1.7 + /* todo - The virge limit is 2048 vertical & horizontal */ 1.8 + /* pixels, not clock register settings. */ 1.9 + /* true for all ViRGE? */ 1.10 +- pScrn->maxHValue = 2048; 1.11 +- pScrn->maxVValue = 2048; 1.12 + 1.13 + /* Lower depths default to config file */ 1.14 + pScrn->virtualX = pScrn->display->virtualX; 1.15 +@@ -2566,6 +2564,12 @@ 1.16 + if ((pScrn->bitsPerPixel + 7)/8 * mode->HDisplay > 4095) 1.17 + return MODE_VIRTUAL_X; 1.18 + 1.19 ++ if (mode->HTotal > 2048) 1.20 ++ return MODE_BAD_HVALUE; 1.21 ++ 1.22 ++ if (mode->VTotal > 2048) 1.23 ++ return MODE_BAD_VVALUE; 1.24 ++ 1.25 + return MODE_OK; 1.26 + } 1.27 +