drm/i915: Add functions to emit register offsets to the ring