@haajee
I had also some difficulties to get video hw acceleration in Chromium and Kodi, but now it's all working, even hdr10 and hdr8 do work in Kodi (gbm) by renaming the dtb overlay files from rock 5b to rk3588-.....
What I did to make it work: (perhaps some of the latest steps were not necessary, I was clueless)
sudo add-apt-repository ppa:liujianfeng1994/panfork-mesa
sudo add-apt-repository ppa:liujianfeng1994/rockchip-multimedia
sudo nano /etc/rc.local
echo dec > /dev/video-dec0
chown root:video /dev/video-dec0
chmod 0660 /dev/video-dec0
echo enc > /dev/video-enc0
chown root:video /dev/video-enc0
chmod 0660 /dev/video-enc0
sudo nano /etc/udev/rules.d/11-rockchip-multimedia.rules
KERNEL=="mpp_service", MODE="0660", GROUP="video"
KERNEL=="rga", MODE="0660", GROUP="video"
KERNEL=="system-dma32", MODE="0666", GROUP="video"
KERNEL=="system-uncached-dma32", MODE="0666", GROUP="video" RUN+="/usr/bin/chmod a+rw /dev/dma_heap"
sudo ln -s /lib /usr/lib64
cd /usr/lib64/ && sudo ln -s aarch64-linux-gnu/libv4l2.so.0.0.0 libv4l2.so
sudo apt-get update && sudo apt dist-upgrade
sudo apt install chromium-browser=$(apt-cache show chromium-browser|grep Version|grep rkmpp|cut -d " " -f2) chromium-codecs-ffmpeg-extra=$(apt-cache show chromium-browser|grep Version|grep rkmpp|cut -d " " -f2) libv4l-rkmpp v4l-utils
sudo nano /etc/chromium-browser/default
CHROMIUM_FLAGS="--use-gl=egl"
You might need to replace the existing one, not sure about that
wget https://github.com/JeffyCN/rockchip_mirrors/raw/libmali/firmware/g610/mali_csffw.bin
sudo mv mali_csffw.bin /lib/firmware/
For hw acceleration you need to use gbm or wayland. The easiest way I found was installing ubuntu-desktop.
sudo apt install ubuntu-desktop
Then add add the following line to /etc/gdm3/custom.conf
WaylandEnable=true
After that I had still no acceleration with videos in Chromium, then I tried some things, probably a lot of unnecessary stuff.
I'd installed almost all the ffmpeg related things from the added repository and mesa-vulkan-drivers primus-vk libgles2-mesa libd3dadapter9-mesa
As I said most likely not all necessary but this worked for me
Now I can watch 4k videos on YouTube with Chromium with around 15% cpu load.
Kodi only displays video with GBM (run Kodi from Login screen after copying it to wayland)
sudo mv /usr/share/xsessions/kodi.desktop /usr/share/wayland-sessions/kodi-wayland.desktop
For HDR in Kodi under gbm I renamed in /boot/dtb/rockchip/overlay/
rock-5b-radxa-display-10hd.dtbo --> rk3588-display-10hd.dtbo
rock-5b-radxa-display-8hd.dtbo --> rk3588-display-8hd.dtbo
Now the HDR sign on my tv came up,
The only things I would really have working is audio passthrough in Kodi and cec, so if anyone knows what has to be done for that I would really like to know.
I've got multichannel audio working however, so I can live without it for a while.
I'm really glad how quick all these things are working by all the hard work of the developers, thank you