mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 23:55:40 +00:00
GPU: Improve structure alignment
This commit is contained in:
parent
8f624afb59
commit
f5d65448d6
|
@ -75,6 +75,9 @@ bool GPU::DoState(StateWrapper& sw)
|
|||
|
||||
sw.Do(&m_GPUSTAT.bits);
|
||||
|
||||
sw.Do(&m_draw_mode.mode_reg.bits);
|
||||
sw.Do(&m_draw_mode.palette_reg);
|
||||
sw.Do(&m_draw_mode.texture_window_value);
|
||||
sw.Do(&m_draw_mode.texture_page_x);
|
||||
sw.Do(&m_draw_mode.texture_page_y);
|
||||
sw.Do(&m_draw_mode.texture_palette_x);
|
||||
|
@ -85,9 +88,6 @@ bool GPU::DoState(StateWrapper& sw)
|
|||
sw.Do(&m_draw_mode.texture_window_offset_y);
|
||||
sw.Do(&m_draw_mode.texture_x_flip);
|
||||
sw.Do(&m_draw_mode.texture_y_flip);
|
||||
sw.Do(&m_draw_mode.mode_reg.bits);
|
||||
sw.Do(&m_draw_mode.palette_reg);
|
||||
sw.Do(&m_draw_mode.texture_window_value);
|
||||
|
||||
sw.Do(&m_drawing_area.left);
|
||||
sw.Do(&m_drawing_area.top);
|
||||
|
|
|
@ -401,6 +401,11 @@ protected:
|
|||
u32 GetTexturePageYBase() const { return ZeroExtend32(texture_page_y_base.GetValue()) * 256; }
|
||||
};
|
||||
|
||||
// original values
|
||||
Reg mode_reg;
|
||||
u16 palette_reg; // from vertex
|
||||
u32 texture_window_value;
|
||||
|
||||
// decoded values
|
||||
u32 texture_page_x;
|
||||
u32 texture_page_y;
|
||||
|
@ -412,12 +417,6 @@ protected:
|
|||
u8 texture_window_offset_y; // in 8 pixel steps
|
||||
bool texture_x_flip;
|
||||
bool texture_y_flip;
|
||||
|
||||
// original values
|
||||
Reg mode_reg;
|
||||
u16 palette_reg; // from vertex
|
||||
u32 texture_window_value;
|
||||
|
||||
bool texture_page_changed;
|
||||
bool texture_window_changed;
|
||||
|
||||
|
@ -520,7 +519,6 @@ protected:
|
|||
u32 current_scanline;
|
||||
|
||||
float display_aspect_ratio;
|
||||
|
||||
bool in_hblank;
|
||||
bool in_vblank;
|
||||
} m_crtc_state = {};
|
||||
|
|
Loading…
Reference in a new issue