diff options
author | Marek Olšák <[email protected]> | 2019-11-06 20:50:26 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-11-27 19:28:34 -0500 |
commit | cf240ea6a57dbe74c3104335c133b563ff8d73f6 (patch) | |
tree | 6a60cdc254ed1e1b18228c784a1b6186c3b297ca /src/gallium | |
parent | 1b45da15a95afa30caf43af3f8cb5b5231d6ba31 (diff) |
radeonsi/nir: support interface output types to fix SPIR-V xfb piglits
Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_shader_nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |