From: Marek Olšák Date: Thu, 7 Nov 2019 01:50:26 +0000 (-0500) Subject: radeonsi/nir: support interface output types to fix SPIR-V xfb piglits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf240ea6a57dbe74c3104335c133b563ff8d73f6;p=mesa.git radeonsi/nir: support interface output types to fix SPIR-V xfb piglits Acked-by: Pierre-Eric Pelloux-Prayer --- diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index 342abe36dd0..d050ff0bc09 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/gallium/drivers/radeonsi/si_shader_nir.c @@ -547,7 +547,7 @@ static void scan_output_helper(const nir_variable *var, const struct glsl_type *type, struct tgsi_shader_info *info) { - if (glsl_type_is_struct(type)) { + if (glsl_type_is_struct(type) || glsl_type_is_interface(type)) { for (unsigned i = 0; i < glsl_get_length(type); i++) { const struct glsl_type *ft = glsl_get_struct_field(type, i); scan_output_helper(var, location, ft, info);