From 85b7403909d2458f17986674811daf1de3fc1947 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Thu, 20 Aug 2020 14:01:58 +0100 Subject: [PATCH] bifrost: use nir_intrinsic_has_type Signed-off-by: Rhys Perry Reviewed-by: Alyssa Rosenzweig Reviewed-by: Rob Clark Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2