i965/gen4: Expose the guts of URB recalculation as a helper