mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-19 02:11:40 +00:00
On Intel Gen9 and Gen9.5 GPUs there is a D3D12 driver bug about using DstAlpha as the source blend factors in both color and alpha blending. Although we cannot add workaround for all such cases, we have confirmed that when the blend operation is 'add', and the destination blend factors are ‘zero', we can workaround this driver bug by replacing 'add' to 'minus'. We cannot add workaround when destination blend factor is another value. This patch adds such workaround on the affected platforms. Bug: dawn:1579 Test: dawn_end2end_tests Change-Id: If7c82b9d559b876e42fb36e2f539f9ff2f71ea91 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/120981 Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Kokoro: Kokoro <noreply+kokoro@google.com> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>