mesa: add glformats integer type/format detection routines