aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-11-13 00:29:33 +0100
committerMarek Olšák <[email protected]>2012-11-13 15:00:37 +0100
commitc9e530922357d52ab1e517b1f0d4aa076abd3737 (patch)
tree87ba7d3073660c06afd066a7146fe5e16752964e /src/gallium/drivers/r600
parentac4f61b232024c7c83b81a9119a4637ed592c4a1 (diff)
r600g: use LINEAR_ALIGNED tiling for 1D textures
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600')
-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 b1dbf07dffa..7e48f2766a7 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;