System: Fix HW/SW rendering swap

This commit is contained in:
Stenzek
2024-08-23 15:59:31 +10:00
parent 5433b30fec
commit 8b3fd538ea
2 changed files with 33 additions and 36 deletions

View File

@ -201,6 +201,10 @@ public:
ALWAYS_INLINE s32 GetCRTCDisplayWidth() const { return m_crtc_state.display_width; }
ALWAYS_INLINE s32 GetCRTCDisplayHeight() const { return m_crtc_state.display_height; }
// Ticks for hblank/vblank.
void CRTCTickEvent(TickCount ticks);
void CommandTickEvent(TickCount ticks);
// Dumps raw VRAM to a file.
bool DumpVRAMToFile(const char* filename);
@ -275,10 +279,6 @@ protected:
void UpdateDMARequest();
void UpdateGPUIdle();
// Ticks for hblank/vblank.
void CRTCTickEvent(TickCount ticks);
void CommandTickEvent(TickCount ticks);
/// Returns 0 if the currently-displayed field is on odd lines (1,3,5,...) or 1 if even (2,4,6,...).
ALWAYS_INLINE u32 GetInterlacedDisplayField() const { return ZeroExtend32(m_crtc_state.interlaced_field); }
@ -411,9 +411,6 @@ protected:
AddCommandTicks(std::max(drawn_width, drawn_height));
}
TimingEvent m_crtc_tick_event;
TimingEvent m_command_tick_event;
union GPUSTAT
{
u32 bits;