Skip to content

Commit 9d24a19

Browse files
authored
Use GmmResGetAuxSurfaceOffset64 to get Surface Offset
1 parent 5e12695 commit 9d24a19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/GmmLib/TranslationTable/GmmPageTableMgr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ GMM_STATUS GmmLib::GmmPageTableMgr::UpdateAuxTable(const GMM_DDI_UPDATEAUXTABLE
522522
{
523523
GMM_UNIFIED_AUX_TYPE AuxType = GMM_AUX_CCS;
524524
AuxType = (UpdateReq->BaseResInfo->GetResFlags().Gpu.Depth && UpdateReq->BaseResInfo->GetResFlags().Gpu.CCS) ? GMM_AUX_ZCS : AuxType;
525-
AuxVA = UpdateReq->BaseGpuVA + GmmResGetAuxSurfaceOffset(UpdateReq->BaseResInfo, AuxType);
525+
AuxVA = UpdateReq->BaseGpuVA + GmmResGetAuxSurfaceOffset64(UpdateReq->BaseResInfo, AuxType);
526526
}
527527

528528
}
@@ -541,7 +541,7 @@ GMM_STATUS GmmLib::GmmPageTableMgr::UpdateAuxTable(const GMM_DDI_UPDATEAUXTABLE
541541
GMM_AUX_ZCS :
542542
AuxType;
543543

544-
AuxVA = UpdateReq->BaseGpuVA + GmmResGetAuxSurfaceOffset(UpdateReq->BaseResInfo, AuxType);
544+
AuxVA = UpdateReq->BaseGpuVA + GmmResGetAuxSurfaceOffset64(UpdateReq->BaseResInfo, AuxType);
545545

546546
//For UV Packed, Gen12 e2e compr supported formats have 2 planes per surface
547547
//Each has distinct Aux surface, Y-plane/UV-plane must be mapped to respective Y/UV Aux surface
@@ -555,7 +555,7 @@ GMM_STATUS GmmLib::GmmPageTableMgr::UpdateAuxTable(const GMM_DDI_UPDATEAUXTABLE
555555
UpdateReq->BaseResInfo->GetOffset(ReqInfo);
556556
YPlaneSize = ReqInfo.Render.Offset64;
557557

558-
UVAuxVA = UpdateReq->BaseGpuVA + GmmResGetAuxSurfaceOffset(UpdateReq->BaseResInfo, GMM_AUX_UV_CCS);
558+
UVAuxVA = UpdateReq->BaseGpuVA + GmmResGetAuxSurfaceOffset64(UpdateReq->BaseResInfo, GMM_AUX_UV_CCS);
559559
}
560560
}
561561

0 commit comments

Comments
 (0)