Browse Source

[debug] fix logging entries for histogram

CamilleLaVey 4 days ago
parent
commit
36bfb7b371
  1. 9
      src/shader_recompiler/frontend/maxwell/translate_program.cpp

9
src/shader_recompiler/frontend/maxwell/translate_program.cpp

@ -11,6 +11,7 @@
#include <vector> #include <vector>
#include <queue> #include <queue>
#include "common/logging/log.h"
#include "common/settings.h" #include "common/settings.h"
#include "shader_recompiler/exception.h" #include "shader_recompiler/exception.h"
#include "shader_recompiler/frontend/ir/basic_block.h" #include "shader_recompiler/frontend/ir/basic_block.h"
@ -147,7 +148,7 @@ void LogFpControlHistogram(const IR::Program& program) {
return; return;
} }
LOG_DEBUG(Shader, "FP control histogram for {} shader: blocks={} post_order_blocks={}",
LOG_INFO(Shader, "FP_HIST {} shader blocks={} post_order_blocks={}",
StageName(program.stage), program.blocks.size(), program.post_order_blocks.size()); StageName(program.stage), program.blocks.size(), program.post_order_blocks.size());
constexpr std::array<std::string_view, 2> precision_names{"fp16", "fp32"}; constexpr std::array<std::string_view, 2> precision_names{"fp16", "fp32"};
@ -156,8 +157,8 @@ void LogFpControlHistogram(const IR::Program& program) {
continue; continue;
} }
LOG_DEBUG(Shader,
" {} total={} no_contraction={} rounding[DontCare={}, RN={}, RM={}, RP={}, RZ={}] fmz[DontCare={}, FTZ={}, FMZ={}, None={}]",
LOG_INFO(Shader,
"FP_HIST {} total={} no_contraction={} rounding[DontCare={}, RN={}, RM={}, RP={}, RZ={}] fmz[DontCare={}, FTZ={}, FMZ={}, None={}]",
precision_names[bucket], histogram.total[bucket], histogram.no_contraction[bucket], precision_names[bucket], histogram.total[bucket], histogram.no_contraction[bucket],
histogram.rounding[bucket][static_cast<size_t>(IR::FpRounding::DontCare)], histogram.rounding[bucket][static_cast<size_t>(IR::FpRounding::DontCare)],
histogram.rounding[bucket][static_cast<size_t>(IR::FpRounding::RN)], histogram.rounding[bucket][static_cast<size_t>(IR::FpRounding::RN)],
@ -175,7 +176,7 @@ void LogFpControlHistogram(const IR::Program& program) {
if (count == 0) { if (count == 0) {
continue; continue;
} }
LOG_DEBUG(Shader, " {} combo {} / {} = {}", precision_names[bucket],
LOG_INFO(Shader, "FP_HIST {} combo {} / {} = {}", precision_names[bucket],
RoundingName(static_cast<IR::FpRounding>(rounding)), RoundingName(static_cast<IR::FpRounding>(rounding)),
FmzName(static_cast<IR::FmzMode>(fmz)), count); FmzName(static_cast<IR::FmzMode>(fmz)), count);
} }

Loading…
Cancel
Save