mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
046560eadc
MFXEnumImplementations expects the adapter index to be within a range of valid Intel adapters produced by MFXLoad and the config filter. If a system has one non-Intel high performance GPU and one Intel iGPU, OBS and the test app will see the Intel iGPU as index 1 due to high performance hints, but MFXEnumImplementations will expect only one valid index, 0. In this scenario, passing a value of 1 to MFXEnumImplementations will cause it to abort and return MFX_ERR_NOT_FOUND (Provided index is out of possible range). This causes subsequent capabilities testing to fail. To avoid this, let's track how many non-Intel adapters we see and subtract that number from adapterIdx to only pass valid index to MFXEnumImplementations. |
||
---|---|---|
.. | ||
cmake | ||
CMakeLists.txt | ||
obs-qsv-test.cpp |