https://bugs.winehq.org/show_bug.cgi?id=55082
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- This happens because there are indeed to sampler object bound to the same register, but one of them is never used. I'll take a look, but it seems we simply need to eliminate such unused variables before allocating registers, but after dce-related passes were completed.