[GPU] More post merge fixes

This commit is contained in:
Adrian 2025-08-15 20:56:23 +01:00 committed by Radosław Gliński
parent 3ba63e05ac
commit a9fb32a2fd
2 changed files with 3 additions and 3 deletions

View file

@ -427,7 +427,7 @@ void CommandProcessor::UpdateWritePointer(uint32_t value) {
void CommandProcessor::LogRegisterSet(uint32_t register_index, uint32_t value) {
#if XE_ENABLE_GPU_REG_WRITE_LOGGING == 1
if (cvars::log_guest_driven_gpu_register_written_values &&
logging::internal::ShouldLog(LogLevel::Debug)) {
logging::ShouldLog(LogLevel::Debug)) {
const RegisterInfo* reginfo = RegisterFile::GetRegisterInfo(register_index);
if (!reginfo) {
@ -444,7 +444,7 @@ void CommandProcessor::LogRegisterSets(uint32_t base_register_index,
uint32_t n_values) {
#if XE_ENABLE_GPU_REG_WRITE_LOGGING == 1
if (cvars::log_guest_driven_gpu_register_written_values &&
logging::internal::ShouldLog(LogLevel::Debug)) {
logging::ShouldLog(LogLevel::Debug)) {
auto target = logging::internal::GetThreadBuffer();
auto target_ptr = target.first;

View file

@ -267,7 +267,7 @@ void COMMAND_PROCESSOR::DisassembleCurrentPacket() XE_RESTRICT {
}
bool COMMAND_PROCESSOR::ExecutePacket() {
#if XE_ENABLE_PM4_DISASM == 1
if (cvars::disassemble_pm4 && logging::internal::ShouldLog(LogLevel::Debug)) {
if (cvars::disassemble_pm4 && logging::ShouldLog(LogLevel::Debug)) {
COMMAND_PROCESSOR::DisassembleCurrentPacket();
}
#endif