d3d12+microsoft/compiler: Take texture state and texture levels into account when lowering int textures
- the texture state might also define a lod bias and min_lod and max_lod that need to be accounted for when evaluating selecting the lod. In addition the lod must not be larger then the index of the last available texture level.
- the ordering of the texture coordinates is actually (s, t, r), so fix this when passing the boundary conditions
- replace the per-coordinate values with an array to simplify the lowering pass
- mark the fmod instruction as exact because otherwise the result are not sufficiently accurate to pass the CTS
This fixes all the KHR-GL32.texture_repeat_mode.* tests that were still failing.
Edited by Gert Wollny