The option is already there, but it wasn't available from UI. Only show it when B-frames are supported.
Libva is directly used to check if DRI devices support H264 encoding.