Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rendervulkan: apply hdr-debug-force-output option in nested mode #1003

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions src/steamcompmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,15 @@ create_color_mgmt_luts(const gamescope_color_mgmt_t& newColorMgmt, gamescope_col
}
}

int g_nAsyncFlipsEnabled = 0;
int g_nSteamMaxHeight = 0;
bool g_bVRRCapable_CachedValue = false;
bool g_bVRRInUse_CachedValue = false;
bool g_bSupportsST2084_CachedValue = false;
bool g_bForceHDR10OutputDebug = false;
bool g_bHDREnabled = false;
bool g_bHDRItmEnable = false;

static void
update_color_mgmt()
{
Expand All @@ -296,6 +305,13 @@ update_color_mgmt()
&g_ColorMgmt.pending.displayColorimetry, &g_ColorMgmt.pending.displayEOTF,
&g_ColorMgmt.pending.outputEncodingColorimetry, &g_ColorMgmt.pending.outputEncodingEOTF );
}
else if (g_bForceHDR10OutputDebug)
{
g_ColorMgmt.pending.displayColorimetry = displaycolorimetry_2020;
g_ColorMgmt.pending.displayEOTF = EOTF_PQ;
g_ColorMgmt.pending.outputEncodingColorimetry = displaycolorimetry_2020;
g_ColorMgmt.pending.outputEncodingEOTF = EOTF_PQ;
}
else
{
g_ColorMgmt.pending.displayColorimetry = displaycolorimetry_709;
Expand Down Expand Up @@ -678,15 +694,6 @@ static std::vector<pollfd> pollfds;

#define MWM_TEAROFF_WINDOW 1

int g_nAsyncFlipsEnabled = 0;
int g_nSteamMaxHeight = 0;
bool g_bVRRCapable_CachedValue = false;
bool g_bVRRInUse_CachedValue = false;
bool g_bSupportsST2084_CachedValue = false;
bool g_bForceHDR10OutputDebug = false;
bool g_bHDREnabled = false;
bool g_bHDRItmEnable = false;

Window x11_win(steamcompmgr_win_t *w) {
if (w == nullptr)
return None;
Expand Down
Loading