mpv icon indicating copy to clipboard operation
mpv copied to clipboard

D3D11 backend incompatible with latest shaderc and glslang

Open mxalbert1996 opened this issue 8 years ago • 6 comments

mpv version and platform

mpv 0.28.0-487-g65f0825 on Windows 10 1803 (17134.1)

Reproduction steps

Build mpv with latest shaderc and glslang and play a video using d3d11 backend.

Expected behavior

Mpv plays the video normally.

Actual behavior

Mpv shows a blue picture and only audio is normally outputted. error X4555: cannot use casts on l-values appears in the log. I suppose it's related to glslang change. The last good build I tried was https://github.com/google/shaderc/commit/71b0f0052125d3f9847b29c347ed9221e8df9ac3

Log file

https://0x0.st/sQZF.log

mxalbert1996 avatar Apr 23 '18 09:04 mxalbert1996

@mxalbert1996 i'm pretty sure that by now everyone is aware of that problem.Even @shinchiro didn't update the shaderc in his latest builds.We just have to wait for a fix.

dnmTX avatar Apr 24 '18 07:04 dnmTX

OK. I was always building mpv myself so sorry for my late awareness.

mxalbert1996 avatar Apr 24 '18 10:04 mxalbert1996

@dnmTX No, that problem you're probably referring is already fixed, see: https://github.com/KhronosGroup/SPIRV-Tools/issues/1487

shinchiro actually uses the latest shaderc in his latest build since it was built after https://github.com/shinchiro/mpv-winbuild-cmake/commit/e3e684a9109da917290c6d1a5cc467c3a6c45742

This time the issue is that crossc uses outdated SPIRV-Cross as submodule. It doesn't affect shinchiro's build because he always pulls the latest commit of SPIRV-Cross with git submodule update --remote --recursive

I've also ran into the same problem as OP described and I was compiling mpv using media autobuild suite. Replacing git submodule update --init with git submodule update --init --remote --recursive in suite's script fixed it.

So @rossy needs to update SPIRV-Cross in his crossc repo.

rld243 avatar Apr 24 '18 15:04 rld243

@rld243 i thought the shaderc issue was still present. Apologize for any inconvenience.

dnmTX avatar Apr 24 '18 23:04 dnmTX

@rld243 You're right. I pushed a new version of crossc that points to SPIRV-Cross git master, so it should work out-of-the-box now.

rossy avatar Apr 25 '18 03:04 rossy

The latest crossc fixed the problem. Thanks!

mxalbert1996 avatar Apr 25 '18 15:04 mxalbert1996