Skip to content

Commit c5a9f76

Browse files
mateuszchudykigcbot
authored andcommitted
Print a warning message about a currently dumped vector's size only if ShaderDumpEnable flag is enabled.
Print a warning message about a currently dumped vector's size only if ShaderDumpEnable flag is enabled.
1 parent 09e37e7 commit c5a9f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IGC/common/MDFrameWork.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ MDNode* CreateNode(const std::vector<val> &vec, Module* module, StringRef name)
186186
for (auto it = vec.begin(); it != vec.end(); ++it)
187187
{
188188
nodes.push_back(CreateNode(*(it), module, name.str() + "Vec[" + std::to_string(i++) + "]"));
189-
if (IGC_IS_FLAG_DISABLED(ShowFullVectorsInShaderDumps) && i > MAX_VECTOR_SIZE_TO_PRINT_IN_SHADER_DUMPS)
189+
if (IGC_IS_FLAG_ENABLED(ShaderDumpEnable) && IGC_IS_FLAG_DISABLED(ShowFullVectorsInShaderDumps) && i > MAX_VECTOR_SIZE_TO_PRINT_IN_SHADER_DUMPS)
190190
{
191191
std::string flagName = "ShowFullVectorsInShaderDumps";
192192
#ifndef _WIN32

0 commit comments

Comments
 (0)