aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorElie Tournier <[email protected]>2020-06-02 14:03:14 +0100
committerMarge Bot <[email protected]>2020-07-17 06:19:16 +0000
commit0ee1a67f3c84760e2f985a5a8b79ec916f477779 (patch)
tree18c9377afed1e335ff230fec20e08d779f97b21d /src
parentd0df56ccd182f1236e05e588d67f5c6299736773 (diff)
glsl_to_ir: do lower_blend_equation if PIPE_CAP_FBFETCH
Signed-off-by: Elie Tournier <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_glsl_to_ir.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_ir.cpp b/src/mesa/state_tracker/st_glsl_to_ir.cpp
index e450fec6d99..5025eaa7a7b 100644
--- a/src/mesa/state_tracker/st_glsl_to_ir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_ir.cpp
@@ -122,7 +122,7 @@ st_link_shader(struct gl_context *ctx, struct gl_shader_program *prog)
lower_offset_arrays(ir);
do_mat_op_to_vec(ir);
- if (stage == MESA_SHADER_FRAGMENT)
+ if (stage == MESA_SHADER_FRAGMENT && pscreen->get_param(pscreen, PIPE_CAP_FBFETCH))
lower_blend_equation_advanced(
shader, ctx->Extensions.KHR_blend_equation_advanced_coherent);