From: Rhys Perry Date: Thu, 20 Aug 2020 13:01:58 +0000 (+0100) Subject: bifrost: use nir_intrinsic_has_type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85b7403909d2458f17986674811daf1de3fc1947;p=mesa.git bifrost: use nir_intrinsic_has_type Signed-off-by: Rhys Perry Reviewed-by: Alyssa Rosenzweig Reviewed-by: Rob Clark Part-of: --- diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index cd1eafcd4c3..60188bfb30f 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -90,7 +90,7 @@ bi_load(enum bi_class T, nir_intrinsic_instr *instr) if (info->has_dest) load.dest = pan_dest_index(&instr->dest); - if (info->has_dest && info->index_map[NIR_INTRINSIC_TYPE] > 0) + if (info->has_dest && nir_intrinsic_has_type(instr)) load.dest_type = nir_intrinsic_type(instr); nir_src *offset = nir_get_io_offset_src(instr);