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>
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);