anv/formats: Add an anv_get_format helper