From 8d25469d27d471f49fc2fa9d2ec609e0451cc78a Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 11 Mar 2024 18:44:26 +1100 Subject: [PATCH] [host] d12: limit the dx11 interop level to one version --- host/platform/Windows/capture/D12/backend/dd.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/host/platform/Windows/capture/D12/backend/dd.c b/host/platform/Windows/capture/D12/backend/dd.c index 647ac850..3da73021 100644 --- a/host/platform/Windows/capture/D12/backend/dd.c +++ b/host/platform/Windows/capture/D12/backend/dd.c @@ -133,17 +133,10 @@ static bool d12_dd_init( goto exit; } + // only 11.1 supports DX12 interoperability static const D3D_FEATURE_LEVEL featureLevels[] = { - D3D_FEATURE_LEVEL_12_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_11_1 }; D3D_FEATURE_LEVEL featureLevel; @@ -169,6 +162,8 @@ static bool d12_dd_init( goto exit; } + DEBUG_INFO("Feature Level : 0x%x", featureLevel); + // get the updated interfaces comRef_defineLocal(ID3D11DeviceContext4, d11context4); hr = ID3D11DeviceContext_QueryInterface(