fix: override value of MaxDualSubSlicesSupported when equal 0

when kmd is not set value of MaxDualSubSlicesSupported
then set it as half of MaxSubSlicesSupported

Related-To: NEO-8397
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2023-09-27 16:41:09 +00:00
committed by Compute-Runtime-Automation
parent 4e8600d8d0
commit 027551724e
3 changed files with 29 additions and 1 deletions

View File

@@ -260,6 +260,10 @@ bool Wddm::queryAdapterInfo() {
if (status == STATUS_SUCCESS) {
memcpy_s(gtSystemInfo.get(), sizeof(GT_SYSTEM_INFO), &adapterInfo.SystemInfo, sizeof(GT_SYSTEM_INFO));
memcpy_s(gfxPlatform.get(), sizeof(PLATFORM_KMD), &adapterInfo.GfxPlatform, sizeof(PLATFORM_KMD));
if (gtSystemInfo->MaxDualSubSlicesSupported == 0) {
gtSystemInfo->MaxDualSubSlicesSupported = gtSystemInfo->MaxSubSlicesSupported / 2;
}
if (DebugManager.flags.ForceDeviceId.get() != "unk") {
gfxPlatform->usDeviceID = static_cast<unsigned short>(std::stoi(DebugManager.flags.ForceDeviceId.get(), nullptr, 16));
}