gallium: use new gallium utility code for generating mipmaps