nir: fix a bug in is_dual_slot in nir_io_add_const_offset_to_base
authorMarek Olšák <marek.olsak@amd.com>
Tue, 1 Sep 2020 15:37:07 +0000 (11:37 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 20:05:05 +0000 (20:05 +0000)
Fixes: 01ab308edc "nir: update IO semantics in nir_io_add_const_offset_to_base"
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6540>

src/compiler/nir/nir_lower_io.c

index 2cff415eb43a781c24c19010b65fc0f74e4aa147..00ea0bd739a9f555d066d4d8627d473a8d16fa92 100644 (file)
@@ -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;
 }