glsl_to_tgsi: Set TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED
authorElie Tournier <tournier.elie@gmail.com>
Wed, 10 Jun 2020 10:29:24 +0000 (11:29 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 06:19:16 +0000 (06:19 +0000)
commit4f8fc0f0665d66bf9320023240ff4b47300dd91d
tree68b64c4e0d99dcb1368917cb091bd48433a49864
parentb3a3f7cca2390b51dd65fa4af29bd70af95f2995
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 <elie.tournier@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>
src/mesa/state_tracker/st_glsl_to_tgsi.cpp