Skip to content

Commit e3d52da

Browse files
harshaduntwaleZuul
authored andcommitted
Internal Change
Change-Id: I673e3c347c046ab70eb5f26ddc89196ed82aaf1c
1 parent 5b73371 commit e3d52da

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

IGC/Compiler/CISACodeGen/CISABuilder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3766,7 +3766,7 @@ namespace IGC
37663766
}
37673767
}
37683768

3769-
if (IGC_IS_FLAG_ENABLED(ShaderDebugHashCodeInKernel))
3769+
if (context->m_DriverInfo.EnableShaderDebugHashCodeInKernel() || IGC_IS_FLAG_ENABLED(ShaderDebugHashCodeInKernel))
37703770
{
37713771
QWORD AssemblyHash = { 0 };
37723772
AssemblyHash = context->hash.getAsmHash();

IGC/Compiler/CISACodeGen/DriverInfo.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@ namespace IGC
273273
/// Check if integer mad is enabled
274274
virtual bool EnableIntegerMad() const { return false; }
275275

276+
/// add shader hash code after EOT for debug purposes
277+
virtual bool EnableShaderDebugHashCodeInKernel() const { return false; }
278+
276279

277280
};
278281

0 commit comments

Comments
 (0)