From: Jakob Bornecrantz Date: Tue, 1 Nov 2011 04:10:17 +0000 (+0100) Subject: svga: Tag cursors with the scanout hint X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=292c21bfdcb901d96b6c8f81afc771d1c0f41ee9;p=mesa.git svga: Tag cursors with the scanout hint Signed-off-by: Jakob Bornecrantz Reviewed-by: Thomas Hellstrom --- 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