bifrost: use nir_intrinsic_has_type
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 20 Aug 2020 13:01:58 +0000 (14:01 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 21 Aug 2020 16:47:00 +0000 (16:47 +0000)
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6402>

src/panfrost/bifrost/bifrost_compile.c

index cd1eafcd4c3ac913bab81f7a548766f3bb3914cf..60188bfb30ffd4a91148cf866970afdb9adc11ce 100644 (file)
@@ -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);