https://bugs.winehq.org/show_bug.cgi?id=34052
--- Comment #44 from Stefan Dösinger stefan@codeweavers.com --- I tested my patch on r600g and indeed some geometry that looked OK previously now starts to flicker.
With a different test I looked what the driver returns for reads with indices < 0 and > 255. My patch works as intended in the sense that it moves the int constants into the general range of c[-1] to c[-30]. Unfortunately the driver returns random values for uniforms that aren't defined by our shader, whereas Nvidia pretty reliably returns 0 for them. So instead of reading wrong but stable values (the int constants) the game now reads wrong and unstable values.