diff options
author | Jakob Bornecrantz <[email protected]> | 2011-11-01 05:10:17 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2011-11-02 16:22:57 +0100 |
commit | 292c21bfdcb901d96b6c8f81afc771d1c0f41ee9 (patch) | |
tree | ad89b320ce2cc4c2b94c28c90f90f95a5a2e7a44 /src | |
parent | 8b65c33eb8a26c14df11462caea3044eda7b6349 (diff) |
svga: Tag cursors with the scanout hint
Signed-off-by: Jakob Bornecrantz <[email protected]>
Reviewed-by: Thomas Hellstrom <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index c8cb4f9b3b8..697c1d3c5e3 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -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 |