backends/drm: don't do direct scanout when HDR brightness isn't 1
Otherwise the brightness multiplier doesn't get applied
This commit is contained in:
parent
979ac5bd50
commit
178d49093c
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ bool EglGbmLayer::doAttemptScanout(GraphicsBuffer *buffer, const ColorDescriptio
|
|||
if (directScanoutDisabled) {
|
||||
return false;
|
||||
}
|
||||
if (m_pipeline->output()->channelFactors() != QVector3D(1, 1, 1) || m_pipeline->iccProfile()) {
|
||||
if (m_pipeline->output()->channelFactors() != QVector3D(1, 1, 1) || (m_pipeline->output()->highDynamicRange() && m_pipeline->output()->brightness() != 1) || m_pipeline->iccProfile()) {
|
||||
// TODO use GAMMA_LUT, CTM and DEGAMMA_LUT to allow direct scanout with HDR
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue