aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2019-01-09 12:42:28 +0100
committerNicolai Hähnle <[email protected]>2019-03-26 10:00:55 +0100
commite16ac33f374bb23e4f2e9a2cb87261e0939ab0c7 (patch)
tree462fb7850b59e31274ed02053fcf88c55f913aae
parent82075e3c421b1de7661e61879f2dcbc66011e466 (diff)
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 <[email protected]>
-rw-r--r--src/amd/common/ac_surface.c2
1 files changed, 2 insertions, 0 deletions
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)