Load dmabuf modifiers from off main thread
Categories
(Core :: Audio/Video: Web Codecs, defect, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr102 | --- | unaffected |
| firefox113 | --- | unaffected |
| firefox114 | --- | unaffected |
| firefox115 | --- | fixed |
People
(Reporter: chunmin, Assigned: stransky)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression)
Attachments
(1 file)
DMABufDevice::LoadFormatModifiers() requires to be called on main thread , which implicitly implies FFmpegVideoDecoder::Init() needs to be run on the main thread as well since DMABufDevice::LoadFormatModifiers() will be called via the following path:
- FFmpegVideoDecoder::Init()
- FFmpegVideoDecoder::InitVAAPIDecoder() // MOZ_WAYLAND_USE_VAAPI
- FFmpegVideoDecoder::CreateVAAPIDeviceContext()
- widget::GetDMABufDevice()
- widget::DMABufDevice::Configure()
- widget::DMABufDevice::LoadFormatModifiers()
However, FFmpegVideoDecoder::Init() can be called on a non-main thread in some cases. For example, in WebCodecs, the media decoder is going to be exposed to both the main thread and the worker thread. This means either MediaDataDecoder works on the main thread or worker thread, or MediaDataDecoder works in a dedicated task queue (off-main thread) that is operated by the main thread and worker thread, depending on the implementation of VideoDecoder interface.
| Reporter | ||
Comment 1•2 years ago
|
||
Hey :stransky, do you have idea how to make DMABufDevice::LoadFormatModifiers() work off main thread?
Comment 2•2 years ago
|
||
Set release status flags based on info from the regressing bug 1830162
| Reporter | ||
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
(In reply to C.M.Chang[:chunmin] from comment #1)
Hey :stransky, do you have idea how to make
DMABufDevice::LoadFormatModifiers()work off main thread?
Yes, will look at it. We need to run it on main thread on parent process only where dmabuf modifiers are loaded from wayland compositor.
| Assignee | ||
Comment 4•2 years ago
|
||
Updated•2 years ago
|
Comment 6•2 years ago
|
||
| bugherder | ||
| Reporter | ||
Updated•2 years ago
|
Description
•