mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
The toggle D3D12ForceClearCopyableDepthStencilTextureOnCreation can be disabled when the toggle D3D12Allocate2DTexturewithCopyDstAsCommittedResource is enabled because with D3D12Allocate2DTexturewithCopyDstAsCommittedResource all the depth stencil textures (can only be 2D textures) with CopyDst usage have already been created with CreateCommittedResource() instead of CreatePlacedResource(), thus the driver issue about creating depth stencil texture on a dirty heap with CreatePlacedResource() won't be triggered. Bug: dawn:1487, chromium:1237175 Change-Id: I872d4d95e6e05e1bcf9489b31a72e61f957de3e5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116129 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>