lib: Split the GTT mapping out of get_cairo_surface()