Best way to get h264 accelerated again?

Hi, I’m affected by this issue looking for help. After the upgrade I’ve lost HW acc. From the instructions here to build mesa locally from the repos Upstream mesa removal of AVC/HEVC/VC-1 hardware acceleration (AMD GPUs) - #31 by Leo

#!/bin/bash

cd /tmp/
git clone https://gitlab.manjaro.org/packages/extra/mesa.git
cd /tmp/mesa/
sed -i '/-D microsoft-clc=disabled \\/a \    -D video-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc \\' PKGBUILD
makepkg -si
cd /tmp/
rm -Rf mesa

It builds and installs but when trying to play a video via mpv or vlc or trying to run vdpauinfo I get this error:

mpv: ../mesa-22.3.1/src/compiler/glsl_types.cpp:1245: static const glsl_type* glsl_type::get_array_instance(const glsl_type*, unsigned int, unsigned int): Assertion `glsl_type_users > 0' failed.
Aborted (core dumped)

Downgrading to the previous version with pacman -U /var/cache/pacman/pkg/mesa-22.2.3-1.1-x86_64.pkg.tar.zst /var/cache/pacman/pkg/mesa-vdpau-22.2.3-1-x86_64.pkg.tar.zst gives HW acc back but I also lost realtime privileges (laptop used as a DAW) - continuous xruns when playing video/audio

From lshw:
ATI Radeon HD 5650M(obile) graphics card

*-display
                description: VGA compatible controller
                product: Madison [Mobility Radeon HD 5650/5750 / 6530M/6550M]
                vendor: Advanced Micro Devices, Inc. [AMD/ATI]

From cat /proc/cpuinfo
Intel Core i5 M 450 2.40GHz (Arrandale) circa 2008

model name	: Intel(R) Core(TM) i5 CPU       M 450  @ 2.40GHz

mhwd-kernel -li

Currently running: 5.15.79-1-rt54-MANJARO (linux515)
The following kernels are installed in your system:
   * linux419
   * linux515-rt

Any help to get HW acc back would be greatly appreciated --thanks