Closed Bug 1836021 Opened 1 years ago Closed 1 year ago

[Linux/VA-API] Force-enabling hardware decoding no longer works (FEATURE_FAILURE_VIDEO_DECODING_MISSING)

Categories

(Core :: Audio/Video: Playback, defect)

Firefox 115
Unspecified
Linux
defect

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox113 --- unaffected
firefox114 --- unaffected
firefox115 --- fixed
firefox116 --- fixed

People

(Reporter: ke5trel, Assigned: stransky)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached file diagnostics.txt (deleted) —

STR:

  1. Latest Nightly 115.0a1 (2023-05-30), Ubuntu 23.04 (R600).
    gfx.webrender.all = true  
    media.ffmpeg.vaapi.enabled = true
    media.hardware-video-decoding.force-enabled = true
  1. Play a H264 mp4 file.
  2. Visit about:support.

Hardware decoding stopped working for H264 videos with these settings.

The blocklist FEATURE_HARDWARE_VIDEO_DECODING_NO_R600 is overridden but H264_HW_DECODE shows as blocklisted FEATURE_FAILURE_VIDEO_DECODING_MISSING.

Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=752dc76b26eb54e7dfa875c749e91526496688b6&tochange=66bf60da3f97ba47a416a97db7ba374f4b86d66c

Regressed by Bug 1831038.

:stransky, since you are the author of the regressor, bug 1831038, could you take a look?

For more information, please visit BugBot documentation.

Flags: needinfo?(stransky)

Plase run Firefox on terminal with MOZ_GFX_DEBUG=1 env variable and attach output here.
Thanks.

Flags: needinfo?(stransky) → needinfo?(ke5trel)
Attached file MOZ_GFX_DEBUG.txt (deleted) —

Output of MOZ_GFX_DEBUG=1 firefox.

Flags: needinfo?(ke5trel)

https://searchfox.org/mozilla-central/rev/daedd554ae8a2c7f420ad77311134c8c298ba318/widget/gtk/GfxInfo.cpp#1158-1159

if (aFeature == nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING &&
*aStatus == nsIGfxInfo::FEATURE_STATUS_OK) {
GetDataVAAPI();

I assume Feature Status is FEATURE_HARDWARE_VIDEO_DECODING_NO_R600.

Would this work?

if (aFeature == nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING
  && (*aStatus == nsIGfxInfo::FEATURE_STATUS_OK || media_hardware_video_decoding_force_enabled_AtStartup())
) {

I see. Well we should move the VA-API test to gfxPlatform then.

Flags: needinfo?(stransky)
Severity: -- → S3

Set release status flags based on info from the regressing bug 1831038

(In reply to Darkspirit from comment #4)

Would this work?

if (aFeature == nsIGfxInfo::FEATURE_HARDWARE_VIDEO_DECODING
  && (*aStatus == nsIGfxInfo::FEATURE_STATUS_OK || media_hardware_video_decoding_force_enabled_AtStartup())
) {

That looks reasonable.

Flags: needinfo?(stransky)
Assignee: nobody → stransky
Status: NEW → ASSIGNED
Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/236a3de9726e [Linux] Probe VA-API devices if HW acceleration is force enabled r=emilio

:stransky any updates on this?
Next week is the final week of Fx115 beta

Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/7a8c23db9c24 [Linux] Probe VA-API devices if HW acceleration is force enabled r=emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
Attachment #9339984 - Attachment description: Bug 1836021 [Linux] Probe VA-API devices if HW acceleration is force enabled r=emilio → Bug 1836021 [Linux] Probe VA-API devices if HW acceleration is force enabled (beta) r=emilio

Comment on attachment 9339984 [details]
Bug 1836021 [Linux] Probe VA-API devices if HW acceleration is force enabled (beta) r=emilio

Beta/Release Uplift Approval Request

  • User impact if declined: VA-API will be disabled for users who enabled it before by pref. That's unfortunate as we're going to ship VA-API by default for all Intel GPU in 115. So users with VA-API explicitly enabled for FF < 115.0 will end up with broken config.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Enable VA-API probe when user asks for it (set by pref). It should not add a regression as it keep behavior from 114 line.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(stransky)
Attachment #9339984 - Flags: approval-mozilla-beta?

Comment on attachment 9339984 [details]
Bug 1836021 [Linux] Probe VA-API devices if HW acceleration is force enabled (beta) r=emilio

Approved for 115.0b8.

Attachment #9339984 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: