summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/drm/vmware
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-01-25 12:27:47 +0100
committerJakob Bornecrantz <[email protected]>2010-01-25 12:27:47 +0100
commit6877c5de3c3ff39da514a74928ea270138cddff9 (patch)
treef23cfbbb4f7893819d9474c761799fa13fd581c3 /src/gallium/winsys/drm/vmware
parent0b482c4fbe69a807bb69bf92f37e362f818c664d (diff)
vmware/xorg: Do buffer round-robin logic differently
Diffstat (limited to 'src/gallium/winsys/drm/vmware')
-rw-r--r--src/gallium/winsys/drm/vmware/xorg/vmw_video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/winsys/drm/vmware/xorg/vmw_video.c b/src/gallium/winsys/drm/vmware/xorg/vmw_video.c
index b065b96346a..ff3b992d078 100644
--- a/src/gallium/winsys/drm/vmware/xorg/vmw_video.c
+++ b/src/gallium/winsys/drm/vmware/xorg/vmw_video.c
@@ -649,7 +649,8 @@ vmw_video_port_play(ScrnInfoPtr pScrn, struct vmw_video_port *port,
return XvBadAlloc;
}
- port->currBuf = ++port->currBuf & (VMWARE_VID_NUM_BUFFERS - 1);
+ if (++(port->currBuf) >= VMWARE_VID_NUM_BUFFERS)
+ port->currBuf = 0;
return Success;
}