Refactor: Cycles: Remove distinction between severity and verbosity

Only use LOG() and LOG_IS_ON() macros, no more VLOG_.

Pull Request: https://projects.blender.org/blender/blender/pulls/140244
This commit is contained in:
Brecht Van Lommel
2025-06-12 02:19:58 +02:00
parent 8392ca915b
commit fb4e3c8167
68 changed files with 308 additions and 337 deletions

View File

@@ -157,7 +157,7 @@ void PathTraceWorkGPU::alloc_integrator_soa()
if ((kernel_features & (feature))) { \
string name_str = string_printf("%sintegrator_state_" #parent_struct "_" #name, \
shadow ? "shadow_" : ""); \
VLOG_DEBUG << "Skipping " << name_str \
LOG(DEBUG) << "Skipping " << name_str \
<< " -- data is packed inside integrator_state_" #parent_struct "_packed"; \
}
# define KERNEL_STRUCT_BEGIN_PACKED(parent_struct, feature) \
@@ -206,13 +206,13 @@ void PathTraceWorkGPU::alloc_integrator_soa()
#undef KERNEL_STRUCT_END_ARRAY
#undef KERNEL_STRUCT_VOLUME_STACK_SIZE
if (VLOG_DEVICE_STATS_IS_ON) {
if (LOG_IS_ON(STATS)) {
size_t total_soa_size = 0;
for (auto &&soa_memory : integrator_state_soa_) {
total_soa_size += soa_memory->memory_size();
}
VLOG_DEVICE_STATS << "GPU SoA state size: " << string_human_readable_size(total_soa_size);
LOG(STATS) << "GPU SoA state size: " << string_human_readable_size(total_soa_size);
}
}
@@ -943,10 +943,10 @@ bool PathTraceWorkGPU::should_use_graphics_interop(PathTraceDisplay *display)
true);
if (interop_use_) {
VLOG_INFO << "Using graphics interop GPU display update.";
LOG(INFO) << "Using graphics interop GPU display update.";
}
else {
VLOG_INFO << "Using naive GPU display update.";
LOG(INFO) << "Using naive GPU display update.";
}
interop_use_checked_ = true;