backends/drm: clear format list before parsing IN_FORMATS property
Otherwise we add the same modifiers every time the properties get updated, which bloats the list and reduces performance over time
This commit is contained in:
parent
8408dcfad0
commit
593be99207
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ bool DrmPlane::updateProperties()
|
|||
m_possibleCrtcs = p->possible_crtcs;
|
||||
|
||||
// read formats from blob if available and if modifiers are supported, and from the plane object if not
|
||||
m_supportedFormats.clear();
|
||||
if (inFormats.isValid() && inFormats.immutableBlob() && gpu()->addFB2ModifiersSupported()) {
|
||||
drmModeFormatModifierIterator iterator{};
|
||||
while (drmModeFormatModifierBlobIterNext(inFormats.immutableBlob(), &iterator)) {
|
||||
|
|
Loading…
Reference in a new issue