commit | 9fd0f455af7bc741ea330fcd12478833580dbcfc | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Wed Jul 01 13:00:16 2020 -0700 |
committer | Eric Anholt <eric@anholt.net> | Wed Aug 12 14:22:24 2020 -0700 |
tree | c92947cf63d43685c301506a627fd9e1eb61f2f1 | |
parent | 4064a6cd207811434e5400a613b3833fbda6b787 [diff] |
util: Change a codegenned switch statement to a nice little table. This saves us 13 to 35kb on release drivers in my builds. Acked-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5826>