Commit ed0aa42
committed
[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@main1 parent 2b9471c commit ed0aa42
File tree
1 file changed
+8
-7
lines changed- Source/WebCore/platform/graphics/gbm
1 file changed
+8
-7
lines changedLines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | | - | |
90 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
104 | 105 | | |
105 | 106 | | |
106 | 107 | | |
107 | | - | |
108 | | - | |
| 108 | + | |
| 109 | + | |
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
| |||
0 commit comments