diff options
author | Brian Paul <[email protected]> | 2011-05-21 10:43:49 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-05-24 08:49:01 -0600 |
commit | d57e95f22af1a1b2d9013db7a15524717bd29579 (patch) | |
tree | e72df8ca0a797e9956a700f210b682ce75b2d1a1 /bin | |
parent | c3c1976f522a67be6a0619e938a90cf186ad42e6 (diff) |
st/mesa: rewrite st_choose_format() to be table driven
Instead of using a giant switch statement with lots of code, use a
table to convert GL format enums to pipe formats.
Tested by running the old code next to the new and asserting that
the return value was the same for piglit tests.
We're doing a linear search, but if that ever appears to be too slow
the table could easily be sorted or hashed.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions