https://bugs.winehq.org/show_bug.cgi?id=54648
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- This one is unfortunately more complicated than it looks, because it's optimized away in a lot of cases. Could you please attach full +d3dcompiler log?