zink: fix emulation of no mipfilter
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Wed, 17 Mar 2021 10:36:59 +0000 (11:36 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 17 Mar 2021 12:58:12 +0000 (12:58 +0000)
commit539036a990482c9888cb25ba6fa713da132a23d5
tree6c8f8d198634ff17bd7d7207087e7aa4cb92d87d
parented7c6e46e78587addf6ce793f82b2da580049578
zink: fix emulation of no mipfilter

This approach is taken from the Vulkan spec[1], where a robust maxLod
of 0.25 is proposed instead of 0.0.

This has the effect of allowing room for both minification and
magnification filters, yet still rounding down to the right miplevel in
the end.

[1]: https://www.khronos.org/registry/vulkan/specs/1.2-extensions/man/html/VkSamplerCreateInfo.html#_description

Fixes: 8d46e35d16e ("zink: introduce opengl over vulkan")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9649>
src/gallium/drivers/zink/ci/deqp-zink-lvp-fails.txt
src/gallium/drivers/zink/zink_context.c