[GPU] Add coherency debug logs

This commit is contained in:
DrChat 2018-05-29 19:42:59 -05:00
parent a0464f54ba
commit f518ec1b37
1 changed files with 11 additions and 3 deletions

View File

@ -263,7 +263,6 @@ void CommandProcessor::WriteRegister(uint32_t index, uint32_t value) {
return; return;
} }
// 0x1844 - pointer to frontbuffer
regs->values[index].u32 = value; regs->values[index].u32 = value;
if (!regs->GetRegisterInfo(index)) { if (!regs->GetRegisterInfo(index)) {
XELOGW("GPU: Write to unknown register (%.4X = %.8X)", index, value); XELOGW("GPU: Write to unknown register (%.4X = %.8X)", index, value);
@ -344,9 +343,18 @@ void CommandProcessor::MakeCoherent() {
return; return;
} }
char* action = "N/A";
if (status_host & 0x03000000) {
action = "VC | TC";
} else if (status_host & 0x02000000) {
action = "TC";
} else if (status_host & 0x01000000) {
action = "VC";
}
// TODO(benvanik): notify resource cache of base->size and type. // TODO(benvanik): notify resource cache of base->size and type.
// XELOGD("Make %.8X -> %.8X (%db) coherent", base_host, base_host + XELOGD("Make %.8X -> %.8X (%db) coherent, action = %s", base_host,
// size_host, size_host); base_host + size_host, size_host, action);
// Mark coherent. // Mark coherent.
status_host &= ~0x80000000ul; status_host &= ~0x80000000ul;