Created attachment 220985 [details]
Created new port for the reicast libretro core, which compiles properly, but I think has issues on my Intel based GPUs that I have tried thus far. I am releasing it anyway, along with a port for reicast itself in case it works well with other GPUs, because I consider it useful to have a working Sega Dreamcast emulator on FreeBSD.
So far, I've tested it with Mars Matrix, which is emulated accurately when it works. When it doesn't work, I have to restart Xorg, but this may just be an issue with my GPU driver.
Sorry to just sit on this port for several months, but I wanted to test it carefully.
Tested with Retroarch 1.9.0 on FreeBSD 12.1-RELEASE:
I would like to clarify that I originally tested this patch with Retroarch 1.8.5, but when issues with my Intel GPU seemed to come up, I tried it against my update to Retroarch 1.9.0 (see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252189 for a patch).
I forgot to mention that I personally can only get this to run properly with the Dynarec option disabled, but even so, ran at full speed on the game that I tried (it likely wasn't affected as most of Mars Matrix is 2D, but in either case, I would like to get it to a state where it works with Dynarec enabled). I can talk to the reicast team to find out why this is necessary, as well as why it even with this fix is still so unstable on my machines with Intel graphics that I have tried thus far.
Ultimately, I thought that this should be submitted, because it may work better on other graphics cards (further, the Intel driver on -CURRENT may work much better), and also in case anyone else can improve on this port.