Skip to content

Commit

Permalink
Print a warning message about a currently dumped vector's size only …
Browse files Browse the repository at this point in the history
…if ShaderDumpEnable flag is enabled.

Print a warning message about a currently dumped vector's size only if ShaderDumpEnable flag is enabled.
  • Loading branch information
mateuszchudyk authored and igcbot committed Jan 31, 2025
1 parent 09e37e7 commit c5a9f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IGC/common/MDFrameWork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ MDNode* CreateNode(const std::vector<val> &vec, Module* module, StringRef name)
for (auto it = vec.begin(); it != vec.end(); ++it)
{
nodes.push_back(CreateNode(*(it), module, name.str() + "Vec[" + std::to_string(i++) + "]"));
if (IGC_IS_FLAG_DISABLED(ShowFullVectorsInShaderDumps) && i > MAX_VECTOR_SIZE_TO_PRINT_IN_SHADER_DUMPS)
if (IGC_IS_FLAG_ENABLED(ShaderDumpEnable) && IGC_IS_FLAG_DISABLED(ShowFullVectorsInShaderDumps) && i > MAX_VECTOR_SIZE_TO_PRINT_IN_SHADER_DUMPS)
{
std::string flagName = "ShowFullVectorsInShaderDumps";
#ifndef _WIN32
Expand Down

0 comments on commit c5a9f76

Please sign in to comment.