vmware/core: Use correct flags in scanout code
authorJakob Bornecrantz <jakob@vmware.com>
Sat, 6 Feb 2010 00:29:47 +0000 (01:29 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Sat, 6 Feb 2010 02:36:47 +0000 (03:36 +0100)
src/gallium/winsys/drm/vmware/core/vmw_screen_ioctl.c

index f2de2c333ffa68ce631c3ead5e92f28a017df3a1..5d81fa8c4a6de223e58a39df14474dec4711a7b6 100644 (file)
@@ -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;