From 9632f91ee8a5b8cee53e0d41dda7b7cfe7209aa5 Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Wed, 24 Jul 2024 13:51:55 +0000 Subject: [PATCH] fix: don't override eu count to zero Related-To: NEO-12012 Signed-off-by: Mateusz Jablonski --- shared/source/os_interface/linux/product_helper_drm.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shared/source/os_interface/linux/product_helper_drm.cpp b/shared/source/os_interface/linux/product_helper_drm.cpp index 9602e2c867..25ed4b2147 100644 --- a/shared/source/os_interface/linux/product_helper_drm.cpp +++ b/shared/source/os_interface/linux/product_helper_drm.cpp @@ -106,7 +106,9 @@ int ProductHelper::configureHwInfoDrm(const HardwareInfo *inHwInfo, HardwareInfo gtSystemInfo->SliceCount = static_cast(topologyData.sliceCount); gtSystemInfo->SubSliceCount = static_cast(topologyData.subSliceCount); gtSystemInfo->DualSubSliceCount = static_cast(topologyData.subSliceCount); - gtSystemInfo->EUCount = static_cast(topologyData.euCount); + if (topologyData.euCount) { + gtSystemInfo->EUCount = static_cast(topologyData.euCount); + } gtSystemInfo->ThreadCount = numThreadsPerEu * gtSystemInfo->EUCount; gtSystemInfo->MaxEuPerSubSlice = gtSystemInfo->MaxEuPerSubSlice != 0 ? gtSystemInfo->MaxEuPerSubSlice : topologyData.maxEusPerSubSlice;