Skip to content

Commit

Permalink
D3D12: Always build with D3D12_FEATURE_DATA_D3D12_OPTIONS13
Browse files Browse the repository at this point in the history
This patch removes the macro around the check of
`D3D12_FEATURE_DATA_D3D12_OPTIONS13` as now Windows 11 SDK version
22621 is required to build Dawn, which always includes this struct.

Bug: chromium:40643086
Change-Id: I189711f2af6dc4e5530a0da7676255b9afdce7b6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/211614
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Jiawei Shao <jiawei.shao@intel.com>
  • Loading branch information
Jiawei-Shao authored and Dawn LUCI CQ committed Oct 21, 2024
1 parent ecf224d commit 54ad644
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dawn/native/d3d12/D3D12Info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,12 @@ ResultOrError<D3D12DeviceInfo> GatherDeviceInfo(const PhysicalDevice& physicalDe
info.supportsHeapFlagCreateNotZeroed = true;
}

#if D3D12_SDK_VERSION >= 602
D3D12_FEATURE_DATA_D3D12_OPTIONS13 featureOptions13 = {};
if (SUCCEEDED(physicalDevice.GetDevice()->CheckFeatureSupport(
D3D12_FEATURE_D3D12_OPTIONS13, &featureOptions13, sizeof(featureOptions13)))) {
info.supportsTextureCopyBetweenDimensions =
featureOptions13.TextureCopyBetweenDimensionsSupported;
}
#endif

info.supportsRootSignatureVersion1_1 = false;
D3D12_FEATURE_DATA_ROOT_SIGNATURE featureDataRootSignature = {};
Expand Down

0 comments on commit 54ad644

Please sign in to comment.