gallium: add TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED
authorElie Tournier <tournier.elie@gmail.com>
Tue, 9 Jun 2020 10:41:41 +0000 (11:41 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 17 Jul 2020 06:19:16 +0000 (06:19 +0000)
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@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/gallium/auxiliary/tgsi/tgsi_strings.c
src/gallium/include/pipe/p_shader_tokens.h

index d6e8854a8b2f5026f933cb3a9e61381c7654116c..acc88966ee92a7b15b20d79dd86dac66f9e8147e 100644 (file)
@@ -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] =
index 7c5828ca8634079ec75e83669b82c74f0cd186ae..b41d86ef3e34ea94c1900898a26cb1fe962e843d 100644 (file)
@@ -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,
 };