cleaning dynamic reactive mask stuff

This commit is contained in:
cdozdil
2024-02-25 19:04:25 +03:00
parent 3f2cecf04c
commit d32790d76a
2 changed files with 5 additions and 12 deletions
+4 -11
View File
@@ -242,7 +242,6 @@ class FeatureContext
// xess
xess_context_handle_t xessContext = nullptr;
bool xessMaskEnabled = true;
bool xessInit = false;
// cas
@@ -555,11 +554,6 @@ public:
#pragma region xess methods
bool XeSSMaskEnabled()
{
return xessMaskEnabled;
}
bool XeSSInit(ID3D12Device* device, const NVSDK_NGX_Parameter* initParams)
{
if (device == nullptr)
@@ -681,12 +675,14 @@ public:
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (!AutoExposure) {0:b}", xessParams.initFlags);
}
if (!CyberXessContext::instance()->MyConfig->HDR.value_or(!Hdr))
if (!CyberXessContext::instance()->MyConfig->HDR.value_or(Hdr))
{
xessParams.initFlags |= XESS_INIT_FLAG_LDR_INPUT_COLOR;
CyberXessContext::instance()->MyConfig->HDR = false;
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (HDR) {0:b}", xessParams.initFlags);
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (LDR) {0:b}", xessParams.initFlags);
}
else
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (HDR) {0:b}", xessParams.initFlags);
if (CyberXessContext::instance()->MyConfig->JitterCancellation.value_or(JitterMotion))
{
@@ -704,12 +700,9 @@ public:
if (!CyberXessContext::instance()->MyConfig->DisableReactiveMask.value_or(true))
{
xessMaskEnabled = true;
xessParams.initFlags |= XESS_INIT_FLAG_RESPONSIVE_PIXEL_MASK;
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (ReactiveMaskActive) {0:b}", xessParams.initFlags);
}
else
xessMaskEnabled = false;
#pragma endregion
+1 -1
View File
@@ -153,7 +153,7 @@ QualityRatioUltraPerformance=auto
[Hotfix]
; Force remove XESS_INIT_FLAG_RESPONSIVE_PIXEL_MASK from init flags
; true or false - Default (auto) is false
; true or false - Default (auto) is true
DisableReactiveMask=auto
; These settings defines each resources initial resource