[host] nvfbc: add an option to specify adapter

This commit is contained in:
WYF authored and Geoffrey McRae committed 2021-12-26 11:14:17 +11:00
1 parent 9fa643484c
commit b21d842f0e
4 files changed
+14 -2

No files matched your search

@@ -109,6 +109,7 @@ void NvFBCFree()
}
bool NvFBCToSysCreate(
int adapterIndex,
void * privData,
unsigned int privDataSize,
NvFBCHandle * handle,
@@ -121,7 +122,7 @@ bool NvFBCToSysCreate(
params.dwVersion = NVFBC_CREATE_PARAMS_VER;
params.dwInterfaceType = NVFBC_TO_SYS;
params.pDevice = NULL;
params.dwAdapterIdx = 0;
params.dwAdapterIdx = adapterIndex;
params.dwPrivateDataSize = privDataSize;
params.pPrivateData = privData;