Thank you!! Just what I need, I didn't know what packages were needed to enable x11 and glx.
I built intel media driver from source code. From this GitHub - intel/media-driver I also needed to built gmmlib ( Intel Graphics Memory Management Library) and libva. Following @tkn help, I got to properly built driver x11 and glx support .
This is the driver version from latest github:
vainfo: VA-API version: 1.20 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 23.3.0 (ca1098d8a)
Previous driver version that came stock with ubuntu mate 22.04 was VA-API 1.14.0 and Intel iHD driver for Intel(R) Gen Graphics - 22.3.1, which somehow doesn't support av1 hw acceleration.
Now with the latest driver, av1 works either on mpv and firefox (youtube).
youtube playing av1 video