mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-01-09 17:58:43 +00:00
Allow negotation of 36 and 48 bit deep color modes
This commit is contained in:
parent
755c7c9895
commit
a3d1e9a117
1 changed files with 9 additions and 3 deletions
|
@ -447,9 +447,15 @@ bool DrmRenderer::initialize(PDECODER_PARAMETERS params)
|
|||
m_HdrOutputMetadataProp = prop;
|
||||
}
|
||||
else if (!strcmp(prop->name, "max bpc") && m_Main10Hdr) {
|
||||
int err = drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR,
|
||||
prop->prop_id, 10);
|
||||
if (err == 0) {
|
||||
if (drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR, prop->prop_id, 16) == 0) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Enabled 48-bit HDMI Deep Color");
|
||||
}
|
||||
else if (drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR, prop->prop_id, 12) == 0) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Enabled 36-bit HDMI Deep Color");
|
||||
}
|
||||
else if (drmModeObjectSetProperty(m_DrmFd, m_ConnectorId, DRM_MODE_OBJECT_CONNECTOR, prop->prop_id, 10) == 0) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Enabled 30-bit HDMI Deep Color");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue