commit | 75e01d01a53bab40b468897e08b144a1393e1013 | [log] [tgz] |
---|---|---|
author | Dave Airlie <airlied@redhat.com> | Tue Apr 14 15:28:05 2020 +1000 |
committer | Dave Airlie <airlied@redhat.com> | Thu Jul 16 05:46:57 2020 +1000 |
tree | c369b3e21d884a6d238a6252bef3d3723b3c967f | |
parent | a9c94861063d16bd6f1f71b4dda7ddd1d3438313 [diff] |
gallivm/sample: always square rho before fast log2 The fast log2 works better if rho is squared, i.e. fast_log2(sqrt(2)) == 0.4 0.5 * fast_log2(2) == 0.5 so just square rho, and always divide by 2 afterwards. Fixes: GTF-GL45.gtf30.GL3Tests.sgis_texture_lod.sgis_texture_lod_basic_lod_selection Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5820>