Mesa (master): r600g: use LINEAR_ALIGNED tiling for 1D textures
Marek Olšák
mareko at kemper.freedesktop.org
Tue Nov 13 14:02:27 UTC 2012
Module: Mesa
Branch: master
Commit: c9e530922357d52ab1e517b1f0d4aa076abd3737
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c9e530922357d52ab1e517b1f0d4aa076abd3737
Author: Marek Olšák <maraeo at gmail.com>
Date: Tue Nov 13 00:29:33 2012 +0100
r600g: use LINEAR_ALIGNED tiling for 1D textures
Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
---
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 b1dbf07..7e48f27 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -508,7 +508,8 @@ struct pipe_resource *r600_texture_create(struct pipe_screen *screen,
desc->layout != UTIL_FORMAT_LAYOUT_SUBSAMPLED) {
if (!(templ->bind & PIPE_BIND_SCANOUT) &&
templ->usage != PIPE_USAGE_STAGING &&
- templ->usage != PIPE_USAGE_STREAM) {
+ templ->usage != PIPE_USAGE_STREAM &&
+ templ->target != PIPE_TEXTURE_1D) {
array_mode = V_038000_ARRAY_2D_TILED_THIN1;
} else if (util_format_is_compressed(templ->format)) {
array_mode = V_038000_ARRAY_1D_TILED_THIN1;
More information about the mesa-commit
mailing list