Checked this patch into GIT after 2 days of testing with unreliable results as far as speedup goes.   Anyway the code looks more correct.  And the initial problem of crashing without any mod was still gone.

I tested with "export ALLOW_OLD_16BPC" using the files I downloaded from the URL provided by Andrew - specifically "1920x1440_16BIT_COLOR.tar.bz2".  When I loaded these files the Format got set to 8-bit instead of 16 so that confused me.  I specifically set the format to RGBA-16 and dragged files from the resource window to test also.  The fps I got with the patch in and the patch out, never varied by much; sometimes better with the patch and sometimes better without.

On Wed, Mar 11, 2026 at 5:06 AM Andrew Randrianasulu <randrianasulu@gmail.com> wrote:
I use
if ( a = b) instead of
if (a == b)

so it was not working as intended (fps was just 15 instead of 58 for
vulkan accelerated h265 4k HDR file)

Please test, I tested like this

 RADV_PERFTEST=video_decode ALLOW_OLD_16BPC=1 bin/cin
~/K38_sdcard1/Documents/iPhone11_4K-recorder_59.940HDR10.mov