These two patches correct issues with level and layer clamping with texture views. With the main series + this, Jon's rendering-levels and rendering-layers tests behave correctly. I'll fit these into the appropriate points in the main series, but didn't feel it was necessary to send out the whole thing again.