anv/state: Refactor surface state setup into a "fill" function