aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu_unai
diff options
context:
space:
mode:
authornotaz2011-01-04 19:47:03 +0200
committernotaz2011-01-04 19:47:03 +0200
commit83a79d01995051a2778784887d086689ff815667 (patch)
treeb95fb7795922cabe5eebd3a75eb6827af7729f77 /plugins/gpu_unai
parentad6b70be1fa93d6639afb76a9a047eafc5455519 (diff)
downloadpcsx_rearmed-83a79d01995051a2778784887d086689ff815667.tar.gz
pcsx_rearmed-83a79d01995051a2778784887d086689ff815667.tar.bz2
pcsx_rearmed-83a79d01995051a2778784887d086689ff815667.zip
gpu_unai: add some framebuffer guard memory
some games blit outside framebuffer area, this is faster than doing range checks.
Diffstat (limited to 'plugins/gpu_unai')
-rw-r--r--plugins/gpu_unai/gpu.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gpu_unai/gpu.cpp b/plugins/gpu_unai/gpu.cpp
index f9f7c41..abe7638 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;
///////////////////////////////////////////////////////////////////////////////