d3d12: Query device for D3D12_FEATURE_D3D12_OPTIONS14

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22454>
This commit is contained in:
Giancarlo Devich 2023-04-11 16:39:42 -07:00 committed by Marge Bot
parent cc6d87b462
commit 52ee566bc5
2 changed files with 7 additions and 0 deletions

View file

@ -1474,6 +1474,12 @@ d3d12_init_screen(struct d3d12_screen *screen, IUnknown *adapter)
debug_printf("D3D12: failed to get device options\n");
return false;
}
if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS14,
&screen->opts14,
sizeof(screen->opts14)))) {
debug_printf("D3D12: failed to get device options\n");
return false;
}
#if D3D12_SDK_VERSION >= 609
screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS19, &screen->opts19, sizeof(screen->opts19));
#endif

View file

@ -115,6 +115,7 @@ struct d3d12_screen {
D3D12_FEATURE_DATA_D3D12_OPTIONS2 opts2;
D3D12_FEATURE_DATA_D3D12_OPTIONS3 opts3;
D3D12_FEATURE_DATA_D3D12_OPTIONS4 opts4;
D3D12_FEATURE_DATA_D3D12_OPTIONS14 opts14;
#if D3D12_SDK_VERSION >= 610
D3D12_FEATURE_DATA_D3D12_OPTIONS19 opts19;
#endif