diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2011-07-04 15:39:02 +0200 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2011-07-05 20:19:03 +0200 |
commit | 4ae8aac35b7209576eaeb64347470d3145b27832 (patch) | |
tree | a63068488601f085897408e392dd69b6055403e0 /src/vmware.c | |
parent | 0142bb8d10edb153c9ce79a2ea3ff92a7fb15ac5 (diff) |
vmwlegacy: Fix server termination due to pitch inconsistency.
Don't require a 32*32 bit pitch alignment when validating modes, since the
requested virtual pitch (pVMWARE->maxWidth*bpp) must be a multiple of that
alignment. If not, the server will terminate with a cryptic error message.
This is only for validating modes. The driver will adjust the pitch to the
host requirement when a mode is set anyway, and hopefully the host won't
require a pitch it doesn't support.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'src/vmware.c')
-rw-r--r-- | src/vmware.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vmware.c b/src/vmware.c index 4158732..1be0990 100644 --- a/src/vmware.c +++ b/src/vmware.c @@ -970,7 +970,8 @@ VMWAREPreInit(ScrnInfoPtr pScrn, int flags) } i = xf86ValidateModes(pScrn, pScrn->monitor->Modes, pScrn->display->modes, - clockRanges, NULL, 256, pVMWARE->maxWidth, 32 * 32, + clockRanges, NULL, 256, pVMWARE->maxWidth, + pVMWARE->bitsPerPixel * 1, 128, pVMWARE->maxHeight, pScrn->display->virtualX, pScrn->display->virtualY, pVMWARE->videoRam, |