Module Name: xsrc Committed By: macallan Date: Thu Dec 8 18:09:39 UTC 2016
Modified Files: xsrc/external/mit/xf86-video-glint/dist/src: glint_driver.c Log Message: round pitch up to a multiple of 32 now oddball resolutions like 1366x768 work properly on pm3 ( the other chips enforce that anyway ) To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 \ xsrc/external/mit/xf86-video-glint/dist/src/glint_driver.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: xsrc/external/mit/xf86-video-glint/dist/src/glint_driver.c diff -u xsrc/external/mit/xf86-video-glint/dist/src/glint_driver.c:1.8 xsrc/external/mit/xf86-video-glint/dist/src/glint_driver.c:1.9 --- xsrc/external/mit/xf86-video-glint/dist/src/glint_driver.c:1.8 Fri Dec 2 22:58:26 2016 +++ xsrc/external/mit/xf86-video-glint/dist/src/glint_driver.c Thu Dec 8 18:09:39 2016 @@ -2224,6 +2224,15 @@ GLINTPreInit(ScrnInfoPtr pScrn, int flag /* set the MULTI width for software rendering */ pScrn->displayWidth = inputXSpanBytes / bytesPerPixel; + } else { + /* + * round pitch up to next multiple of 32 + * On most chips this will be enforced anyway by the pprod code, but + * not on pm3, which does seem to have some alignment requirements + * although it's not clear what exactly, so this may be too big. + * With this it works properly with a 1366x768 monitor. + */ + pScrn->displayWidth = (pScrn->displayWidth + 31) & ~31; } /* Set the current mode to the first in the list */