[idd] hdr: publish only per-content metadata

Monitor-default HDR metadata describes the virtual display rather than
the captured content. Do not expose it through KVMFR or use it to select
downstream processing limits.

Only publish explicit NEW frame metadata and otherwise use the complete
PQ range internally.
This commit is contained in:
Geoffrey McRae committed 2026-07-23 09:44:00 +10:00
1 parent 1b0e1cf74b
commit 21a0fc08fb
5 files changed
+22 -109

No files matched your search

+4 -10
View File
@@ -191,17 +191,11 @@ NTSTATUS LGIddAdapterCommitModes2(IDDCX_ADAPTER adapter, const IDARG_IN_COMMITMO
NTSTATUS LGIddMonitorSetDefaultHdrMetadata(IDDCX_MONITOR monitor,
const IDARG_IN_MONITOR_SET_DEFAULT_HDR_METADATA* inArgs)
{
auto* wrapper = WdfObjectGet_CIndirectMonitorContextWrapper(monitor);
auto* ctx = wrapper->context->GetDeviceContext();
if (ctx->IsSoftwareMode())
{
ctx->SetHDRActive(nullptr);
return STATUS_SUCCESS;
}
ctx->SetHDRActive(inArgs->Data.pHdr10);
UNREFERENCED_PARAMETER(monitor);
UNREFERENCED_PARAMETER(inArgs);
// This metadata describes the virtual monitor. Explicit per-content HDR10
// metadata is obtained from the swap chain and forwarded separately.
return STATUS_SUCCESS;
}