svga: Tag cursors with the scanout hint
authorJakob Bornecrantz <jakob@vmware.com>
Tue, 1 Nov 2011 04:10:17 +0000 (05:10 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Wed, 2 Nov 2011 15:22:57 +0000 (16:22 +0100)
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c

index c8cb4f9..697c1d3 100644 (file)
@@ -460,11 +460,12 @@ svga_texture_create(struct pipe_screen *screen,
       tex->key.cachable = 0;
    }
 
-   if (template->bind & PIPE_BIND_SCANOUT) {
+   if (template->bind & (PIPE_BIND_SCANOUT |
+                         PIPE_BIND_CURSOR)) {
       tex->key.flags |= SVGA3D_SURFACE_HINT_SCANOUT;
       tex->key.cachable = 0;
    }
-   
+
    /* 
     * XXX: Never pass the SVGA3D_SURFACE_HINT_RENDERTARGET hint. Mesa cannot
     * know beforehand whether a texture will be used as a rendertarget or not