backends/drm: fix the hardware cursor with atomic modesetting + no modifier support
Unless we have explicit information of the opposite, buffers for the cursor need to be linear
This commit is contained in:
parent
14f6103373
commit
23238b175a
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ bool DrmPlane::updateProperties()
|
|||
m_supportedFormats[iterator.fmt].push_back(iterator.mod);
|
||||
}
|
||||
} else {
|
||||
const QVector<uint64_t> modifiers = {DRM_FORMAT_MOD_INVALID};
|
||||
// if we don't have modifier support, assume the cursor needs a linear buffer
|
||||
const QVector<uint64_t> modifiers = {type.enumValue() == TypeIndex::Cursor ? DRM_FORMAT_MOD_LINEAR : DRM_FORMAT_MOD_INVALID};
|
||||
for (uint32_t i = 0; i < p->count_formats; i++) {
|
||||
m_supportedFormats.insert(p->formats[i], modifiers);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue