From: Elie Tournier Date: Wed, 10 Jun 2020 10:29:24 +0000 (+0100) Subject: glsl_to_tgsi: Set TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED X-Git-Tag: upstream/21.0.0~7485 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f8fc0f0665d66bf9320023240ff4b47300dd91d;p=platform%2Fupstream%2Fmesa.git glsl_to_tgsi: Set TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED In virgl, when fbfetch extention is not available but blend_equation_advanced is, we didn't call lower_blend_equation_advanced. So we need to pass the blend value to the host in order to recreate the shader correctly. Signed-off-by: Elie Tournier Reviewed-by: Gert Wollny Reviewed-by: Dave Airlie Part-of: --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index f2f1de3..bc032f4 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -6813,6 +6813,12 @@ st_translate_program( goto out; } } + + if (program->shader->Program->sh.fs.BlendSupport) + ureg_property(ureg, + TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED, + program->shader->Program->sh.fs.BlendSupport); + } else if (procType == PIPE_SHADER_VERTEX) { for (i = 0; i < numOutputs; i++) {