X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpu_neon%2Fpsx_gpu%2Fpsx_gpu.c;h=75deb3016801f8f7890dcaf063a48aadc189429a;hb=24b9bacccdb340d369f10ece217603d63aadc264;hp=cc40748c01448191fd5689b53236d7b0b7f75817;hpb=f9248bbfa31729f0d902db00269e50f2d03082ba;p=pcsx_rearmed.git diff --git a/plugins/gpu_neon/psx_gpu/psx_gpu.c b/plugins/gpu_neon/psx_gpu/psx_gpu.c index cc40748c..75deb301 100644 --- a/plugins/gpu_neon/psx_gpu/psx_gpu.c +++ b/plugins/gpu_neon/psx_gpu/psx_gpu.c @@ -4319,6 +4319,7 @@ void render_block_fill(psx_gpu_struct *psx_gpu, u32 color, u32 x, u32 y, if((width == 0) || (height == 0)) return; + flush_render_block_buffer(psx_gpu); invalidate_texture_cache_region(psx_gpu, x, y, x + width - 1, y + height - 1); #ifndef NEON_BUILD @@ -4351,18 +4352,20 @@ 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)) return; + flush_render_block_buffer(psx_gpu); invalidate_texture_cache_region(psx_gpu, x, y, x + width - 1, y + height - 1); for(draw_y = 0; draw_y < height; draw_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;