From: Nicolai Hähnle Date: Wed, 9 Jan 2019 11:42:28 +0000 (+0100) Subject: amd/surface: provide firstMipIdInTail for metadata surface calculations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e16ac33f374bb23e4f2e9a2cb87261e0939ab0c7;p=mesa.git amd/surface: provide firstMipIdInTail for metadata surface calculations This field was added in a recent addrlib update, and while there currently seems to be no issue with skipping it, we will have to set it correctly in the future. Reviewed-by: Marek Olšák --- diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 91004e032a3..27e63c318e6 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -1142,6 +1142,7 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib, hin.unalignedHeight = in->height; hin.numSlices = in->numSlices; hin.numMipLevels = in->numMipLevels; + hin.firstMipIdInTail = out.firstMipIdInTail; ret = Addr2ComputeHtileInfo(addrlib, &hin, &hout); if (ret != ADDR_OK) @@ -1208,6 +1209,7 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib, din.numFrags = in->numFrags; din.numMipLevels = in->numMipLevels; din.dataSurfaceSize = out.surfSize; + din.firstMipIdInTail = out.firstMipIdInTail; ret = Addr2ComputeDccInfo(addrlib, &din, &dout); if (ret != ADDR_OK)