Mesa (master): r600g: always put tiled textures in VRAM
Marek Olšák
mareko at kemper.freedesktop.org
Thu Aug 16 19:00:40 UTC 2012
Module: Mesa
Branch: master
Commit: 952c90576753550f4deed4dac42d8fd6129a9cce
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=952c90576753550f4deed4dac42d8fd6129a9cce
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Aug 14 02:22:13 2012 +0200
r600g: always put tiled textures in VRAM
---
src/gallium/drivers/r600/r600_texture.c | 3 ++-
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 8252da3..7cb1d5f 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;
}
More information about the mesa-commit
mailing list