mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 16:45:25 +08:00
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:
committed by
Compute-Runtime-Automation
parent
4e8600d8d0
commit
027551724e
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user