Skip to content

Commit 395fa52

Browse files
mmereckiigcbot
authored andcommitted
Use Logical SSID in WMTP-enabled shader stages
Refactor `CShader::GetHWTID()` to use Logical SSID in WMTP-enabled shader stages.
1 parent 246be8e commit 395fa52

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

IGC/AdaptorOCL/DriverInfoOCL.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ namespace TC
6868

6969
bool EnableLSCForLdRawAndStoreRawOnDG2() const override { return true; }
7070

71-
bool supportsLogicalSSIDInHWTID() const override { return true; }
72-
7371
bool supportLscSamplerRouting() const override { return false; }
7472
};
7573

IGC/Compiler/CISACodeGen/CShader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@ CVariable* CShader::GetHWTID()
953953
if ((m_Platform->getPlatformInfo().eProductFamily == IGFX_BMG) ||
954954
(m_Platform->getPlatformInfo().eProductFamily == IGFX_LUNARLAKE))
955955
{
956-
if (m_DriverInfo->supportsLogicalSSIDInHWTID())
956+
if (m_Platform->supportsWMTPForShaderType(m_ctx->type))
957957
{
958958

959959
m_HW_TID = GetNewVariable(1, ISA_TYPE_UD, EALIGN_DWORD, true, 1, "HWTID");

IGC/Compiler/CISACodeGen/DriverInfo.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,6 @@ namespace IGC
376376
virtual unsigned getCSSIMD16_SpillThreshold() const { return IGC_GET_FLAG_VALUE(CSSIMD16_SpillThreshold); }
377377
virtual unsigned getCSSIMD32_SpillThreshold() const { return IGC_GET_FLAG_VALUE(CSSIMD32_SpillThreshold); }
378378

379-
// Informs if it supports to use a logical SSID from msg0.0 instead of a physical ID from sr0
380-
virtual bool supportsLogicalSSIDInHWTID() const { return false; }
381-
382379
virtual bool supportLscSamplerRouting() const { return true; }
383380
protected:
384381
bool autoGRFSelection = false;

0 commit comments

Comments
 (0)