freedreno/a6xx: Pick blitter swap based on resource tiling
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 26 Nov 2019 05:50:57 +0000 (21:50 -0800)
committerKristian H. Kristensen <hoegsberg@google.com>
Thu, 19 Dec 2019 17:56:05 +0000 (09:56 -0800)
commite0ebaa819df33de74f73f42e17536f4f2dc5446a
treeb3ff13e03db6a82036c6b4adc28d029ea09b6071
parentb59222640e9f5787feba9119100861cd6eca51e9
freedreno/a6xx: Pick blitter swap based on resource tiling

The linear levels in a tiled resource are stored in the canonical
swap, WZYX.  We need to pick the swap based on whether or not the
resource is tiled, not whether the the level in question is tiled.

Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2848>
src/gallium/drivers/freedreno/a6xx/fd6_blitter.c