d3d12: Remove #if D3D12_SDK_VERSION blocks now that 610 is required
authorJesse Natalie <jenatali@microsoft.com>
Fri, 14 Apr 2023 16:21:04 +0000 (09:21 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Apr 2023 23:59:33 +0000 (23:59 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22504>

src/gallium/drivers/d3d12/d3d12_common.h
src/gallium/drivers/d3d12/d3d12_pipeline_state.cpp
src/gallium/drivers/d3d12/d3d12_screen.cpp
src/gallium/drivers/d3d12/d3d12_screen.h
src/gallium/drivers/d3d12/d3d12_video_types.h

index 42857dd..9defde8 100644 (file)
@@ -56,7 +56,7 @@
 #endif /* D3D12_TEXTURE_DATA_PITCH_ALIGNMENT */
 
 #if defined(__cplusplus)
-#if !defined(_WIN32) || defined(_MSC_VER) || D3D12_SDK_VERSION < 606
+#if !defined(_WIN32) || defined(_MSC_VER)
 inline D3D12_CPU_DESCRIPTOR_HANDLE
 GetCPUDescriptorHandleForHeapStart(ID3D12DescriptorHeap *heap)
 {
index 030ed47..501ee85 100644 (file)
@@ -316,14 +316,10 @@ create_gfx_pipeline_state(struct d3d12_context *ctx)
          rast.ForcedSampleCount = 1;
          pso_desc.DSVFormat = DXGI_FORMAT_UNKNOWN;
       }
-   } else if (state->samples > 1) {
-#if D3D12_SDK_VERSION >= 609
-      if (!(screen->opts19.SupportedSampleCountsWithNoOutputs & (1 << state->samples)))
-#endif
-      {
-         samples.Count = 1;
-         rast.ForcedSampleCount = state->samples;
-      }
+   } else if (state->samples > 1 &&
+              !(screen->opts19.SupportedSampleCountsWithNoOutputs & (1 << state->samples))) {
+      samples.Count = 1;
+      rast.ForcedSampleCount = state->samples;
    }
    samples.Quality = 0;
 
index cfd7daf..638c2a1 100644 (file)
@@ -1480,9 +1480,7 @@ d3d12_init_screen(struct d3d12_screen *screen, IUnknown *adapter)
       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
 
    screen->architecture.NodeIndex = 0;
    if (FAILED(screen->dev->CheckFeatureSupport(D3D12_FEATURE_ARCHITECTURE,
index 140b5fa..272ee0d 100644 (file)
@@ -116,9 +116,7 @@ struct d3d12_screen {
    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
 
    nir_shader_compiler_options nir_options;
 
index 38f4c11..a40211e 100644 (file)
@@ -40,7 +40,7 @@
 #include <wrl/client.h>
 using Microsoft::WRL::ComPtr;
 
-#if !defined(_WIN32) || defined(_MSC_VER) || D3D12_SDK_VERSION < 606
+#if !defined(_WIN32) || defined(_MSC_VER)
 inline D3D12_VIDEO_DECODER_HEAP_DESC
 GetDesc(ID3D12VideoDecoderHeap *heap)
 {