mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 10:51:50 -05:00
GPU: Initialize GPU registers to some sensible default state.
This commit is contained in:
parent
baf0aa04f5
commit
46950ee4de
1 changed files with 16 additions and 1 deletions
|
@ -353,7 +353,22 @@ void Update() {
|
|||
/// Initialize hardware
|
||||
void Init() {
|
||||
g_last_ticks = Core::g_app_core->GetTicks();
|
||||
SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM);
|
||||
// SetFramebufferLocation(FRAMEBUFFER_LOCATION_FCRAM);
|
||||
SetFramebufferLocation(FRAMEBUFFER_LOCATION_VRAM);
|
||||
|
||||
// TODO: Width should be 240 instead?
|
||||
g_regs.top_framebuffer.width = 480;
|
||||
g_regs.top_framebuffer.height = 400;
|
||||
g_regs.top_framebuffer.stride = 480*3;
|
||||
g_regs.top_framebuffer.color_format = Registers::FramebufferFormat::RGB8;
|
||||
g_regs.top_framebuffer.active_fb = 0;
|
||||
|
||||
g_regs.sub_framebuffer.width = 480;
|
||||
g_regs.sub_framebuffer.height = 400;
|
||||
g_regs.sub_framebuffer.stride = 480*3;
|
||||
g_regs.sub_framebuffer.color_format = Registers::FramebufferFormat::RGB8;
|
||||
g_regs.sub_framebuffer.active_fb = 0;
|
||||
|
||||
NOTICE_LOG(GPU, "initialized OK");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue