Enable VA-API for release on AMD
Categories
(Core :: Audio/Video: Playback, enhancement)
Tracking
()
People
(Reporter: stransky, Assigned: stransky)
References
(Depends on 3 open bugs, Blocks 1 open bug)
Details
Attachments
(1 file)
Enable VA-API for release on AMD.
We should enable it for Mesa >= 23.1.1 due to (https://gitlab.freedesktop.org/mesa/mesa/-/issues/8996
Assignee | ||
Updated•2 years ago
|
Comment 1•1 year ago
|
||
I've run through and triaged all the Depends on bugs for this issue. I feel that they are all sufficiently fixed by kernel driver changes or GPU firmware. Can we re-evaluate enabling by default now?
Assignee | ||
Comment 2•11 months ago
|
||
(In reply to Mario Limonciello from comment #1)
I've run through and triaged all the Depends on bugs for this issue. I feel that they are all sufficiently fixed by kernel driver changes or GPU firmware. Can we re-evaluate enabling by default now?
Mario, which Mesa version we should consider for it?
Thanks.
Comment 3•11 months ago
|
||
IMO the mesa version you have is correct. At least from the bugs I've triaged the problem is mainly along the kernel version or VCN microcode version. I don't think Firefox should be in the business of tracking the VCN microcode version for reach product. It's better to advocate that it be pushed down to stable distros that "also" track a newer Firefox version.
One idea that comes to mind for me though is that Firefox could only enable VA-API by default on kernel 6.7 or newer. This will guarantee that any of the SDMA 5.2 systems (Such as Rembrandt and Van Gogh) have picked up the SDMA fix. It will mean that unaffected products that could safely enable it don't, but it's a 'line in the sand'. "Effectively" newer distros could enable VA-API by default.
Assignee | ||
Comment 4•11 months ago
|
||
(In reply to Mario Limonciello from comment #3)
One idea that comes to mind for me though is that Firefox could only enable VA-API by default on kernel 6.7 or newer. This will guarantee that any of the SDMA 5.2 systems (Such as Rembrandt and Van Gogh) have picked up the SDMA fix. It will mean that unaffected products that could safely enable it don't, but it's a 'line in the sand'. "Effectively" newer distros could enable VA-API by default.
Bug 1892845 reports broken AV1 seek on Linux 6.8.10-300.fc40.x86_64 / AMD Radeon Graphics (radeonsi, rembrandt, LLVM 18.1.1, DRM 3.57, 6.8.10-300.fc40.x86_64).
Assignee | ||
Comment 5•3 months ago
|
||
We may consider to enable VA-API on AMD too. Haven't seen any reports recently and Fedora has it enabled by default already.
Assignee | ||
Comment 6•3 months ago
|
||
(In reply to Mario Limonciello from comment #3)
One idea that comes to mind for me though is that Firefox could only enable VA-API by default on kernel 6.7 or newer. This will guarantee that any of the SDMA 5.2 systems (Such as Rembrandt and Van Gogh) have picked up the SDMA fix. It will mean that unaffected products that could safely enable it don't, but it's a 'line in the sand'. "Effectively" newer distros could enable VA-API by default.
Mario, any suggestion which MESA version should be considered to enable VA-API on AMD?
Thanks.
Comment 7•3 months ago
|
||
I checked with mesa folks and they suggest to set the baseline as mesa 24.3.
Comment 8•3 months ago
|
||
Actually, on a second look, 24.2 is OK [1].
If you choose to also detect kernel version, there is an important fix for Navi21 that was included in kernel 6.10 [2]. This commit has also been backported to many stable kernels though and major distros track those (6.8.9, 6.6.30, 6.1.90, 5.15.158, 5.10.216) so I could see an argument for avoiding doing a kernel version check.
[1] The reason is there was a commit backported to 24.2.0 from 24.3 release that's important (https://gitlab.freedesktop.org/mesa/mesa/-/commit/0c024bbe641b092bbb).
[2] https://github.com/torvalds/linux/commit/e0a9bbeea00234c468607b369816547ca8c86458
Assignee | ||
Comment 9•3 months ago
|
||
Updated•3 months ago
|
Assignee | ||
Comment 10•3 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Enables hardware video decoding on AMD graphics cards.
[Affects Firefox for Android]: no
[Suggested wording]:
[Links (documentation, blog post, etc)]:
Comment 11•3 months ago
|
||
Comment 12•3 months ago
|
||
bugherder |
Comment 13•3 months ago
|
||
Added to the Fx136 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx136 release notes.
Updated•2 months ago
|
Description
•