Bug 240637
Summary: | [Linux] GBMBufferSwapchain should only conditionally create linear-formatted buffer objects | ||
---|---|---|---|
Product: | WebKit | Reporter: | Zan Dobersek <zan> |
Component: | New Bugs | Assignee: | Zan Dobersek (Reviews) <zdobersek> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 237649 |
Zan Dobersek
Right now, every gbm_bo object created in GBMBufferSwapchain is created in linear format. This shouldn't be the case, giving the graphics driver chance to choose the best possible attributes for the buffer object (e.g. most optimal tiling approach).
Currently, linearity is required only in media playback, when falling back onto software decoder, results of which are then copied into the spawned gbm_bo object. In most other cases avoiding linearity might be beneficial, so it should be done.
This will most likely be solved by passing the GBMBufferSwapchain constructor or getBuffer() call some specific flags requesting a linear buffer.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Zan Dobersek
Pull request: https://github.com/WebKit/WebKit/pull/1008
EWS
Committed r294803 (250959@main): <https://commits.webkit.org/250959@main>
Reviewed commits have been landed. Closing PR #1008 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/93911506>