From: Jakob Bornecrantz Date: Sat, 6 Feb 2010 00:29:47 +0000 (+0100) Subject: vmware/core: Use correct flags in scanout code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a4cd124af9175832e506888e504d9195bf614b7;p=mesa.git vmware/core: Use correct flags in scanout code --- 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 f2de2c333ff..5d81fa8c4a6 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;