freedreno: Add a helper for computing guardband sizes
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 17 Jul 2020 13:15:42 +0000 (15:15 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Jul 2020 14:26:18 +0000 (14:26 +0000)
commit19895dde909dd065cc6ac4d01c95523fa0d8b47f
tree4ea35f02316300172c6af6adc68b1367bddc1255
parent86a65977140c89148b1ea32ab06a38c95b26322c
freedreno: Add a helper for computing guardband sizes

This should be much better than the previous method that was more
guesswork-based than anything else. It returns a value within 1 of the
blob for every input value I've tested, and it seems like it returns
slightly better (but still legal) answers when it differs.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5950>
src/freedreno/common/freedreno_guardband.h [new file with mode: 0644]
src/freedreno/common/meson.build