From: notaz Date: Tue, 4 Jan 2011 17:47:03 +0000 (+0200) Subject: gpu_unai: add some framebuffer guard memory X-Git-Tag: r3~1 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83a79d01995051a2778784887d086689ff815667;p=pcsx_rearmed.git gpu_unai: add some framebuffer guard memory some games blit outside framebuffer area, this is faster than doing range checks. --- diff --git a/plugins/gpu_unai/gpu.cpp b/plugins/gpu_unai/gpu.cpp index f9f7c414..abe76389 100644 --- a/plugins/gpu_unai/gpu.cpp +++ b/plugins/gpu_unai/gpu.cpp @@ -94,7 +94,8 @@ u32 lInc; u32 tInc, tMsk; GPUPacket PacketBuffer; -u16 GPU_FrameBuffer[FRAME_BUFFER_SIZE/2] __attribute__((aligned(16))); // FRAME_BUFFER_SIZE is defined in bytes +// FRAME_BUFFER_SIZE is defined in bytes; 512K is guard memory for out of range reads +u16 GPU_FrameBuffer[(FRAME_BUFFER_SIZE+512*1024)/2] __attribute__((aligned(16))); u32 GPU_GP1; ///////////////////////////////////////////////////////////////////////////////