aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpu_neon
diff options
context:
space:
mode:
authornotaz2011-12-29 19:05:36 +0200
committernotaz2011-12-29 19:05:36 +0200
commit24b9bacccdb340d369f10ece217603d63aadc264 (patch)
treedff6fa9b91d0dfb08ff2702d7c8ad485453e561a /plugins/gpu_neon
parentc64af26fdb49171b8529836628c23fc7494c11ac (diff)
downloadpcsx_rearmed-24b9bacccdb340d369f10ece217603d63aadc264.tar.gz
pcsx_rearmed-24b9bacccdb340d369f10ece217603d63aadc264.tar.bz2
pcsx_rearmed-24b9bacccdb340d369f10ece217603d63aadc264.zip
psx_gpu: use mask bit for copies
Diffstat (limited to 'plugins/gpu_neon')
-rw-r--r--plugins/gpu_neon/psx_gpu/psx_gpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c
index 72c767e..75deb30 100644
--- a/plugins/gpu_neon/psx_gpu/psx_gpu.c
+++ b/plugins/gpu_neon/psx_gpu/psx_gpu.c
@@ -4352,6 +4352,7 @@ void render_block_copy(psx_gpu_struct *psx_gpu, u16 *source, u32 x, u32 y,
u32 width, u32 height, u32 pitch)
{
u16 *vram_ptr = psx_gpu->vram_ptr + x + (y * 1024);
+ u32 mask_msb = psx_gpu->mask_msb;
u32 draw_x, draw_y;
if((width == 0) || (height == 0))
@@ -4364,7 +4365,7 @@ void render_block_copy(psx_gpu_struct *psx_gpu, u16 *source, u32 x, u32 y,
{
for(draw_x = 0; draw_x < width; draw_x++)
{
- vram_ptr[draw_x] = source[draw_x];
+ vram_ptr[draw_x] = source[draw_x] | mask_msb;
}
source += pitch;