mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 05:27:49 +00:00
D3D12: Replace dst-alpha with one for formats without alpha
This patch replaces D3D12_BLEND_DEST_ALPHA with D3D12_BLEND_ONE when the color target formats have no alpha-channel. Using D3D12_BLEND_ONE is an optimization over D3D12_BLEND_DEST_ALPHA as it means the GPU hardware doesn't need to get destination pixel at all. As D3D SPED requires the default value for missing components in an element format is "0" for any component except A, which gets "1", using D3D12_BLEND_DEST_ALPHA takes same effect with D3D12_BLEND_ONE when the color target formats have no alpha channel. In addition, replacing D3D12_BLEND_DEST_ALPHA with D3D12_BLEND_ONE also serves as a workaround against an Intel driver issue about alpha blending. Bug: dawn:1579 Change-Id: If79e4c8007b68dd35e142ba9cf8a4921e611890a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/120120 Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
b5af23d588
commit
e4f947637a
@@ -293,7 +293,6 @@ crbug.com/tint/1810 webgpu:shader,validation,parse,identifiers:* [ Failure ]
|
||||
# untriaged failures
|
||||
################################################################################
|
||||
crbug.com/dawn/0000 [ dawn-backend-validation win10 ] webgpu:api,operation,render_pass,resolve:* [ Failure ]
|
||||
crbug.com/dawn/0000 [ intel-gen-9 win10 ] webgpu:api,operation,render_pipeline,pipeline_output_targets:color,component_count,blend:format="rg8unorm" [ Failure ]
|
||||
crbug.com/dawn/0000 [ monterey ] webgpu:web_platform,canvas,readbackFromWebGPUCanvas:drawTo2DCanvas:format="rgba8unorm";alphaMode="opaque";colorSpace="display-p3";webgpuCanvasType="offscreen";canvas2DType="offscreen" [ Failure ]
|
||||
crbug.com/dawn/0000 [ monterey ] webgpu:web_platform,canvas,readbackFromWebGPUCanvas:drawTo2DCanvas:format="rgba8unorm";alphaMode="opaque";colorSpace="display-p3";webgpuCanvasType="offscreen";canvas2DType="onscreen" [ Failure ]
|
||||
crbug.com/dawn/0000 [ monterey ] webgpu:web_platform,canvas,readbackFromWebGPUCanvas:drawTo2DCanvas:format="rgba8unorm";alphaMode="opaque";colorSpace="display-p3";webgpuCanvasType="onscreen";canvas2DType="offscreen" [ Failure ]
|
||||
|
||||
Reference in New Issue
Block a user