summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm/vmware
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2010-02-06 01:29:47 +0100
committerJakob Bornecrantz <jakob@vmware.com>2010-02-06 03:36:47 +0100
commit6a4cd124af9175832e506888e504d9195bf614b7 (patch)
tree4f954d9a577b71ac4a1a5b4292a7d9f7d78c4e8b /src/gallium/winsys/drm/vmware
parent6ffb6318a05f0e6405645a155cd32e5cfbdbc2ff (diff)
vmware/core: Use correct flags in scanout code
Diffstat (limited to 'src/gallium/winsys/drm/vmware')
-rw-r--r--src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c b/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c
index f2de2c333f..5d81fa8c4a 100644
--- a/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c
+++ b/src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c
@@ -176,12 +176,12 @@ vmw_ioctl_surface_create(struct vmw_winsys_screen *vws,
memset(&s_arg, 0, sizeof(s_arg));
if (vws->use_old_scanout_flag &&
- (req->flags & SVGA3D_SURFACE_HINT_SCANOUT)) {
- req->flags = (uint32_t) (flags & ~SVGA3D_SURFACE_HINT_SCANOUT);
+ (flags & SVGA3D_SURFACE_HINT_SCANOUT)) {
+ req->flags = (uint32_t) flags;
req->scanout = false;
- } else if (req->flags & SVGA3D_SURFACE_HINT_SCANOUT) {
+ } else if (flags & SVGA3D_SURFACE_HINT_SCANOUT) {
req->flags = (uint32_t) (flags & ~SVGA3D_SURFACE_HINT_SCANOUT);
- req->scanout = false;
+ req->scanout = true;
} else {
req->flags = (uint32_t) flags;
req->scanout = false;