Skip to content

Commit

Permalink
Replace "implem" with "driver" loader log level
Browse files Browse the repository at this point in the history
Matches the Vulkan-Loader's own log levels.
  • Loading branch information
charles-lunarg committed Sep 13, 2024
1 parent 85a615b commit dfc1c77
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vkconfig_core/type_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const char* GetToken(LogType value) {
"debug", // LOG_DEBUG
"perf", // LOG_PERF
"layer", // LOG_LAYER
"implem", // LOG_IMPLEM
"driver", // LOG_DRIVER
};
static_assert(std::size(TOKENS) == LOG_COUNT);

Expand Down
4 changes: 2 additions & 2 deletions vkconfig_core/type_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ enum LogType {
LOG_DEBUG,
LOG_PERF,
LOG_LAYER,
LOG_IMPLEM,
LOG_DRIVER,

LOG_FIRST = LOG_ERROR,
LOG_LAST = LOG_IMPLEM,
LOG_LAST = LOG_DRIVER,

LOG_MESSAGE_INVALID = ~0,
};
Expand Down
4 changes: 2 additions & 2 deletions vkconfig_gui/tab_configurations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void TabConfigurations::UpdateUI_LoaderMessages() {
ui->configuration_loader_layers_checkBox->setChecked(configuration->loader_log_messages_flags & GetBit(LOG_LAYER));
ui->configuration_loader_layers_checkBox->blockSignals(false);
ui->configuration_loader_drivers_checkBox->blockSignals(true);
ui->configuration_loader_drivers_checkBox->setChecked(configuration->loader_log_messages_flags & GetBit(LOG_IMPLEM));
ui->configuration_loader_drivers_checkBox->setChecked(configuration->loader_log_messages_flags & GetBit(LOG_DRIVER));
ui->configuration_loader_drivers_checkBox->blockSignals(false);
}
}
Expand Down Expand Up @@ -572,7 +572,7 @@ void TabConfigurations::OnCheckedLoaderMessageTypes(bool checked) {
loader_log_messages_bits |= ui->configuration_loader_infos_checkBox->isChecked() ? GetBit(LOG_INFO) : 0;
loader_log_messages_bits |= ui->configuration_loader_debug_checkBox->isChecked() ? GetBit(LOG_DEBUG) : 0;
loader_log_messages_bits |= ui->configuration_loader_layers_checkBox->isChecked() ? GetBit(LOG_LAYER) : 0;
loader_log_messages_bits |= ui->configuration_loader_drivers_checkBox->isChecked() ? GetBit(LOG_IMPLEM) : 0;
loader_log_messages_bits |= ui->configuration_loader_drivers_checkBox->isChecked() ? GetBit(LOG_DRIVER) : 0;

active_configuration->loader_log_messages_flags = loader_log_messages_bits;
}
Expand Down

0 comments on commit dfc1c77

Please sign in to comment.