mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
Refactor: Change decanonize method accessing point
Accessing decanonize method as a member of GmmHelper class object Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
7bb3bcbc05
commit
2fcda0a528
@ -16,8 +16,10 @@ void EncodeSurfaceState<Family>::setClearColorParams(R_SURFACE_STATE *surfaceSta
|
||||
if (gmm->gmmResourceInfo->getResourceFlags()->Gpu.IndirectClearColor) {
|
||||
surfaceState->setClearValueAddressEnable(true);
|
||||
|
||||
uint64_t clearColorAddress = gmm->getGmmHelper()->decanonize(surfaceState->getSurfaceBaseAddress() +
|
||||
gmm->gmmResourceInfo->getUnifiedAuxSurfaceOffset(GMM_UNIFIED_AUX_TYPE::GMM_AUX_CC));
|
||||
auto gmmHelper = gmm->getGmmHelper();
|
||||
uint64_t clearColorAddress = gmmHelper->decanonize(surfaceState->getSurfaceBaseAddress() +
|
||||
gmm->gmmResourceInfo->getUnifiedAuxSurfaceOffset(GMM_UNIFIED_AUX_TYPE::GMM_AUX_CC));
|
||||
|
||||
surfaceState->setClearColorAddress(static_cast<uint32_t>(clearColorAddress & 0xFFFFFFFFULL));
|
||||
surfaceState->setClearColorAddressHigh(static_cast<uint32_t>(clearColorAddress >> 32));
|
||||
}
|
||||
|
Reference in New Issue
Block a user