[libvirt PATCH 09/16] domain_conf: graphics: extract EGL-Headless formatting to separate function