From 83a79d01995051a2778784887d086689ff815667 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 4 Jan 2011 19:47:03 +0200 Subject: [PATCH] gpu_unai: add some framebuffer guard memory some games blit outside framebuffer area, this is faster than doing range checks. --- plugins/gpu_unai/gpu.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; /////////////////////////////////////////////////////////////////////////////// -- 2.39.2