EGL errors with qemu / KVM and Virtio w/ hardware acceleration

I’ve never been able to do Spice with OpenGL with NVIDIA drivers. Neither with 470 nor with any other version. Are you sure you’ve seen Spice with OpenGL work on 470?

The only configuration that brings virtual GL into the guest with NVIDIA drivers has always been a separate EGL (headless) display for 3D rendering for me:

    <graphics type="spice">
      <listen type="none"/>
    </graphics>
    <graphics type="egl-headless">
      <gl rendernode="/dev/dri/renderD128"/>
    </graphics>
    <video>
      <model type="virtio" heads="1" primary="yes">
        <acceleration accel3d="yes"/>
      </model>
      <address type="pci" domain="0x0000" bus="0x00" slot="0x01" function="0x0"/>
    </video>