Guard D3D12_FEATURE_D3D12_OPTIONS13 behind SDK version check
Bug: dawn:1216 Change-Id: I29054d51a5c4a24ce85619a22062973572eb1c61 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/120983 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
afc53fa942
commit
f16b9bbd6e
|
@ -554,6 +554,7 @@ void Adapter::SetupBackendDeviceToggles(TogglesState* deviceToggles) const {
|
||||||
deviceToggles->ForceSet(Toggle::NoWorkaroundDstAlphaBlendDoesNotWork, true);
|
deviceToggles->ForceSet(Toggle::NoWorkaroundDstAlphaBlendDoesNotWork, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if D3D12_SDK_VERSION >= 602
|
||||||
D3D12_FEATURE_DATA_D3D12_OPTIONS13 featureData13;
|
D3D12_FEATURE_DATA_D3D12_OPTIONS13 featureData13;
|
||||||
if (FAILED(mD3d12Device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS13, &featureData13,
|
if (FAILED(mD3d12Device->CheckFeatureSupport(D3D12_FEATURE_D3D12_OPTIONS13, &featureData13,
|
||||||
sizeof(featureData13)))) {
|
sizeof(featureData13)))) {
|
||||||
|
@ -561,8 +562,9 @@ void Adapter::SetupBackendDeviceToggles(TogglesState* deviceToggles) const {
|
||||||
// struct to set all features to false.
|
// struct to set all features to false.
|
||||||
featureData13 = {};
|
featureData13 = {};
|
||||||
}
|
}
|
||||||
|
if (!featureData13.TextureCopyBetweenDimensionsSupported)
|
||||||
if (!featureData13.TextureCopyBetweenDimensionsSupported) {
|
#endif
|
||||||
|
{
|
||||||
deviceToggles->ForceSet(
|
deviceToggles->ForceSet(
|
||||||
Toggle::D3D12UseTempBufferInTextureToTextureCopyBetweenDifferentDimensions, true);
|
Toggle::D3D12UseTempBufferInTextureToTextureCopyBetweenDifferentDimensions, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue