summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/vulkan/radv_shader_info.c')
-rw-r--r--src/amd/vulkan/radv_shader_info.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c
index 6262acb1a65..00bc2ca5db1 100644
--- a/src/amd/vulkan/radv_shader_info.c
+++ b/src/amd/vulkan/radv_shader_info.c
@@ -435,6 +435,17 @@ gather_info_output_decl_ps(const nir_shader *nir, const nir_variable *var,
}
static void
+gather_info_output_decl_gs(const nir_shader *nir, const nir_variable *var,
+ struct radv_shader_info *info)
+{
+ unsigned stream = var->data.stream;
+
+ assert(stream < 4);
+
+ info->gs.max_stream = MAX2(info->gs.max_stream, stream);
+}
+
+static void
gather_info_output_decl(const nir_shader *nir, const nir_variable *var,
struct radv_shader_info *info,
const struct radv_nir_compiler_options *options)
@@ -447,6 +458,9 @@ gather_info_output_decl(const nir_shader *nir, const nir_variable *var,
if (options->key.vs.as_ls)
gather_info_output_decl_ls(nir, var, info);
break;
+ case MESA_SHADER_GEOMETRY:
+ gather_info_output_decl_gs(nir, var, info);
+ break;
default:
break;
}