commit | 7685c37bf47104497d70c4580abb9e050ea8100f | [log] [tgz] |
---|---|---|
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | Mon Sep 28 16:11:38 2020 +0200 |
committer | Marge Bot <eric+marge@anholt.net> | Tue Sep 29 09:04:10 2020 +0000 |
tree | 1632702cb203d7749f0ff790f6b630fdfa5ac1a9 | |
parent | 8f24a14175b7175b73c3c5f91c7700163c75f484 [diff] |
st/mesa: use roundf instead of floorf for lod-bias rounding There's no good reason not to use a symmetric rounding mode here. This fixes the following GL CTS case for me: GTF-GL33.gtf21.GL3Tests.texture_lod_bias.texture_lod_bias_all Fixes: 132b69c4edb ("st/mesa: round lod_bias to a multiple of 1/256") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6892>