mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
radeonsi: disallow MIN/MAX blend equations for dual source blending
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
This commit is contained in:
parent
947e0614d0
commit
36057ff12a
1 changed files with 10 additions and 0 deletions
|
|
@ -464,6 +464,16 @@ static void *si_create_blend_state_mode(struct pipe_context *ctx,
|
|||
if (i >= 1 && blend->dual_src_blend)
|
||||
continue;
|
||||
|
||||
/* Only addition and subtraction equations are supported with
|
||||
* dual source blending.
|
||||
*/
|
||||
if (blend->dual_src_blend &&
|
||||
(eqRGB == PIPE_BLEND_MIN || eqRGB == PIPE_BLEND_MAX ||
|
||||
eqA == PIPE_BLEND_MIN || eqA == PIPE_BLEND_MAX)) {
|
||||
assert(!"Unsupported equation for dual source blending");
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!state->rt[j].colormask)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue