ac/surface: enable tile swizzle for mipmapped textures
authorMarek Olšák <marek.olsak@amd.com>
Sat, 29 Jul 2017 01:15:27 +0000 (03:15 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 4 Aug 2017 00:10:04 +0000 (02:10 +0200)
commit2b7e85562ae4f700d60d9a7bbcfbf65d194f02d3
treea379a6544b94b98bf3014679692140c9ef0f45ef
parent6fb382d9fbbdb2ac20adadd7ef305f9d8f8b4cad
ac/surface: enable tile swizzle for mipmapped textures

The tile swizzle computation was done after the whole miptree was computed,
but that was too late, because at that point AddrSurfInfoOut contained
information about the smallest miplevel, which is never 2D-tiled.

The correct way is to do the computation before the second level is computed.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/amd/common/ac_surface.c