glx: add support for putimageshm2 path (v2)