Mesa (master): svga: Tag cursors with the scanout hint
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Wed Nov 2 15:33:45 UTC 2011
Module: Mesa
Branch: master
Commit: 292c21bfdcb901d96b6c8f81afc771d1c0f41ee9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=292c21bfdcb901d96b6c8f81afc771d1c0f41ee9
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Tue Nov 1 05:10:17 2011 +0100
svga: Tag cursors with the scanout hint
Signed-off-by: Jakob Bornecrantz <jakob at vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom at vmware.com>
---
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 c8cb4f9..697c1d3 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
More information about the mesa-commit
mailing list