The NEW Build Your Own Arcade Controls

Main => Software Forum => Topic started by: dfwdennis on December 02, 2014, 11:58:00 pm

Title: Mame HLSL compilation error with Windows 8.1
Post by: dfwdennis on December 02, 2014, 11:58:00 pm
One of my Black Friday purchases was a new PC for my Mame cabinet.  It (unfortunately) came with Windows 8.1.  I have everything working fine other than when I try to enable HLSL.  When I do that, Mame crashes on launch with the following error:

Unable to compile shader: hlsl\yiq_decode.fx(133,3): error X6077: texld/texldb/t
exldp/dsx/dsy instructions with r# as source cannot be used inside dynamic condi
tional 'if' blocks, dynamic conditional subroutine calls, or loop/rep with break
*.
ID3DXEffectCompiler: Compilation failed

I tried both Mame 0.152 and 0.156 and both of them have the construct in the yiq_decode.fx source file that is causing the problem.  Is this a compatibility issue between Mame and the latest DirectX?   Has anyone else seen this before?
Title: Re: Mame HLSL compilation error with Windows 8.1
Post by: lamprey on December 03, 2014, 01:51:38 pm
I've not see that error before, so I'm not sure of the cause, but you might try installing the 9.0c end user runtime:
http://www.microsoft.com/en-us/download/details.aspx?id=34429 (http://www.microsoft.com/en-us/download/details.aspx?id=34429)

Also, you didn't mention a video card. I assume that a modern computer would be DirectX compatible. But, if not, there you go. :)
Title: Re: Mame HLSL compilation error with Windows 8.1
Post by: dfwdennis on December 04, 2014, 09:40:58 pm
Apparently DirectX 9.x is not compatible with Windows 8.1.  I have DirectX 11.2, and tried to install that version as well but it reported that it is incompatible.
Title: Re: Mame HLSL compilation error with Windows 8.1
Post by: IAmDotorg on December 05, 2014, 08:20:20 am
Apparently DirectX 9.x is not compatible with Windows 8.1.  I have DirectX 11.2, and tried to install that version as well but it reported that it is incompatible.

My cab runs MAME with HLSL just fine on 8.1.

Not sure what to suggest to you, but its something specific with your system, not a 8.1 issue. That may help narrow down the problem.
Title: Re: Mame HLSL compilation error with Windows 8.1
Post by: dfwdennis on December 06, 2014, 05:15:12 pm
Thanks for that data point!  It definitely helps to know that someone else is successfully running Mame on Windows 8.1.