summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2014-08-08 21:37:38 +0200
committerJakob Bornecrantz <jakob@vmware.com>2014-08-11 19:08:03 +0200
commit0a212afefd8670a1823c9b6474de8bf26d33bdeb (patch)
tree956f2dcf7b0f95abf650281319ba106053cedf9f
parent0a596fd0c92fdcf73071869a59029263a2596018 (diff)
vmware/legacy: Fix uninitialized values in video commands
Fixed bug where video stopped working on systems that didn't have the new kms enabled kernel driver installed. Found on CentOS 6.4. After updating the register header SVGA_VIDEO_NUM_REGS value got upped by two in order to support GMR and Screen Objects. Since this path is mostly used on older hosts that may not support them, don't send them at all. Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--src/vmwarevideo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vmwarevideo.c b/src/vmwarevideo.c
index a82110d..261e579 100644
--- a/src/vmwarevideo.c
+++ b/src/vmwarevideo.c
@@ -794,7 +794,8 @@ vmwareVideoPlay(ScrnInfoPtr pScrn, VMWAREVideoPtr pVid,
struct PACKED _body {
uint32 escape;
uint32 streamId;
- struct _item items[SVGA_VIDEO_NUM_REGS];
+ /* Old hosts can not handle more then these regs */
+ struct _item items[SVGA_VIDEO_DATA_GMRID];
};
struct PACKED _cmdSetRegs {