tgsi: Add SEPARABLE_PROGRAM property

Signed-off-by: Italo Nicola <italonicola@collabora.com>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16308>
This commit is contained in:
Italo Nicola 2022-02-15 11:09:56 -03:00 committed by Marge Bot
parent 59d246e1c5
commit b634030542
3 changed files with 5 additions and 0 deletions

View File

@ -165,6 +165,7 @@ const char *tgsi_property_names[TGSI_PROPERTY_COUNT] =
"CS_USER_DATA_COMPONENTS_AMD",
"LAYER_VIEWPORT_RELATIVE",
"FS_BLEND_EQUATION_ADVANCED",
"SEPARABLE_PROGRAM",
};
const char *tgsi_return_type_names[TGSI_RETURN_TYPE_COUNT] =

View File

@ -2408,6 +2408,9 @@ ureg_setup_shader_info(struct ureg_program *ureg,
if (info->layer_viewport_relative)
ureg_property(ureg, TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE, 1);
if (info->separate_shader)
ureg_property(ureg, TGSI_PROPERTY_SEPARABLE_PROGRAM, 1);
switch (info->stage) {
case MESA_SHADER_VERTEX:
ureg_setup_clipdist_info(ureg, info);

View File

@ -303,6 +303,7 @@ enum tgsi_property_name {
TGSI_PROPERTY_CS_USER_DATA_COMPONENTS_AMD,
TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE,
TGSI_PROPERTY_FS_BLEND_EQUATION_ADVANCED,
TGSI_PROPERTY_SEPARABLE_PROGRAM,
TGSI_PROPERTY_COUNT,
};