diff options
Diffstat (limited to 'src/gallium/drivers/panfrost/pan_blend_shaders.c')
-rw-r--r-- | src/gallium/drivers/panfrost/pan_blend_shaders.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/panfrost/pan_blend_shaders.c b/src/gallium/drivers/panfrost/pan_blend_shaders.c index cca2eb567b5..0f0e1b5ffd9 100644 --- a/src/gallium/drivers/panfrost/pan_blend_shaders.c +++ b/src/gallium/drivers/panfrost/pan_blend_shaders.c @@ -89,6 +89,14 @@ nir_make_options(const struct pipe_blend_state *blend, unsigned i) { nir_lower_blend_options options; + if (blend->logicop_enable) { + options.logicop_enable = true; + options.logicop_func = blend->logicop_func; + return options; + } + + options.logicop_enable = false; + /* If blend is disabled, we just use replace mode */ nir_lower_blend_channel rgb = { |