GPU/HW: Ensure CLUT cache is synced when using SW-for-readbacks

This commit is contained in:
Stenzek
2024-05-23 14:30:18 +10:00
parent 6cad97b404
commit 10df7ba319
3 changed files with 26 additions and 4 deletions

View File

@ -1481,6 +1481,11 @@ void GPU::InvalidateCLUT()
m_current_clut_is_8bit = false;
}
bool GPU::IsCLUTValid() const
{
return (m_current_clut_reg_bits != std::numeric_limits<decltype(m_current_clut_reg_bits)>::max());
}
void GPU::ClearDisplay()
{
ClearDisplayTexture();