mesa: Track a gl_format for the texture buffer format.