d3d12: Do not fail d3d12_screen creation if D3D12_FEATURE_D3D12_OPTIONS14 not available
authorSil Vilerino <sivileri@microsoft.com>
Mon, 17 Apr 2023 14:54:09 +0000 (10:54 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Apr 2023 15:44:46 +0000 (15:44 +0000)
Fixes: 52ee566bc550b4822c4a563e480e869b8228917b ("d3d12: Query device for D3D12_FEATURE_D3D12_OPTIONS14")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22534>

src/gallium/drivers/d3d12/d3d12_screen.cpp

index 638c2a1..a0c9d72 100644 (file)
@@ -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;