mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
r600g: use LINEAR_ALIGNED tiling for 1D array textures and if height0 <= 3
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
2e6b81ff7a
commit
186579e724
1 changed files with 3 additions and 1 deletions
|
|
@ -509,7 +509,9 @@ struct pipe_resource *r600_texture_create(struct pipe_screen *screen,
|
|||
if (!(templ->bind & PIPE_BIND_SCANOUT) &&
|
||||
templ->usage != PIPE_USAGE_STAGING &&
|
||||
templ->usage != PIPE_USAGE_STREAM &&
|
||||
templ->target != PIPE_TEXTURE_1D) {
|
||||
templ->target != PIPE_TEXTURE_1D &&
|
||||
templ->target != PIPE_TEXTURE_1D_ARRAY &&
|
||||
templ->height0 > 3) {
|
||||
array_mode = V_038000_ARRAY_2D_TILED_THIN1;
|
||||
} else if (util_format_is_compressed(templ->format)) {
|
||||
array_mode = V_038000_ARRAY_1D_TILED_THIN1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue