svga: Tag cursors with the scanout hint
[mesa.git] / src / gallium / drivers / svga / svga_resource_texture.c
index c8cb4f9b3b87c03cada5e6c0e44636e44865c8b5..697c1d3c5e3e1bf635143d69889832eecb721eb1 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