Skip to content

util/math: don't pre-truncate float conversion

Mike Blumenkrantz requested to merge zmike/mesa:maffs into main

What does this MR do and why?

util/math: don't pre-truncate float conversion

by specifying the constant values with 'f', the division is truncated,
which causes the calculation here to also be truncated and give slightly
different results than expected

this mainly affects vertex attribute fetches through the translate module

cc: mesa-stable

Merge request reports