r600g: use LINEAR_ALIGNED tiling for 1D textures

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Marek Olšák 2012-11-13 00:29:33 +01:00
parent ac4f61b232
commit c9e5309223
1 changed files with 2 additions and 1 deletions

View File

@ -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;