mesa: some unused code refactors + driver state bit refactors
The first 5 of these are just unused code refactors, the draw one is probably the on that needs most eyes on it.
The rest just removed the statically assigned state driver bits, and cleans up the results, there are still some non-static assigned one, it might be worth converting these to conditionals based on st/ctx bools at time of use, but we should think about that later.
@mareko most likely to notice.