From d0d6d90ccf72fdf3664c17d938978ba97ae5b0bd Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Mon, 17 Apr 2023 10:54:09 -0400 Subject: [PATCH] d3d12: Do not fail d3d12_screen creation if D3D12_FEATURE_D3D12_OPTIONS14 not available Fixes: 52ee566bc550b4822c4a563e480e869b8228917b ("d3d12: Query device for D3D12_FEATURE_D3D12_OPTIONS14") Part-of: --- src/gallium/drivers/d3d12/d3d12_screen.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gallium/drivers/d3d12/d3d12_screen.cpp b/src/gallium/drivers/d3d12/d3d12_screen.cpp index 638c2a1..a0c9d72 100644 --- a/src/gallium/drivers/d3d12/d3d12_screen.cpp +++ b/src/gallium/drivers/d3d12/d3d12_screen.cpp @@ -1474,12 +1474,7 @@ 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; - } + screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS14, &screen->opts14, sizeof(screen->opts14)); screen->dev->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS19, &screen->opts19, sizeof(screen->opts19)); screen->architecture.NodeIndex = 0; -- 2.7.4