gallium: create helper for swrast+xlib combination