Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ed0aa42d7b7e6fcc5567b813f7cf3b2f1d54fd52
https://github.com/WebKit/WebKit/commit/ed0aa42d7b7e6fcc5567b813f7cf3b2f1d54fd52
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-03-08 (Sun, 08 Mar 2026)
Changed paths:
M Source/WebCore/platform/graphics/gbm/MemoryMappedGPUBuffer.cpp
Log Message:
-----------
[GBM] Allow ForceLinear buffers even when DRM_FORMAT_MOD_LINEAR is not in the
modifier list
https://bugs.webkit.org/show_bug.cgi?id=309351
Reviewed by Carlos Garcia Campos.
When ForceLinear is requested but DRM_FORMAT_MOD_LINEAR is not among the
supported modifiers, clear the modifier list instead of skipping the format
entirely. This allows GBM to allocate a linear buffer via the implicit
modifier path. Also simplify the error check to crash on any negotiation
failure rather than only on the ForceLinear case.
Covered by existing tests - when using certain GPU drivers.
* Source/WebCore/platform/graphics/gbm/MemoryMappedGPUBuffer.cpp:
(WebCore::MemoryMappedGPUBuffer::create):
Canonical link: https://commits.webkit.org/308883@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications