ac/surface: Allow S swizzle for displayable surfaces.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 11 Apr 2018 00:10:29 +0000 (02:10 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 12 Apr 2018 19:24:55 +0000 (21:24 +0200)
commit7eff8d7d3564f67b3165ec4120d9840580d5eb5a
tree2bc6afc4304c9784b1eef13defb0df1a9a953408
parent7bc77dbb00a1032f79620751b934929eb0b25c66
ac/surface: Allow S swizzle for displayable surfaces.

For dcn1 && < 64 bpp displayable surfaces, addrlib only accepts
S swizzles.

At the same time addrlib prefers D swizzles is allowed, so we can
just allow S swizzles as fallback.

Fixes: b64b712558 "ac/surface/gfx9: request desired micro tile mode explicitly"
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_surface.c