Skip to content

Commit

Permalink
[host] d12: limit the dx11 interop level to one version
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Mar 11, 2024
1 parent 8c5d1d4 commit 8d25469
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions host/platform/Windows/capture/D12/backend/dd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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(
Expand Down

0 comments on commit 8d25469

Please sign in to comment.