aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2011-11-01 05:10:17 +0100
committerJakob Bornecrantz <[email protected]>2011-11-02 16:22:57 +0100
commit292c21bfdcb901d96b6c8f81afc771d1c0f41ee9 (patch)
treead89b320ce2cc4c2b94c28c90f90f95a5a2e7a44 /src/gallium
parent8b65c33eb8a26c14df11462caea3044eda7b6349 (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/gallium')
-rw-r--r--src/gallium/drivers/svga/svga_resource_texture.c5
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