Rename BPMEM_EFB_BR to BPMEM_EFB_WH

This commit is contained in:
Pokechu22 2021-02-07 12:32:45 -08:00
parent 81b84a5ebe
commit 762fe33a3d
2 changed files with 4 additions and 5 deletions

View File

@ -45,7 +45,7 @@ enum
BPMEM_PE_TOKEN_ID = 0x47, BPMEM_PE_TOKEN_ID = 0x47,
BPMEM_PE_TOKEN_INT_ID = 0x48, BPMEM_PE_TOKEN_INT_ID = 0x48,
BPMEM_EFB_TL = 0x49, BPMEM_EFB_TL = 0x49,
BPMEM_EFB_BR = 0x4A, BPMEM_EFB_WH = 0x4A,
BPMEM_EFB_ADDR = 0x4B, BPMEM_EFB_ADDR = 0x4B,
BPMEM_MIPMAP_STRIDE = 0x4D, BPMEM_MIPMAP_STRIDE = 0x4D,
BPMEM_COPYYSCALE = 0x4E, BPMEM_COPYYSCALE = 0x4E,

View File

@ -432,7 +432,7 @@ static void BPWritten(const BPCmd& bp)
// EFB Copy config // EFB Copy config
// ---------------- // ----------------
case BPMEM_EFB_TL: // EFB Source Rect. Top, Left case BPMEM_EFB_TL: // EFB Source Rect. Top, Left
case BPMEM_EFB_BR: // EFB Source Rect. Bottom, Right (w, h - 1) case BPMEM_EFB_WH: // EFB Source Rect. Width, Height - 1
case BPMEM_EFB_ADDR: // EFB Target Address case BPMEM_EFB_ADDR: // EFB Target Address
return; return;
// -------------- // --------------
@ -995,10 +995,9 @@ void GetBPRegInfo(const u8* data, std::string* name, std::string* desc)
} }
break; break;
case BPMEM_EFB_BR: // 0x4A case BPMEM_EFB_WH: // 0x4A
{ {
// TODO: Misleading name, should be BPMEM_EFB_WH instead SetRegName(BPMEM_EFB_WH);
SetRegName(BPMEM_EFB_BR);
X10Y10 width_height; X10Y10 width_height;
width_height.hex = cmddata; width_height.hex = cmddata;
*desc = fmt::format("Width: {}\nHeight: {}", width_height.x + 1, width_height.y + 1); *desc = fmt::format("Width: {}\nHeight: {}", width_height.x + 1, width_height.y + 1);