diff options
author | Juan A. Suarez Romero <[email protected]> | 2019-04-10 17:13:19 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <[email protected]> | 2019-04-11 11:52:45 +0200 |
commit | 83f1b0e95b92339515cf1a0a37d1ad9da942825b (patch) | |
tree | d2b9495bc361a6a099c7648b29eb9009f443db7c /src/compiler/nir | |
parent | b48e64f903be0d6449835e967a395673d89e2672 (diff) |
nir/xfb: do not use bare interface type
In commit 3b3653c4cfb we decided not to use bare types; hence do not use
bare type when comparing with interface type to find out if the xfb
variable is an array block.
This fixes dEQP-VK.transform_feedback.* tests.
Fixes: 3b3653c4cfb ("nir/spirv: don't use bare types, remove assert in
split vars for testing")
CC: Dave Airlie <[email protected]>
CC: Jason Ekstrand <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r-- | src/compiler/nir/nir_gather_xfb_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_gather_xfb_info.c b/src/compiler/nir/nir_gather_xfb_info.c index 962f4801a67..562bacbed62 100644 --- a/src/compiler/nir/nir_gather_xfb_info.c +++ b/src/compiler/nir/nir_gather_xfb_info.c @@ -231,7 +231,7 @@ nir_gather_xfb_info_with_varyings(const nir_shader *shader, */ bool is_array_block = var->interface_type != NULL && glsl_type_is_array(var->type) && - glsl_without_array(var->type) == glsl_get_bare_type(var->interface_type); + glsl_without_array(var->type) == var->interface_type; if (var->data.explicit_offset && !is_array_block) { unsigned offset = var->data.offset; |