Skip to content

Commit 216ede9

Browse files
matborzyszkowskiigcbot
authored andcommitted
Fix for DumpToCustomDir flag and logic of ShaderDumpPidDisable flag on Linux
1 parent 3e1a5fb commit 216ede9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

IGC/AdaptorCommon/customApi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,7 @@ namespace IGC
469469
if (custom_dir != nullptr && strlen(custom_dir) > 0)
470470
{
471471
dumpPath = custom_dir;
472+
dumpPath += "/";
472473
}
473474

474475
char pathBuf[256];
@@ -580,7 +581,7 @@ namespace IGC
580581
}
581582

582583
char path[MAX_PATH] = { 0 };
583-
bool pidEnabled = IGC_IS_FLAG_ENABLED(ShaderDumpPidDisable);
584+
bool pidEnabled = IGC_IS_FLAG_DISABLED(ShaderDumpPidDisable);
584585

585586
if (needMkdir)
586587
{

IGC/OCLFE/igd_fcl_mcl/source/clang_tb.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ namespace FCL
339339
FCLReadIGCRegistry("DumpToCustomDir", custom_dir, sizeof(custom_dir));
340340
if (strlen(custom_dir) > 0 && (found == std::string::npos))
341341
{
342+
strcat(custom_dir, "/");
342343
dumpPath = custom_dir;
343344
}
344345
else
@@ -421,7 +422,7 @@ namespace FCL
421422
bool needMkdir = true;
422423

423424
char path[MAX_PATH] = { 0 };
424-
bool pidEnabled = FCL_IGC_IS_FLAG_ENABLED(ShaderDumpPidDisable);
425+
bool pidEnabled = !FCL_IGC_IS_FLAG_ENABLED(ShaderDumpPidDisable);
425426

426427
if (needMkdir)
427428
{

0 commit comments

Comments
 (0)