This is the first batch of enum validation rework code. Function by function, this move enum validation out of the ES wrappers into the core Mesa routines. There's a sprinkling of core profile filtering as well. There are no OpenGL ES 2.0 conformance regressions on in this series.