st/dri: flush_frontbuffer, allocate_textures for dri2