This is a bunch of patches moving a lot of wrappers out of the state tracker into mesa code.
@pepp @mareko @anholt