mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv: use radv_normalize_blend_factor() more
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31688>
This commit is contained in:
parent
38e12dd53c
commit
17dc91709d
1 changed files with 1 additions and 4 deletions
|
|
@ -1792,10 +1792,7 @@ radv_pipeline_generate_ps_epilog_key(const struct radv_device *device, const str
|
|||
ps_epilog.mrt0_is_dual_src = true;
|
||||
}
|
||||
|
||||
if (eqRGB == VK_BLEND_OP_MIN || eqRGB == VK_BLEND_OP_MAX) {
|
||||
srcRGB = VK_BLEND_FACTOR_ONE;
|
||||
dstRGB = VK_BLEND_FACTOR_ONE;
|
||||
}
|
||||
radv_normalize_blend_factor(eqRGB, &srcRGB, &dstRGB);
|
||||
|
||||
if (srcRGB == VK_BLEND_FACTOR_SRC_ALPHA || dstRGB == VK_BLEND_FACTOR_SRC_ALPHA ||
|
||||
srcRGB == VK_BLEND_FACTOR_SRC_ALPHA_SATURATE || dstRGB == VK_BLEND_FACTOR_SRC_ALPHA_SATURATE ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue