mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
Debug flag to force stateless mocs encryption bit
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
878d646772
commit
6175a3e785
@@ -38,6 +38,12 @@ uint32_t GmmHelper::getMOCS(uint32_t type) const {
|
||||
return static_cast<uint32_t>(mocs.DwordValue);
|
||||
}
|
||||
|
||||
void GmmHelper::applyMocsEncryptionBit(uint32_t &index) {
|
||||
if (DebugManager.flags.ForceStatelessMocsEncryptionBit.get() == 1) {
|
||||
index |= 1;
|
||||
}
|
||||
}
|
||||
|
||||
GmmHelper::GmmHelper(OSInterface *osInterface, const HardwareInfo *pHwInfo) : hwInfo(pHwInfo) {
|
||||
auto hwInfoAddressWidth = Math::log2(hwInfo->capabilityTable.gpuAddressSpace + 1);
|
||||
addressWidth = std::max(hwInfoAddressWidth, 48u);
|
||||
|
||||
@@ -22,6 +22,7 @@ class GmmHelper {
|
||||
|
||||
const HardwareInfo *getHardwareInfo();
|
||||
uint32_t getMOCS(uint32_t type) const;
|
||||
static void applyMocsEncryptionBit(uint32_t &index);
|
||||
void forceAllResourcesUncached() { allResourcesUncached = true; };
|
||||
|
||||
static constexpr uint64_t maxPossiblePitch = (1ull << 31);
|
||||
|
||||
Reference in New Issue
Block a user