devmiyax / yabause

Yabause is a Sega Saturn emulator and took over as Yaba Sanshiro
http://www.uoyabause.org
GNU General Public License v2.0
210 stars 35 forks source link

Lr-yabasanshiro RPI4 color inversion #704

Closed notthesameman closed 2 years ago

notthesameman commented 4 years ago

Hello I can't figure out what is the issue? i compiled lr-yabasanshiro, all games have either color inversion, videos run correctly, I'm not sure but I think it has to do with RGBA8888. Thank you here's a example of mortal Kombat trilogy and Dracula X IMG_20200117_201929 Screenshot_20200102-022109

devmiyax commented 4 years ago

A really bad news.

Opengl library in Rasberry pi 4 has a bug. The return value of texelFetch is not have enough precision. Is there anyone who knows where I can submit this issue?

"  vec4 txindex = texelFetch( s_texture, ivec2(int(v_texcoord.x),int(v_texcoord.y)) ,0 );\n"
"  if(txindex.a == 0.0) { discard; }\n"
"  vec4 txcol = texelFetch( s_color,  ivec2( ( int(txindex.g*65280.0) | int(txindex.r*255.0)) ,0 )  , 0 );\n"
notthesameman commented 4 years ago

I posted in sbc channel but not sure to ask at raspberry pi foundation.

Cee123 commented 4 years ago

There are a tonne of glitches in the Libretro version of the emulator. Not just for the Raspberry Pi 4 but also on PC, Linux and Android as well. There are very clear differences in compatibility between the Libretro core (which has a tonne of glitches and hasn't been updated at all) and the standalone yabasanshiro.

dankcushions commented 4 years ago

@devmiyax, @notthesameman has made some findings on this one - please see: https://retropie.org.uk/forum/topic/24568/is-yabasanshiro-emulator-coming-on-retropie/10?_=1586806656573 and https://www.raspberrypi.org/forums/viewtopic.php?f=68&t=270359&p=1641970#p1641970

people are theorising that the texture width is too big? I'm hoping this is useful to you.

devmiyax commented 2 years ago

fixed