@@ -24,31 +24,20 @@ FFFrameInterpolatorDX::~FFFrameInterpolatorDX()
2424
2525FfxErrorCode FFFrameInterpolatorDX::Dispatch (void *CommandList, NGXInstanceParameters *NGXParameters)
2626{
27- const bool enableInterpolation = NGXParameters->GetUIntOrDefault (" DLSSG.EnableInterp" , 0 ) != 0 ;
2827 const bool isRecordingCommands = NGXParameters->GetUIntOrDefault (" DLSSG.IsRecording" , 0 ) != 0 ;
2928 const auto cmdList12 = reinterpret_cast <ID3D12GraphicsCommandList *>(CommandList);
3029
30+ NGXParameters->Set4 (" DLSSG.FlushRequired" , 0 );
31+
3132 // Begin a new command list in the event our caller didn't set one up
3233 if (!isRecordingCommands)
3334 {
34- void *recordingQueue = nullptr ;
35- NGXParameters->GetVoidPointer (" DLSSG.CmdQueue" , &recordingQueue);
35+ ID3D12CommandQueue *recordingQueue = nullptr ;
36+ NGXParameters->GetVoidPointer (" DLSSG.CmdQueue" , reinterpret_cast < void **>( &recordingQueue) );
3637
3738 ID3D12CommandAllocator *recordingAllocator = nullptr ;
3839 NGXParameters->GetVoidPointer (" DLSSG.CmdAlloc" , reinterpret_cast <void **>(&recordingAllocator));
3940
40- const static bool once = [&]()
41- {
42- spdlog::warn (
43- " Command list wasn't recording. Resetting state: {} 0x{:X} 0x{:X} 0x{:X}" ,
44- enableInterpolation,
45- reinterpret_cast <uintptr_t >(CommandList),
46- reinterpret_cast <uintptr_t >(recordingQueue),
47- reinterpret_cast <uintptr_t >(recordingAllocator));
48-
49- return false ;
50- }();
51-
5241 cmdList12->Reset (recordingAllocator, nullptr );
5342 }
5443
0 commit comments