diff options
author | notaz | 2012-10-13 23:05:42 +0300 |
---|---|---|
committer | notaz | 2012-10-13 23:05:42 +0300 |
commit | fc6cef7d739c850a10bca2a19855654aa78897a8 (patch) | |
tree | 0e5ef8b89fcc049c8b131d77e022afc382603d12 /plugins/gpu_neon/psx_gpu/psx_gpu.c | |
parent | 05e2e0c6e20a335c9ce86d22a2ae1ba0f5bd2865 (diff) | |
download | pcsx_rearmed-fc6cef7d739c850a10bca2a19855654aa78897a8.tar.gz pcsx_rearmed-fc6cef7d739c850a10bca2a19855654aa78897a8.tar.bz2 pcsx_rearmed-fc6cef7d739c850a10bca2a19855654aa78897a8.zip |
psx_gpu: 2x sprite fixes and integration
Diffstat (limited to 'plugins/gpu_neon/psx_gpu/psx_gpu.c')
-rw-r--r-- | plugins/gpu_neon/psx_gpu/psx_gpu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c index 9b5a64d..2d552aa 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu.c @@ -3574,7 +3574,7 @@ void setup_sprite_16bpp(psx_gpu_struct *psx_gpu, s32 x, s32 y, s32 u, u32 left_offset = u & 0x7; u32 width_rounded = width + left_offset + 7; - u16 *fb_ptr = psx_gpu->vram_ptr + (y * 1024) + (s32)(x - left_offset); + u16 *fb_ptr = psx_gpu->vram_out_ptr + (y * 1024) + (s32)(x - left_offset); u32 right_width = width_rounded & 0x7; u32 block_width = width_rounded / 8; u32 fb_ptr_pitch = (1024 + 8) - (block_width * 8); @@ -3696,7 +3696,7 @@ void setup_sprite_untextured(psx_gpu_struct *psx_gpu, s32 x, s32 y, s32 u, { u32 right_width = ((width - 1) & 0x7) + 1; u32 right_mask_bits = (0xFF << right_width); - u16 *fb_ptr = psx_gpu->vram_ptr + (y * 1024) + x; + u16 *fb_ptr = psx_gpu->vram_out_ptr + (y * 1024) + x; u32 block_width = (width + 7) / 8; u32 fb_ptr_pitch = 1024 - ((block_width - 1) * 8); u32 blocks_remaining; @@ -4736,3 +4736,4 @@ void triangle_benchmark(psx_gpu_struct *psx_gpu) #endif +#include "psx_gpu_4x.c" |