platforms/drm: Avoid making real commits while searching for output config
This change limits the brute force output configuration search routine to test only commits, it's way more efficient than real commits. CCBUG: 442603
This commit is contained in:
parent
eb1daa0aad
commit
6bbda88ab5
1 changed files with 2 additions and 2 deletions
|
@ -425,7 +425,7 @@ bool DrmGpu::commitCombination(const QVector<DrmPipeline *> &pipelines)
|
||||||
pipeline->setup();
|
pipeline->setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (DrmPipeline::commitPipelines(pipelines, DrmPipeline::CommitMode::Commit)) {
|
if (DrmPipeline::commitPipelines(pipelines, DrmPipeline::CommitMode::Test)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
for (const auto &pipeline : qAsConst(pipelines)) {
|
for (const auto &pipeline : qAsConst(pipelines)) {
|
||||||
|
|
Loading…
Reference in a new issue