<div dir="ltr"><div>Yes. This is the correct fix. Thanks!<br></div><div><br></div><div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></div><div><br></div><div>Marek<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 21, 2018 at 9:47 AM, Bas Nieuwenhuizen <span dir="ltr"><<a href="mailto:bas@basnieuwenhuizen.nl" target="_blank">bas@basnieuwenhuizen.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The bpe of the fmask often differs from the bpe of the main<br>
surface. On SI that means it has to get a different tile<br>
index.<br>
<br>
addrlib is capable of figuring this out itself, so just pass<br>
-1 instead to let it know that it is not preset.<br>
<br>
Fixes: 9bf3570fed0 "ac/surface/gfx6: compute FMASK together with the color surface"<br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=106511" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=106511</a><br>
Bugzilla: <a href="https://bugs.freedesktop.org/show_bug.cgi?id=106499" rel="noreferrer" target="_blank">https://bugs.freedesktop.org/<wbr>show_bug.cgi?id=106499</a><br>
---<br>
src/amd/common/ac_surface.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c<br>
index d7da9950256..b50157cdb9a 100644<br>
--- a/src/amd/common/ac_surface.c<br>
+++ b/src/amd/common/ac_surface.c<br>
@@ -868,7 +868,7 @@ static int gfx6_compute_surface(ADDR_<wbr>HANDLE addrlib,<br>
fin.numSlices = AddrSurfInfoIn.numSlices;<br>
fin.numSamples = AddrSurfInfoIn.numSamples;<br>
fin.numFrags = AddrSurfInfoIn.numFrags;<br>
- fin.tileIndex = AddrSurfInfoOut.tileIndex;<br>
+ fin.tileIndex = -1;<br>
fout.pTileInfo = &fmask_tile_info;<br>
<br>
r = AddrComputeFmaskInfo(addrlib, &fin, &fout);<br>
<span class="HOEnZb"><font color="#888888">-- <br>
2.17.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>