MAMEWorld Christmas Tree Ice Skating Arcade Party Town >> EmuChat
View all threads Index   Flat Mode Flat  

MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 1552
Send PM
Re: Mangled Shaders on MAME 0.185 (Linux)
05/17/17 01:51 PM


> Basically any shader I set for bgfx_screen_chains, e.g. xbr-hybrid or hq4x, etc, all
> just display a garbled image. Ranging from slightly fuzzy text (or entire screen) to
> the entire screen just being coloured squares.
>
> Here are a few examples of said shaders when loading up 1944 -
> http://imgur.com/a/Xu1w1
>
> The same shaders work fine in RetroArch and PPSSPP so it shouldn't be hardware
> related. For reference, the GPU in use is a Nvidia GTX 1060 on driver 381.22.
>
> Any ideas what's causing this?

I wouldn't really pay much mind to what uman has to say, he's not the guy who wrote the code, and he's not even particularly technically inclined. In fact the shaders are direct ports of the RA shaders, and should be functionally identical. The only differences should largely be syntactical, as the stock RA shaders don't seem to compile correctly under WebGL, which has a pretty minimal subset of GLSL available.

I have a pretty good idea as to what might be causing the issue, though. I'll see if I can reproduce the behavior in Windows using BGFX and the OpenGL backend. If you're the guy who posted about this on Reddit, I believe I explained there that it's likely due to the half-texel offset between DirectX 9 and OpenGL. It might not be working correctly at the moment on the OpenGL backend, so I'll try to kick it into working.







Entire thread
Subject Posted by Posted on
* Mangled Shaders on MAME 0.185 (Linux) Enverex 05/16/17 07:48 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/17/17 01:51 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) uman  05/17/17 04:51 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Envisaged0ne  05/17/17 06:14 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) uman  05/17/17 07:07 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Envisaged0ne  05/17/17 08:24 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) uman  05/17/17 08:47 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Envisaged0ne  05/17/17 09:06 PM
. * People, please, settle down, there's enough moogle for everyone! MooglyGuy  05/17/17 10:04 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/17/17 02:06 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/17/17 03:25 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/17/17 04:32 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/17/17 11:36 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/18/17 12:07 AM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/18/17 01:02 AM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/18/17 01:05 AM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/18/17 02:12 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/18/17 08:19 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/18/17 10:31 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/19/17 08:11 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/19/17 08:25 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/20/17 02:51 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/20/17 03:59 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/21/17 11:51 AM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  05/21/17 12:00 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  06/10/17 04:20 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  06/10/17 07:39 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) Enverex  06/10/17 08:33 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/20/17 04:34 PM
. * Re: Mangled Shaders on MAME 0.185 (Linux) MooglyGuy  05/19/17 10:36 AM
. * Re: Mangled Shaders on MAME 0.185 (Linux) uman  05/17/17 10:43 AM

Extra information Permissions
Moderator:  redk9258, URherenow, Tafoid 
2 registered and 34 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 2617