Wayland zero-readback presentation should check wl_surface/compositor modifiers
Categories
(Core :: Graphics: WebGPU, defect, P1)
Tracking
()
People
(Reporter: teoxoy, Unassigned)
References
(Blocks 1 open bug)
Details
Currently we create textures with modifiers queried from the Vulkan device only. We should be using the intersection of the modifiers queried from the Vulkan device and those of the wl_surface/compositor.
We can get those via the zwp_linux_dmabuf_v1::modifier event before v4 and via get_default_feedback or get_surface_feedback after v4.
References:
Updated•6 months ago
|
Updated•6 months ago
|
Comment 1•4 months ago
|
||
It seems that this problem could be covered by querying dma buf modifiers from EGL like like Bug 2024932.
Comment 2•4 months ago
|
||
dmabuf modifiers are already loaded by GlobalDMABufFormats() class. Just get the format + modifiers as:
format = GetGlobalDMABufFormats()->GetDRMFormat(FOURCC format);
nsTArray<uint64_t>* format->GetModifiers();
We also export RGBA modifiers as gfxVars to child processes.
Comment 3•4 months ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #1)
It seems that this problem could be covered by querying dma buf modifiers from EGL like like Bug 2024932.
EGL modifiers may be queued on X11 where dmabuf feedback is missing.
Comment 4•4 months ago
|
||
D300528 / Bug 2028402 load the EGL modifiers directly to gfxVars.
Updated•3 months ago
|
Description
•