The initial API we added was very simple, just providing a single list of formats, usages and modifiers, but it turned out it was not so simple to iterate the formats, since we always want to iterate by tranche. Also, we want to handle the main and target devices in the future, so we need a new API that simplifies the iteration by tranche and includes the devices.
Pull request: https://github.com/WebKit/WebKit/pull/27255
Committed 277538@main (f78822d601b7): <https://commits.webkit.org/277538@main> Reviewed commits have been landed. Closing PR #27255 and removing active labels.
The Debian 11 build bot is failing after this change because the function 'drmGetDeviceFromDevId' is not available. This function is available since libdrm-dev 2.4.109. Debian 11 features libdrm-dev 2.4.104.
Re-opening for pull request https://github.com/webkit/webkit/pull/27375
This change is no longer needed since we're no longer actively maintaining Debian 11. Distributions using Debian 11, or similar, should provide libdrm-dev >= 2.4.109.