DX11 and NvIFR Errors with NVIFR_ERROR_DX_DRIVER_FAILURE (-4)

Hi all,

I’m currently running a system with a GRID K1 card running driver version 347.25. I am able to run all the DX samples provided by the GRID SDK, however I’m having trouble integrating it into my own project. The GRID SDK version is 2.3.7.

I can successfully create the NvIFR interface, passing in my D3D11Device*.

However, I cannot call NvIFRSetUpH264HWEncoder. Using the same params as the samples, NVIFR_ERROR_DX_DRIVER_FAILURE is always returned. I’ve tried changing sizes, back buffer formats, but I get the same error.

Under what conditions is NVIFR_ERROR_DX_DRIVER_FAILURE returned? Where should I start looking? Is there anyway to get some debugging info?

Thanks,

Matt

[xposting from devtalk, maybe I’ll get some traction here :)]

Could you provide a DX SDK sample with your changes to the code to exhibit the problem?

I have the same problem with DX10 and posted my question here https://gridforums.nvidia.com/default/topic/737/nvidia-grid-apis/nvifr_error_dx_driver_failure/

This is the GridLog in my case

## 0.000 | NvIFR | PID 6788 ## 
                          NVIFR_CREATE_PARAMS::dwVersion: 0x22010100
                          NVIFR_CREATE_PARAMS::dwInterfaceType: 8707
                          NVIFR_CREATE_PARAMS::pDevice: 0x        004E2064
                          NVIFR_CREATE_PARAMS::pPrivateData: 0x        00000000
                          NVIFR_CREATE_PARAMS::dwPrivateDataSize: 0.
## 0.105 | NvIFR | PID 6788 ## : NvIFRCreate_Core ::Entry.
## 0.156 | NvIFR | PID 6788 ## : NvIFRCreate_Core :: Success (NVIFR_SUCCESS). .
## 0.156 | NvIFR | PID 6788 ## 
                          NVIFR_CREATE_PARAMS::dwNvIFRVersion: 64
                          NVIFR_CREATE_PARAMS::pNvIFR: 0x        05162F0C
                          NVIFR_CREATE_PARAMS::result: NVIFR_SUCCESS.
## 8.654 | NvIFR | PID 6788 ## : NvIFRH264Dx1xImp_v2::NvIFRSetUpH264HWEncoder :: Entry.
## 8.654 | NvIFR | PID 6788 ## 
                          NVIFR_SETUP_H264_PARAMS_V2::dwVersion: 0x22020180
                          NVIFR_SETUP_H264_PARAMS_V2::eStreamStereoFormat: NVIFR_H264_STEREO_NONE
                          NVIFR_SETUP_H264_PARAMS_V2::dwTargetWidth: 980
                          NVIFR_SETUP_H264_PARAMS_V2::dwTargetHeight: 734
                          NVIFR_SETUP_H264_PARAMS_V2::dwNBuffers: 1
                          NVIFR_SETUP_H264_PARAMS_V2::dwBSMaxSize: 2097152
                          NVIFR_SETUP_H264_PARAMS_V2::ppPageLockedBitStreamBuffers: 0x        5EA2A400
                          NVIFR_SETUP_H264_PARAMS_V2::ppEncodeCompletionEvents: 0x        5EA2A3E4
                          NVIFR_SETUP_H264_PARAMS_V2::dwBitStreamOffset: 0
                          NVIFR_SETUP_H264_PARAMS_V2::bIsCustomYUV444: 0.
## 8.655 | NvIFR | PID 6788 ## 
                          NvIFR_H264HWEncoder_Config_V2::dwVersion: 0x22020180
                          NvIFR_H264HWEncoder_Config_V2::dwProfile: 100
                          NvIFR_H264HWEncoder_Config_V2::dwFrameRateNum: 30
                          NvIFR_H264HWEncoder_Config_V2::dwFrameRateDen: 1
                          NvIFR_H264HWEncoder_Config_V2::dwAvgBitRate: 3000000
                          NvIFR_H264HWEncoder_Config_V2::dwPeakBitRate: 3600000
                          NvIFR_H264HWEncoder_Config_V2::dwGOPLength: 75
                          NvIFR_H264HWEncoder_Config_V2::dwQP: 26
                          NvIFR_H264HWEncoder_Config_V2::maxRCQP[P frame]: 0
                          NvIFR_H264HWEncoder_Config_V2::maxRCQP[B frame]: 0
                          NvIFR_H264HWEncoder_Config_V2::maxRCQP[I frame]: 0
                          NvIFR_H264HWEncoder_Config_V2::bUseMaxRCQP: 0
                          NvIFR_H264HWEncoder_Config_V2::bRepeatSPSPPSHeader: 0
                          NvIFR_H264HWEn.
## 8.655 | NvIFR | PID 6788 ## : NvIFRH264Dx1xImp_v0::CleanUp :: Exit.
## 8.655 | NvIFR | PID 6788 ## : NvIFRDx10::SetCurrentRenderTarget  :: Error (NVIFR_ERROR_GENERIC). .
## 8.655 | NvIFR | PID 6788 ## : NvIFRH264Dx1xImp_v2::NvIFRSetUpH264HWEncoder :: got driver error unknown return code from driver.
## 8.655 | NvIFR | PID 6788 ## : NvIFRH264Dx1xImp_v2::NvIFRSetUpH264HWEncoder  :: Error (NVIFR_ERROR_DX_DRIVER_FAILURE). Failed to set current RenderTarget..