refactor: Adjust extra aux flags init

Related-To: NEO-13051

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk 2025-05-12 07:23:46 +00:00 committed by Compute-Runtime-Automation
parent 9d31f1af08
commit 3df5230837
4 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,6 @@ Gmm::Gmm(GmmHelper *gmmHelper, const void *alignedPtr, size_t alignedSize, size_
applyAuxFlagsForBuffer(gmmRequirements.preferCompressed && !storageInfo.isLockable);
applyMemoryFlags(storageInfo);
applyAppResource(storageInfo);
applyExtraInitFlag();
applyDebugOverrides();
gmmResourceInfo.reset(GmmResourceInfo::create(gmmHelper->getClientContext(), &resourceParams));

View File

@ -52,6 +52,7 @@ class Gmm {
void queryImageParams(ImageInfo &inputOutputImgInfo);
void applyAuxFlagsForBuffer(bool preferCompression);
void applyExtraAuxInitFlag();
void applyMemoryFlags(const StorageInfo &storageInfo);
void applyAppResource(const StorageInfo &storageInfo);
@ -81,7 +82,6 @@ class Gmm {
void setupImageResourceParams(ImageInfo &imgInfo, bool preferCompressed);
bool extraMemoryFlagsRequired();
void applyExtraMemoryFlags(const StorageInfo &storageInfo);
void applyExtraInitFlag();
void applyDebugOverrides();
GmmHelper *gmmHelper = nullptr;

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2024 Intel Corporation
* Copyright (C) 2020-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -13,4 +13,4 @@ using namespace NEO;
void Gmm::applyExtraMemoryFlags(const StorageInfo &storageInfo) {}
bool Gmm::extraMemoryFlagsRequired() { return false; }
void Gmm::applyAppResource(const StorageInfo &storageInfo) {}
void Gmm::applyExtraInitFlag() {}
void Gmm::applyExtraAuxInitFlag() {}

View File

@ -15,6 +15,7 @@ void GfxCoreHelperHw<Family>::applyAdditionalCompressionSettings(Gmm &gmm, bool
gmm.resourceParams.Flags.Info.NotCompressed = isNotCompressed;
if (!isNotCompressed) {
gmm.resourceParams.Flags.Info.Cacheable = 0;
gmm.applyExtraAuxInitFlag();
}
if (debugManager.flags.PrintGmmCompressionParams.get()) {