Vainfo works but no vaapi acceleration in Snap

Hello,

i am struggling with hardware accelaration with vaapi and mpeg hardware accelaration in my kodi-omega snap. When i start for debug vainfo inside my snap it seem that vaapi works:

kodi-omega
Start Kodi-Setup...
libva info: VA-API version 1.20.0
libva info: User environment variable requested driver 'iHD'
libva info: Trying to open /snap/kodi-omega/x1/usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_20
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.20 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 24.1.0 ()
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile2            :	VAEntrypointVLD

But inside the kodi app is no vaapi acceleration. It looks like that open gl also works fine. Any ideas to get vaapi in kodi working?

This is my snapcraft.yaml

name: kodi-omega
version: 21.10.0
summary: kodi-omega
description: |
  Kodi is an open-source media center software that 
  lets you play movies, music, TV shows, and more.
  This is an unofficial build that includes all available plugins
  from the official repository.
  It comes with a pre installed quite good setting.
  PulseAudio and X11 are required for smooth operation.
  Start from terminal with " kodi-omega "
  For iptv you need a m3u File. The iptv-simple plugin is enabled,
  you have to configure it in Settings => Addons => my addons =>
  PVR Clients => IPTV Simple Client.
  Enjoy your media with Kodi!

confinement: strict
grade: stable
base: core24
source-code: https://github.com/Tibsun75/kodi-omega-snap
platforms:
  amd64:

parts:
  kodi-omega:
    plugin: dump
    source: .
    stage-packages:
      - libass9
      - libcdio19t64
      - libgif7
      - libjpeg-turbo8
      - libcurl4t64
      - libldap2
      - libnghttp2-14
      - libpsl5t64
      - libpython3.12t64
      - libegl1
      - libgl1
      - libxrandr2
      - libasound2t64
      - libavahi-client3
      - libavahi-common3
      - libbluetooth3
      - libbluray2
      - libcec6
      - libsmbclient0
      - libexiv2-27
      - libfstrcmp0
      - liblcms2-2
      - liblirc-client0t64
      - libmicrohttpd12t64
      - libmysqlclient21
      - libnfs14
      - libplist-2.0-4
      - libpulse0
      - apulse
      - libtag1v5-vanilla
      - libtinyxml2.6.2v5
      - libva-drm2
      - libva-x11-2
      - libva-glx2
      - libva-wayland2
      - libvdpau1
      - libxslt1.1
      - libshairplay0
      - libtinyxml2-10
      - libgl1-mesa-dri
      - libpulse0
      - libvdpau-va-gl1
      - libva2
      - libva-drm2
      - libva-dev
      - libdrm2
      - i965-va-driver
      - intel-media-va-driver
      - libpcre3
      - vainfo
      - nano
      - libglu1-mesa

apps:
  kodi-omega:
    command-chain:
      - snap/launcher.sh # Start Script
    command: usr/local/lib/kodi/kodi-x11
    environment:
      LD_LIBRARY_PATH: $SNAP/usr/lib/x86_64-linux-gnu/pulseaudio:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/usr/lib:$SNAP/usr/lib/x86_64-linux-gnu/samba:$SNAP/lib/x86_64-linux-gnu:$LIBGL_DRIVERS_PATH:$SNAP/usr/local/lib/kodi:$LD_LIBRARY_PATH
      KODI_HOME: $SNAP/usr/local/share/kodi
      XBMCBIN: $SNAP/usr/local/lib/kodi
      LIBGL_DRIVERS_PATH: $SNAP/usr/lib/x86_64-linux-gnu/dri
      PULSE_SERVER: unix:/run/user/1000/pulse/native
      LIBVA_DRIVERS_PATH: $SNAP/usr/lib/x86_64-linux-gnu/dri
      LIBVA_DRIVER_NAME: iHD

    plugs:
      - audio-playback
      - browser-support
      - desktop
      - desktop-legacy
      - home
      - network
      - network-bind
      - network-status
      - media-hub
      - opengl
      - optical-drive
      - screen-inhibit-control
      - unity7
      - wayland
      - x11
      - pulseaudio
      - hardware-observe
      - avahi-observe
      - gsettings
      - joystick
      - upower-observe
      - removable-media