config/monitor: Add monitor v2 HDR rules (#10623)

This commit is contained in:
UjinT34
2025-06-15 13:15:18 +03:00
committed by GitHub
parent 3db3baa19e
commit c3894d9288
7 changed files with 108 additions and 20 deletions

View File

@@ -1485,10 +1485,7 @@ bool CHyprRenderer::commitPendingAndDoExplicitSync(PHLMONITOR pMonitor) {
static auto PPASS = CConfigValue<Hyprlang::INT>("render:cm_fs_passthrough");
const bool PHDR = pMonitor->m_imageDescription.transferFunction == CM_TRANSFER_FUNCTION_ST2084_PQ;
const bool SUPPORTSPQ = pMonitor->m_output->parsedEDID.hdrMetadata.has_value() ? pMonitor->m_output->parsedEDID.hdrMetadata->supportsPQ : false;
Debug::log(TRACE, "ColorManagement supportsBT2020 {}, supportsPQ {}", pMonitor->m_output->parsedEDID.supportsBT2020, SUPPORTSPQ);
if (pMonitor->m_output->parsedEDID.supportsBT2020 && SUPPORTSPQ) {
if (pMonitor->supportsHDR()) {
// HDR metadata determined by
// PPASS = 0 monitor settings
// PPASS = 1