st/mesa: clean-up of format-related code
3 files changed