Floods caused total loss of Rs 8,071 crore to state, says Karnataka CM