platforms/drm: only test combinations if there are any

Otherwise we could hit an assert in DrmPipeline
This commit is contained in:
Xaver Hugl 2021-09-09 11:28:33 +02:00
parent ffc4c12548
commit b89f04943c

View file

@ -265,7 +265,7 @@ QVector<DrmPipeline *> DrmGpu::findWorkingCombination(const QVector<DrmPipeline
{
if (connectors.isEmpty() || crtcs.isEmpty()) {
// no further pipelines can be added -> test configuration
if (commitCombination(pipelines)) {
if (pipelines.isEmpty() || commitCombination(pipelines)) {
return pipelines;
} else {
return {};