Mesa (master): amd/surface: provide firstMipIdInTail for metadata surface calculations

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 26 09:02:42 UTC 2019


Module: Mesa
Branch: master
Commit: e16ac33f374bb23e4f2e9a2cb87261e0939ab0c7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e16ac33f374bb23e4f2e9a2cb87261e0939ab0c7

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Wed Jan  9 12:42:28 2019 +0100

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 <marek.olsak at amd.com>

---

 src/amd/common/ac_surface.c | 2 ++
 1 file changed, 2 insertions(+)

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)




More information about the mesa-commit mailing list