From: Marek Olšák Date: Tue, 1 Sep 2020 15:37:07 +0000 (-0400) Subject: nir: fix a bug in is_dual_slot in nir_io_add_const_offset_to_base X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=8c43edf9f917a801a18940bb570a295b7eed7f90 nir: fix a bug in is_dual_slot in nir_io_add_const_offset_to_base Fixes: 01ab308edc "nir: update IO semantics in nir_io_add_const_offset_to_base" Acked-by: Pierre-Eric Pelloux-Prayer Reviewed-by: Eric Anholt Part-of: --- diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 2cff415eb43..00ea0bd739a 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -1964,7 +1964,7 @@ static bool is_dual_slot(nir_intrinsic_instr *intrin) nir_src_num_components(intrin->src[0]) >= 3; } - return nir_dest_bit_size(intrin->dest) && + return nir_dest_bit_size(intrin->dest) == 64 && nir_dest_num_components(intrin->dest) >= 3; }