Skip to content

Commit c329596

Browse files
jgu222igcbot
authored andcommitted
When dumping active keys, ignore those dump keys.
This change should have no functional change at all.
1 parent cfc2144 commit c329596

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

IGC/AdaptorOCL/dllInterfaceCompute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -981,7 +981,7 @@ bool TranslateBuild(
981981
std::string keyvalues, optionstr;
982982
GetKeysSetExplicitly(&keyvalues, &optionstr);
983983
std::ostringstream outputstr;
984-
outputstr << "IGC keys and command line to compile:\n\n";
984+
outputstr << "IGC keys (some dump keys not shown) and command line to compile:\n\n";
985985
if (!keyvalues.empty())
986986
{
987987
outputstr << keyvalues << "\n\n";

IGC/common/igc_regkeys.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,14 @@ void GetKeysSetExplicitly(std::string* KeyValuePairs, std::string* OptionKeys)
968968
}
969969
const char* key = pRegKeyVariable[i].GetName();
970970

971-
// Ignore dump keys
971+
// Ignore some dump keys
972972
if (strcmp("ShaderDumpEnableAll", key) == 0 ||
973973
strcmp("ShaderDumpEnable", key) == 0 ||
974-
strcmp("DumpToCurrentDir", key) == 0)
974+
strcmp("DumpToCurrentDir", key) == 0 ||
975+
strcmp("EnableCosDump", key) == 0 ||
976+
strcmp("DumpToCustomDir", key) == 0 ||
977+
strcmp("EnableDxbcDump", key) == 0 ||
978+
strcmp("EnableDxAsmDump", key) == 0)
975979
{
976980
continue;
977981
}

0 commit comments

Comments
 (0)