News: 0001644999

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

Microsoft Lands Initial AV1 Encoding Using DirectX 12 + HMFT Within Mesa 26.2

([Microsoft] 3 Hours Ago AV1 Encode)


The newest, unexpected addition to the Mesa codebase by Microsoft engineers is contributed accelerated AV1 video encoding on the GPU using a combination of DirectX 12 and the Hardware Media Foundation Transform (HMFT) support that is part of the Windows Media Foundation layer.

This AV1 video encoding layered upon DX12+HMFT for cross-vendor support on Windows is done to benefit Microsoft's continued ambitions around Windows Subsystem for Linux (WSL) support.

The code merged today for Mesa 26.2 provides a "prototype" implementation good enough for I and P frame encoding but not any advanced features until further integration takes place. This new Mesa code was worked on directly by Microsoft engineers.

Getting this AV1 encode prototype up and running was just around 900 new lines of code on the Mesa side. Those interested can see [1]this merge request for the code now upstreamed for this quarter's Mesa 26.2 release.



[1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42639



History has much to say on following the proper procedures. From a history
of the Mexican revolution:
"Hidalgo was later defeated at Guadalajara. The rebel army was
captured on its way through the mountains. All were courtmartialed and
shot, except Hidalgo, because he was a priest. He was handed over to
the bishop of Durango who excommunicated him and returned him to the
army where he was then executed."