Skip to content

Commit 27b8636

Browse files
committed
test: recognize XeFG On revocation in Bridge adaptive fixture
1 parent 83eb8cf commit 27b8636

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

‎tests/d3d11_bridge_motion_tests.cpp‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,13 +2145,20 @@ int main(int argc, char** argv) {
21452145
return 0;
21462146
};
21472147
Check(present() == S_OK, "the proxy reports its first SDK sample with FG enabled");
2148+
const auto revoked_off = xefg::QueryBridgeOff(receipt_source, resized_output);
2149+
Check(!revoked_off.available && revoked_off.output_identity == resized_output
2150+
&& std::strcmp(revoked_off.reason, "sdk_present_enabled") == 0
2151+
&& xefg::BlocksHostWrite(resized_output),
2152+
"the first current SDK On sample revokes Disable and blocks writes to the same output");
21482153
const auto enabled_window = warm_sdk_window();
21492154
Check(enabled_window.available && !enabled_window.fg_off && enabled_window.output == resized_output
2150-
&& xefg::QueryBridgeOff(receipt_source).available,
2151-
"the complete FG On SDK window conflicts with the matching Disable receipt");
2155+
&& !xefg::QueryBridgeOff(receipt_source, resized_output).available,
2156+
"the complete FG On SDK window cannot restore the revoked Disable receipt");
21522157
frame();
2153-
check_unavailable_window(resized_output,
2154-
"Bridge keeps the output identity and preparation while rejecting an SDK window reporting FG On");
2158+
const auto& enabled_status = native::features.at(handle).adaptive_session->status;
2159+
Check(framerate::IsCurrentOutput(resized_output) && enabled_status.display_output_generation == 0
2160+
&& enabled_status.output_fps == 0.,
2161+
"Bridge cannot use the SDK window for adaptation after the matching Disable is revoked");
21552162
std::cout << "PASS Bridge Adaptive XeFG Off output ownership, resize and failure revocation dev=" << dev << '\n';
21562163
output.Swap(unassociated_output);
21572164
parameters.Set(NVSDK_NGX_Parameter_Output, static_cast<ID3D11Resource*>(output.Get()));

0 commit comments

Comments
 (0)