From 8c43edf9f917a801a18940bb570a295b7eed7f90 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 1 Sep 2020 11:37:07 -0400 Subject: [PATCH] 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: --- src/compiler/nir/nir_lower_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2