mesa: add texsubimage() helper