vrend: Correctly apply texture levels for texture views

Either we limit the levels by using the parameters in the texture view
or we set the parameters GL_TEXTURE_BASE_LEVEL and GL_TEXTURE_MAX_LEVEL.
Since the latter would result in ugly if-else statements, we stick to the
texture view.

This fixes the CTS test KHR-GL43.texture_view.view_sampling

It fixes also most of the rendering of GravityMark.

Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8339

Signed-off-by: Gert Wollny <gert.wollny@collabora.co.uk>
Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/1166>
2 files changed