diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2010-01-25 12:27:47 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2010-01-25 12:27:47 +0100 |
commit | 6877c5de3c3ff39da514a74928ea270138cddff9 (patch) | |
tree | f23cfbbb4f7893819d9474c761799fa13fd581c3 /src/gallium/winsys | |
parent | 0b482c4fbe69a807bb69bf92f37e362f818c664d (diff) |
vmware/xorg: Do buffer round-robin logic differently
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/drm/vmware/xorg/vmw_video.c | 3 |
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 b065b96346..ff3b992d07 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; } |