Fixed left-most green line in YUV conversion

This commit is contained in:
Angelo Salese 2013-08-29 12:38:35 +00:00
parent a10b004531
commit 3dfceab1e7
2 changed files with 4 additions and 5 deletions

View File

@ -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<UINT8 *>(dc_texture_ram)) + WORD_XOR_LE(dst_addr)) = u;
*(UINT16 *)((reinterpret_cast<UINT8 *>(dc_texture_ram)) + WORD_XOR_LE(dst_addr+1)) = y0;
*(UINT16 *)((reinterpret_cast<UINT8 *>(dc_texture_ram)) + WORD_XOR_LE(dst_addr+2)) = v;
*(UINT16 *)((reinterpret_cast<UINT8 *>(dc_texture_ram)) + WORD_XOR_LE(dst_addr+3)) = y1;
*(UINT8 *)((reinterpret_cast<UINT8 *>(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr)) = u;
*(UINT8 *)((reinterpret_cast<UINT8 *>(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr+1)) = y0;
*(UINT8 *)((reinterpret_cast<UINT8 *>(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr+2)) = v;
*(UINT8 *)((reinterpret_cast<UINT8 *>(dc_texture_ram)) + BYTE8_XOR_LE(dst_addr+3)) = y1;
}
}

View File

@ -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);