projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a43dba
)
r300g: do not use tiling for scanout buffers
author
Marek Olšák
<maraeo@gmail.com>
Fri, 9 Apr 2010 22:10:56 +0000
(
00:10
+0200)
committer
Marek Olšák
<maraeo@gmail.com>
Fri, 9 Apr 2010 22:20:52 +0000
(
00:20
+0200)
src/gallium/drivers/r300/r300_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r300/r300_texture.c
b/src/gallium/drivers/r300/r300_texture.c
index 27801d68a9b96735395aa9e5f22c3e9f8f4e181b..2ef9ec0ec169eceed631514a82ad05a44194ff06 100644
(file)
--- 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);