Skip to content

Commit ee48299

Browse files
jgu222igcbot
authored andcommitted
Need to initialize all field of gtsysteminfo field of CPlatform
1 parent f1624b5 commit ee48299

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

IGC/AdaptorOCL/dllInterfaceCompute.cpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ IN THE SOFTWARE.
5151
#include "common/shaderOverride.hpp"
5252

5353
#include "CLElfLib/ElfReader.h"
54-
#include "usc.h"
5554

5655
#if defined(IGC_VC_ENABLED)
5756
#include "common/LLVMWarningsPush.hpp"
@@ -256,21 +255,7 @@ bool CIGCTranslationBlock::Translate(
256255

257256
IGC::CPlatform IGCPlatform(m_Platform);
258257

259-
SUscGTSystemInfo gtSystemInfo = { 0 };
260-
gtSystemInfo.EUCount = m_SysInfo.EUCount;
261-
gtSystemInfo.ThreadCount = m_SysInfo.ThreadCount;
262-
gtSystemInfo.SliceCount = m_SysInfo.SliceCount;
263-
gtSystemInfo.SubSliceCount = m_SysInfo.SubSliceCount;
264-
gtSystemInfo.IsDynamicallyPopulated = m_SysInfo.IsDynamicallyPopulated;
265-
gtSystemInfo.TotalVsThreads = m_SysInfo.TotalVsThreads;
266-
gtSystemInfo.TotalPsThreadsWindowerRange = m_SysInfo.TotalPsThreadsWindowerRange;
267-
gtSystemInfo.TotalDsThreads = m_SysInfo.TotalDsThreads;
268-
gtSystemInfo.TotalGsThreads = m_SysInfo.TotalGsThreads;
269-
gtSystemInfo.TotalHsThreads = m_SysInfo.TotalHsThreads;
270-
gtSystemInfo.MaxEuPerSubSlice = m_SysInfo.MaxEuPerSubSlice;
271-
gtSystemInfo.EuCountPerPoolMax = m_SysInfo.EuCountPerPoolMax;
272-
273-
IGC::SetGTSystemInfo(&gtSystemInfo, &IGCPlatform);
258+
IGC::SetGTSystemInfo(&m_SysInfo, &IGCPlatform);
274259
IGC::SetWorkaroundTable(&m_SkuTable, &IGCPlatform);
275260
IGC::SetCompilerCaps(&m_SkuTable, &IGCPlatform);
276261

0 commit comments

Comments
 (0)