[host] d12: limit the dx11 interop level to one version

This commit is contained in:
Geoffrey McRae 2024-03-11 18:44:26 +11:00
parent 8c5d1d47ee
commit 8d25469d27

View File

@ -133,17 +133,10 @@ static bool d12_dd_init(
goto exit; goto exit;
} }
// only 11.1 supports DX12 interoperability
static const D3D_FEATURE_LEVEL featureLevels[] = static const D3D_FEATURE_LEVEL featureLevels[] =
{ {
D3D_FEATURE_LEVEL_12_1, D3D_FEATURE_LEVEL_11_1
D3D_FEATURE_LEVEL_12_0,
D3D_FEATURE_LEVEL_11_1,
D3D_FEATURE_LEVEL_11_0,
D3D_FEATURE_LEVEL_10_1,
D3D_FEATURE_LEVEL_10_0,
D3D_FEATURE_LEVEL_9_3,
D3D_FEATURE_LEVEL_9_2,
D3D_FEATURE_LEVEL_9_1
}; };
D3D_FEATURE_LEVEL featureLevel; D3D_FEATURE_LEVEL featureLevel;
@ -169,6 +162,8 @@ static bool d12_dd_init(
goto exit; goto exit;
} }
DEBUG_INFO("Feature Level : 0x%x", featureLevel);
// get the updated interfaces // get the updated interfaces
comRef_defineLocal(ID3D11DeviceContext4, d11context4); comRef_defineLocal(ID3D11DeviceContext4, d11context4);
hr = ID3D11DeviceContext_QueryInterface( hr = ID3D11DeviceContext_QueryInterface(