st/mesa: flush bitmap cache before texture functions