st/nine: Rework texture data allocation