summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2012-08-14 02:22:13 +0200
committerMarek Olšák <maraeo@gmail.com>2012-08-16 20:44:53 +0200
commit952c90576753550f4deed4dac42d8fd6129a9cce (patch)
tree855dcd646da4e1eaaffdfb3b508e6ca069a67522
parent773ff5705f3b2d88fb7094b8d2e051bb684c2323 (diff)
downloadmesa-952c90576753550f4deed4dac42d8fd6129a9cce.tar.gz
mesa-952c90576753550f4deed4dac42d8fd6129a9cce.tar.xz
mesa-952c90576753550f4deed4dac42d8fd6129a9cce.zip
r600g: always put tiled textures in VRAM
-rw-r--r--src/gallium/drivers/r600/r600_texture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index 8252da3500..7cb1d5f781 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -290,8 +290,9 @@ r600_texture_create_object(struct pipe_screen *screen,
/* Now create the backing buffer. */
if (!buf && alloc_bo) {
unsigned base_align = rtex->surface.bo_alignment;
+ unsigned usage = R600_TEX_IS_TILED(rtex, 0) ? PIPE_USAGE_STATIC : base->usage;
- if (!r600_init_resource(rscreen, resource, rtex->size, base_align, base->bind, base->usage)) {
+ if (!r600_init_resource(rscreen, resource, rtex->size, base_align, base->bind, usage)) {
FREE(rtex);
return NULL;
}