Mesa (master): r300g: do not use tiling for scanout buffers
Marek Olšák
mareko at kemper.freedesktop.org
Fri Apr 9 22:24:11 UTC 2010
Module: Mesa
Branch: master
Commit: f43c679c0be8c999a3d9c25a442c22faca5247cf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f43c679c0be8c999a3d9c25a442c22faca5247cf
Author: Marek Olšák <maraeo at gmail.com>
Date: Sat Apr 10 00:10:56 2010 +0200
r300g: do not use tiling for scanout buffers
---
src/gallium/drivers/r300/r300_texture.c | 3 ++-
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 27801d6..2ef9ec0 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);
More information about the mesa-commit
mailing list