From: Marek Olšák Date: Fri, 9 Apr 2010 22:10:56 +0000 (+0200) Subject: r300g: do not use tiling for scanout buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f43c679;p=mesa.git r300g: do not use tiling for scanout buffers --- diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c index 27801d68a9b..2ef9ec0ec16 100644 --- a/src/gallium/drivers/r300/r300_texture.c +++ b/src/gallium/drivers/r300/r300_texture.c @@ -801,7 +801,8 @@ static struct pipe_texture* r300_texture_create(struct pipe_screen* screen, tex->tex.screen = screen; r300_setup_flags(tex); - if (!(base->tex_usage & R300_TEXTURE_USAGE_TRANSFER)) { + if (!(base->tex_usage & R300_TEXTURE_USAGE_TRANSFER) && + !(tex->tex.tex_usage & PIPE_TEXTURE_USAGE_SCANOUT)) { r300_setup_tiling(screen, tex); } r300_setup_miptree(rscreen, tex);