Open Bug 2053144 (vulkan-video) Opened 1 month ago Updated 1 day ago

[meta] Enable Vulkan videod decoding by default on Linux Desktop

Categories

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

task

Tracking

()

People

(Reporter: padenot, Unassigned)

References

(Depends on 4 open bugs)

Details

(Keywords: meta)

This tracks enabling Vulkan video by default, initially implemented in bug 2021722. Hook up all related bug here.

media.hardware-video-decoding-vulkan.enabled is the main pref here, media.hardware-video-decoding-vulkan.direct-export.enabled is also good if that works.

Summary: Enable Vulkan videod decoding by default on Linux Desktop → [meta] Enable Vulkan videod decoding by default on Linux Desktop
Type: defect → task

At the moment I'm experiencing problems with Vulkan (it falls back to software after some rhythmical stutter) if I disable it and use elfarto vaapi driver it goes ok but if its enable by default, vaapi driver is disabled.
This is is with an nvidia card in Ubuntu 26.04.
Not that this vaapi driver is massively used but it should be noted at least here that for someone that experiences this problems turning off vulkan makes vaapi the default option if correctly setup.

In the meantime I'll try to open a bug regarding this problems

The sandbox patch is still needed (see 2046954 - not yet landed), it may fix the issue as above. You can try if Vulkan Video works with MOZ_DISABLE_RDD_SANDBOX=1 for now, also make sure nvidia-drm modeset is set to Y (see https://bugzilla.mozilla.org/show_bug.cgi?id=2021722#c125).

Depends on: 2045970
Depends on: 2021722
Depends on: 2058347
Depends on: 2056593
Depends on: 2054380

Tymur, we have:

static bool VulkanDirectDecodeExportEnabled() {
  return [...] 
    StaticPrefs::media_hardware_video_decoding_vulkan_direct_export_enabled_AtStartup();
}

we can replace it by HW_DECODED_VIDEO_ZERO_COPY feature (we use that for VA-API too) and configure that for Vulkan too.

You need to log in before you can comment on or make changes to this bug.