Skip to content

Commit

Permalink
Add warning comment for --inst-debug-printf
Browse files Browse the repository at this point in the history
This option is only for debugging/fixing debug printf instrumentation.
Users who wish to utilize debug printf should see the white paper at
vulkan.lunarg.com/doc.

Fixes #4908
  • Loading branch information
greg-lunarg committed Mar 31, 2023
1 parent 6b72fe2 commit 48fb8f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/opt/optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,10 @@ bool Optimizer::RegisterPassFromFlag(const std::string& flag) {
} else if (pass_name == "relax-float-ops") {
RegisterPass(CreateRelaxFloatOpsPass());
} else if (pass_name == "inst-debug-printf") {
// This option is not for user consumption. It is here to assist in
// debugging and fixing the debug printf instrumentation pass. For users who
// wish to utilize debug printf, see the white paper at
// vulkan.lunarg.com/doc
RegisterPass(CreateInstDebugPrintfPass(7, 23));
} else if (pass_name == "simplify-instructions") {
RegisterPass(CreateSimplificationPass());
Expand Down

0 comments on commit 48fb8f8

Please sign in to comment.