st/mesa: support for 1D/2D texture arrays