summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-04-10 00:10:56 +0200
committerMarek Olšák <maraeo@gmail.com>2010-04-10 00:20:52 +0200
commitf43c679c0be8c999a3d9c25a442c22faca5247cf (patch)
tree79913c6fa6bf79b0dd89b4fcbe5fd7101cb3f612 /src
parent5a43dbac687c63ea543035319e44ca7a0acf9ff9 (diff)
r300g: do not use tiling for scanout buffers
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r300/r300_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_texture.c b/src/gallium/drivers/r300/r300_texture.c
index 27801d68a9..2ef9ec0ec1 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);