diff options
author | Marek Olšák <[email protected]> | 2016-08-09 13:26:23 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-08-10 15:43:36 +0200 |
commit | 36057ff12a148f401490f82fce8c6670cadb039e (patch) | |
tree | 028f8cbb1ab39c95d2c3b9a5ffed95ca2c2badc4 /src/gallium/drivers/radeonsi | |
parent | 947e0614d091c260651e4f3d6209bd6bcc2cfa0d (diff) |
radeonsi: disallow MIN/MAX blend equations for dual source blending
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index f5b2330d623..8f7203ea9ba 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -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; |