|
|
|
@ -418,13 +418,6 @@ bool GPU::HandleCopyRectangleVRAMToVRAMCommand(const u32*& command_ptr, u32 comm
|
|
|
|
Log_DebugPrintf("Copy rectangle from VRAM to VRAM src=(%u,%u), dst=(%u,%u), size=(%u,%u)", src_x, src_y, dst_x, dst_y,
|
|
|
|
Log_DebugPrintf("Copy rectangle from VRAM to VRAM src=(%u,%u), dst=(%u,%u), size=(%u,%u)", src_x, src_y, dst_x, dst_y,
|
|
|
|
width, height);
|
|
|
|
width, height);
|
|
|
|
|
|
|
|
|
|
|
|
if ((src_x + width) > VRAM_WIDTH || (src_y + height) > VRAM_HEIGHT || (dst_x + width) > VRAM_WIDTH ||
|
|
|
|
|
|
|
|
(dst_y + height) > VRAM_HEIGHT)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Panic("Out of bounds VRAM copy");
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FlushRender();
|
|
|
|
FlushRender();
|
|
|
|
CopyVRAM(src_x, src_y, dst_x, dst_y, width, height);
|
|
|
|
CopyVRAM(src_x, src_y, dst_x, dst_y, width, height);
|
|
|
|
m_stats.num_vram_copies++;
|
|
|
|
m_stats.num_vram_copies++;
|
|
|
|
|