@@ -242,7 +242,6 @@ class FeatureContext
242
242
243
243
// xess
244
244
xess_context_handle_t xessContext = nullptr ;
245
- bool xessMaskEnabled = true ;
246
245
bool xessInit = false ;
247
246
248
247
// cas
@@ -555,11 +554,6 @@ class FeatureContext
555
554
556
555
#pragma region xess methods
557
556
558
- bool XeSSMaskEnabled ()
559
- {
560
- return xessMaskEnabled;
561
- }
562
-
563
557
bool XeSSInit (ID3D12Device* device, const NVSDK_NGX_Parameter* initParams)
564
558
{
565
559
if (device == nullptr )
@@ -681,12 +675,14 @@ class FeatureContext
681
675
spdlog::info (" FeatureContext::XeSSInit xessParams.initFlags (!AutoExposure) {0:b}" , xessParams.initFlags );
682
676
}
683
677
684
- if (!CyberXessContext::instance ()->MyConfig ->HDR .value_or (! Hdr))
678
+ if (!CyberXessContext::instance ()->MyConfig ->HDR .value_or (Hdr))
685
679
{
686
680
xessParams.initFlags |= XESS_INIT_FLAG_LDR_INPUT_COLOR;
687
681
CyberXessContext::instance ()->MyConfig ->HDR = false ;
688
- spdlog::info (" FeatureContext::XeSSInit xessParams.initFlags (HDR ) {0:b}" , xessParams.initFlags );
682
+ spdlog::info (" FeatureContext::XeSSInit xessParams.initFlags (LDR ) {0:b}" , xessParams.initFlags );
689
683
}
684
+ else
685
+ spdlog::info (" FeatureContext::XeSSInit xessParams.initFlags (HDR) {0:b}" , xessParams.initFlags );
690
686
691
687
if (CyberXessContext::instance ()->MyConfig ->JitterCancellation .value_or (JitterMotion))
692
688
{
@@ -704,12 +700,9 @@ class FeatureContext
704
700
705
701
if (!CyberXessContext::instance ()->MyConfig ->DisableReactiveMask .value_or (true ))
706
702
{
707
- xessMaskEnabled = true ;
708
703
xessParams.initFlags |= XESS_INIT_FLAG_RESPONSIVE_PIXEL_MASK;
709
704
spdlog::info (" FeatureContext::XeSSInit xessParams.initFlags (ReactiveMaskActive) {0:b}" , xessParams.initFlags );
710
705
}
711
- else
712
- xessMaskEnabled = false ;
713
706
714
707
#pragma endregion
715
708
0 commit comments