gallium: add facilities for indirect drawing