platforms/drm: fix buffer re-using
We don't always have explicit modifiers when we're using AMS CCBUG: 442677
This commit is contained in:
parent
cf7cc0d43e
commit
e004f1b7fc
1 changed files with 2 additions and 1 deletions
|
@ -279,8 +279,9 @@ bool DrmPipeline::checkTestBuffer()
|
|||
QSharedPointer<DrmBuffer> buffer;
|
||||
// try to re-use buffers if possible.
|
||||
const auto &checkBuffer = [this, backend, &buffer](const QSharedPointer<DrmBuffer> &buf){
|
||||
const auto &mods = supportedModifiers(buf->format());
|
||||
if (buf->format() == backend->drmFormat()
|
||||
&& (!m_gpu->atomicModeSetting() || supportedModifiers(buf->format()).contains(buf->modifier()))
|
||||
&& (mods.isEmpty() || mods.contains(buf->modifier()))
|
||||
&& buf->size() == sourceSize()) {
|
||||
buffer = buf;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue