From 3dfceab1e7adc2ba587f92b1da6ff32c4ce01ae1 Mon Sep 17 00:00:00 2001 From: Angelo Salese Date: Thu, 29 Aug 2013 12:38:35 +0000 Subject: [PATCH] Fixed left-most green line in YUV conversion --- src/mame/video/powervr2.c | 8 ++++---- src/mame/video/powervr2.h | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mame/video/powervr2.c b/src/mame/video/powervr2.c index c5bc853a11f..56b439af2c1 100644 --- a/src/mame/video/powervr2.c +++ b/src/mame/video/powervr2.c @@ -1976,10 +1976,10 @@ WRITE8_MEMBER( powervr2_device::ta_fifo_yuv_w ) y0 = yuv_fifo[0x80+((x&8) ? 0x40 : 0x00)+((y&8) ? 0x80 : 0x00)+(x&6)+((y&7)*8)]; y1 = yuv_fifo[0x80+((x&8) ? 0x40 : 0x00)+((y&8) ? 0x80 : 0x00)+(x&6)+((y&7)*8)+1]; - *(UINT16 *)((reinterpret_cast(dc_texture_ram)) + WORD_XOR_LE(dst_addr)) = u; - *(UINT16 *)((reinterpret_cast(dc_texture_ram)) + WORD_XOR_LE(dst_addr+1)) = y0; - *(UINT16 *)((reinterpret_cast(dc_texture_ram)) + WORD_XOR_LE(dst_addr+2)) = v; - *(UINT16 *)((reinterpret_cast(dc_texture_ram)) + WORD_XOR_LE(dst_addr+3)) = y1; + *(UINT8 *)((reinterpret_cast(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr)) = u; + *(UINT8 *)((reinterpret_cast(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr+1)) = y0; + *(UINT8 *)((reinterpret_cast(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr+2)) = v; + *(UINT8 *)((reinterpret_cast(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr+3)) = y1; } } diff --git a/src/mame/video/powervr2.h b/src/mame/video/powervr2.h index 008c0dab046..b5f23838cbd 100644 --- a/src/mame/video/powervr2.h +++ b/src/mame/video/powervr2.h @@ -454,7 +454,6 @@ private: void fb_convert_1555argb_to_888rgb24(address_space &space, int x, int y); void fb_convert_1555argb_to_888rgb32(address_space &space, int x, int y); - void fb_convert_8888argb_to_555rgb(address_space &space, int x, int y); void fb_convert_8888argb_to_565rgb(address_space &space, int x, int y); void fb_convert_8888argb_to_888rgb24(address_space &space, int x, int y);