gallium/hud: also try R8_UNORM format for font texture
authorBrian Paul <brianp@vmware.com>
Wed, 4 Feb 2015 20:44:48 +0000 (13:44 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 7 Feb 2015 18:03:37 +0000 (11:03 -0700)
commitd1e21325cf3c394f5fb28808a113826ea3b7f54b
treec751f0c6b9843e8946e2dd0077f01859a3571448
parent6447e9dbfad851f700266dda8003b76e172ae92b
gallium/hud: also try R8_UNORM format for font texture

Convert the code to try formats from an array rather than a bunch
of if/else cases.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/hud/font.c