emu64: match texconv_tile, replace_combine_to_tev, combine_manual! Thanks norgesnerd, roeming, & cadmic!!

This commit is contained in:
Cuyler36
2025-06-17 21:12:07 -04:00
parent fb2e05db78
commit 63e8456dfe
2 changed files with 27 additions and 28 deletions
+2 -1
View File
@@ -579,7 +579,8 @@ class emu64 : public emu64_print {
unsigned int start_wd, unsigned int start_ht, unsigned int end_wd, unsigned int end_ht,
unsigned int line_siz);
unsigned int tmem_swap(unsigned int ofs, unsigned int blk_siz) {
return ofs ^ (((ofs / blk_siz) >> 1) & 4);
u16 block = ofs / blk_siz;
return ofs ^ ((block >> 1) & 4);
}
void tlutconv_rgba5551(u16* rgba5551_p, u16* rgb5a3_p, unsigned int count);
void tlutconv_ia16(u16* src_ia16_p, u16* dst_ia16_p, unsigned int count);