ac/surface/gfx6: Don't force a tile index for fmask.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 21 May 2018 13:43:19 +0000 (15:43 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 23 May 2018 00:23:03 +0000 (02:23 +0200)
commit047438287c4ddb77a6affed08da2f19bd5949b4d
tree6695c4ba0e1b9b32dd64a47fadc5a7553d696f6f
parenta347a5a12c2ed98c5959ab2da9ec4c0fcd365aeb
ac/surface/gfx6: Don't force a tile index for fmask.

The bpe of the fmask often differs from the bpe of the main
surface. On SI that means it has to get a different tile
index.

addrlib is capable of figuring this out itself, so just pass
-1 instead to let it know that it is not preset.

Fixes: 9bf3570fed0 "ac/surface/gfx6: compute FMASK together with the color surface"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106511
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106499
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_surface.c