Mesa (master): gallium: add TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Jul 17 06:37:07 UTC 2020


Module: Mesa
Branch: master
Commit: b3a3f7cca2390b51dd65fa4af29bd70af95f2995
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b3a3f7cca2390b51dd65fa4af29bd70af95f2995

Author: Elie Tournier <tournier.elie at gmail.com>
Date:   Tue Jun  9 11:41:41 2020 +0100

gallium: add TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED

For virgl, we don't lower advanced equation to fbfetch
So we need to pass the blend equation info in the TGSI to the host

Signed-off-by: Elie Tournier <elie.tournier at collabora.com>
Reviewed-by: Gert Wollny <gert.wollny at collabora.com>
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5516>

---

 src/gallium/auxiliary/tgsi/tgsi_strings.c  | 1 +
 src/gallium/include/pipe/p_shader_tokens.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c
index d6e8854a8b2..acc88966ee9 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_strings.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_strings.c
@@ -164,6 +164,7 @@ const char *tgsi_property_names[TGSI_PROPERTY_COUNT] =
    "VS_BLIT_SGPRS_AMD",
    "CS_USER_DATA_COMPONENTS_AMD",
    "LAYER_VIEWPORT_RELATIVE",
+   "FS_BLEND_EQUATION_ADVANCED",
 };
 
 const char *tgsi_return_type_names[TGSI_RETURN_TYPE_COUNT] =
diff --git a/src/gallium/include/pipe/p_shader_tokens.h b/src/gallium/include/pipe/p_shader_tokens.h
index 7c5828ca863..b41d86ef3e3 100644
--- a/src/gallium/include/pipe/p_shader_tokens.h
+++ b/src/gallium/include/pipe/p_shader_tokens.h
@@ -308,6 +308,7 @@ enum tgsi_property_name {
    TGSI_PROPERTY_VS_BLIT_SGPRS_AMD,
    TGSI_PROPERTY_CS_USER_DATA_COMPONENTS_AMD,
    TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE,
+   TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED,
    TGSI_PROPERTY_COUNT,
 };
 



More information about the mesa-commit mailing list