glamor: Replace some goofy enum-likes with a real enum.
This unpacks the bitfield into an int size, but my experience has been that packing bitfields doesn't matter for performance. v2: Convert more comparisons against numbers or implicit bool comparisons to comparisons against the enum names, and fix up some comments. Signed-off-by: Eric Anholt <firstname.lastname@example.org> Reviewed-by: Markus Wick <email@example.com>
Showing with 26 additions and 19 deletions