Branch: refs/heads/webkitglib/2.52
Home: https://github.com/WebKit/WebKit
Commit: 14d09d1416f7c87c811b7613be4f88ae6b70a296
https://github.com/WebKit/WebKit/commit/14d09d1416f7c87c811b7613be4f88ae6b70a296
Author: Nikolas Zimmermann <[email protected]>
Date: 2026-03-09 (Mon, 09 Mar 2026)
Changed paths:
M Source/WebCore/platform/graphics/gbm/MemoryMappedGPUBuffer.cpp
Log Message:
-----------
Cherry-pick 308883@main (ed0aa42d7b7e).
https://bugs.webkit.org/show_bug.cgi?id=309351
[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
Canonical link: https://commits.webkit.org/305877.174@webkitglib/2.52
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications