virgl: move texture metadata to common code