mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[Base] Post merge fixes
This commit is contained in:
parent
c4bd676c5e
commit
419c0149c9
|
|
@ -27,6 +27,7 @@ includedirs({
|
|||
})
|
||||
|
||||
defines({
|
||||
"VULKAN_HPP_NO_TO_STRING",
|
||||
"IMGUI_DISABLE_OBSOLETE_FUNCTIONS",
|
||||
"IMGUI_DISABLE_DEFAULT_FONT",
|
||||
--"IMGUI_USE_WCHAR32",
|
||||
|
|
|
|||
|
|
@ -1809,7 +1809,7 @@ EmulatorWindow::ControllerHotKey EmulatorWindow::ProcessControllerHotkey(
|
|||
selected_title_index--;
|
||||
break;
|
||||
case ButtonFunctions::ToggleLogging: {
|
||||
logging::internal::ToggleLogLevel();
|
||||
logging::ToggleLogLevel();
|
||||
|
||||
notificationTitle = "Toggle Logging";
|
||||
|
||||
|
|
|
|||
|
|
@ -89,7 +89,6 @@ constexpr char kPrefixCharInfo = 'i';
|
|||
constexpr char kPrefixCharDebug = 'd';
|
||||
|
||||
void ToggleLogLevel();
|
||||
//bool ShouldLog(LogLevel log_level);
|
||||
bool ShouldLog(LogLevel log_level,
|
||||
uint32_t log_mask = xe::LogSrc::Uncategorized);
|
||||
namespace internal {
|
||||
|
|
@ -124,7 +123,7 @@ XE_FORCEINLINE static void AppendLogLineFormat(uint32_t log_src_mask,
|
|||
const char prefix_char,
|
||||
std::string_view format,
|
||||
const Args&... args) noexcept {
|
||||
if (!internal::ShouldLog(log_level, log_src_mask)) {
|
||||
if (!ShouldLog(log_level, log_src_mask)) {
|
||||
return;
|
||||
}
|
||||
AppendLogLineFormat_Impl(log_level, prefix_char, format, args...);
|
||||
|
|
@ -175,25 +174,29 @@ struct LoggerBatch {
|
|||
|
||||
template <typename... Args>
|
||||
XE_COLD void XELOGE(std::string_view format, const Args&... args) {
|
||||
xe::logging::AppendLogLineFormat(xe::LogSrc::Uncategorized, xe::LogLevel::Error,
|
||||
xe::logging::AppendLogLineFormat(
|
||||
xe::LogSrc::Uncategorized, xe::LogLevel::Error,
|
||||
xe::logging::kPrefixCharError, format, args...);
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
XE_COLD void XELOGW(std::string_view format, const Args&... args) {
|
||||
xe::logging::AppendLogLineFormat(xe::LogSrc::Uncategorized, xe::LogLevel::Warning,
|
||||
xe::logging::AppendLogLineFormat(
|
||||
xe::LogSrc::Uncategorized, xe::LogLevel::Warning,
|
||||
xe::logging::kPrefixCharWarning, format, args...);
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
void XELOGI(std::string_view format, const Args&... args) {
|
||||
xe::logging::AppendLogLineFormat(xe::LogSrc::Uncategorized, xe::LogLevel::Info,
|
||||
xe::logging::AppendLogLineFormat(
|
||||
xe::LogSrc::Uncategorized, xe::LogLevel::Info,
|
||||
xe::logging::kPrefixCharInfo, format, args...);
|
||||
}
|
||||
|
||||
template <typename... Args>
|
||||
void XELOGD(std::string_view format, const Args&... args) {
|
||||
xe::logging::AppendLogLineFormat(xe::LogSrc::Uncategorized, xe::LogLevel::Debug,
|
||||
xe::logging::AppendLogLineFormat(
|
||||
xe::LogSrc::Uncategorized, xe::LogLevel::Debug,
|
||||
xe::logging::kPrefixCharDebug, format, args...);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ void CommandProcessor::EnableReadPointerWriteBack(uint32_t ptr,
|
|||
XE_NOINLINE XE_COLD void CommandProcessor::LogKickoffInitator(uint32_t value) {
|
||||
cpu::backend::GuestPseudoStackTrace st;
|
||||
|
||||
if (logging::internal::ShouldLog(LogLevel::Debug) &&
|
||||
if (logging::ShouldLog(LogLevel::Debug) &&
|
||||
kernel_state_->processor()->backend()->PopulatePseudoStacktrace(&st)) {
|
||||
logging::LoggerBatch<LogLevel::Debug> log_initiator{};
|
||||
|
||||
|
|
|
|||
|
|
@ -32,8 +32,8 @@ void DeferredCommandList::Execute(ID3D12GraphicsCommandList* command_list,
|
|||
#if XE_GPU_FINE_GRAINED_DRAW_SCOPES
|
||||
SCOPE_profile_cpu_f("gpu");
|
||||
#endif // XE_GPU_FINE_GRAINED_DRAW_SCOPES
|
||||
const uintmax_t* stream = command_stream_.data();
|
||||
size_t stream_remaining = command_stream_.size();
|
||||
const uintmax_t* stream = (const uintmax_t*)command_stream_.data();
|
||||
size_t stream_remaining = command_stream_.size() / sizeof(uintmax_t);
|
||||
ID3D12PipelineState* current_pipeline_state = nullptr;
|
||||
while (stream_remaining != 0) {
|
||||
const CommandHeader& header =
|
||||
|
|
|
|||
Loading…
Reference in a new issue