Merge pull request #308 from raven02/patch-6

Speedup write color buffers
This commit is contained in:
Alexandro Sánchez Bach 2014-06-03 14:11:38 +02:00
commit 664d2502ca
1 changed files with 15 additions and 0 deletions

View File

@ -485,6 +485,9 @@ void GLGSRender::WriteDepthBuffer()
return; return;
} }
// Reset the flag
m_set_context_dma_z = false;
u32 address = GetAddress(m_surface_offset_z, m_context_dma_z - 0xfeed0000); u32 address = GetAddress(m_surface_offset_z, m_context_dma_z - 0xfeed0000);
if(!Memory.IsGoodAddr(address)) if(!Memory.IsGoodAddr(address))
{ {
@ -509,6 +512,9 @@ void GLGSRender::WriteColourBufferA()
return; return;
} }
// Reset the flag
m_set_context_dma_color_a = false;
u32 address = GetAddress(m_surface_offset_a, m_context_dma_color_a - 0xfeed0000); u32 address = GetAddress(m_surface_offset_a, m_context_dma_color_a - 0xfeed0000);
if(!Memory.IsGoodAddr(address)) if(!Memory.IsGoodAddr(address))
{ {
@ -529,6 +535,9 @@ void GLGSRender::WriteColourBufferB()
return; return;
} }
// Reset the flag
m_set_context_dma_color_b = false;
u32 address = GetAddress(m_surface_offset_b, m_context_dma_color_b - 0xfeed0000); u32 address = GetAddress(m_surface_offset_b, m_context_dma_color_b - 0xfeed0000);
if(!Memory.IsGoodAddr(address)) if(!Memory.IsGoodAddr(address))
{ {
@ -549,6 +558,9 @@ void GLGSRender::WriteColourBufferC()
return; return;
} }
// Reset the flag
m_set_context_dma_color_c = false;
u32 address = GetAddress(m_surface_offset_c, m_context_dma_color_c - 0xfeed0000); u32 address = GetAddress(m_surface_offset_c, m_context_dma_color_c - 0xfeed0000);
if(!Memory.IsGoodAddr(address)) if(!Memory.IsGoodAddr(address))
{ {
@ -569,6 +581,9 @@ void GLGSRender::WriteColourBufferD()
return; return;
} }
// Reset the flag
m_set_context_dma_color_d = false;
u32 address = GetAddress(m_surface_offset_d, m_context_dma_color_d - 0xfeed0000); u32 address = GetAddress(m_surface_offset_d, m_context_dma_color_d - 0xfeed0000);
if(!Memory.IsGoodAddr(address)) if(!Memory.IsGoodAddr(address))
{ {