diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2010-02-06 01:29:47 +0100 |
---|---|---|
committer | Jakob Bornecrantz <jakob@vmware.com> | 2010-02-06 03:36:47 +0100 |
commit | 6a4cd124af9175832e506888e504d9195bf614b7 (patch) | |
tree | 4f954d9a577b71ac4a1a5b4292a7d9f7d78c4e8b | |
parent | 6ffb6318a05f0e6405645a155cd32e5cfbdbc2ff (diff) |
vmware/core: Use correct flags in scanout code
-rw-r--r-- | src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c | 8 |
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; |