aco: use nir_intrinsic_has_access
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 20 Aug 2020 13:01:36 +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/amd/compiler/aco_instruction_selection_setup.cpp

index 4f76289be45adc0eb8e7240ee5dffe364d115d56..874e015ca78845aa23ae72835197b3b50b7ba341 100644 (file)
@@ -339,7 +339,7 @@ void fill_desc_set_info(isel_context *ctx, nir_function_impl *impl)
          if (instr->type != nir_instr_type_intrinsic)
             continue;
          nir_intrinsic_instr *intrin = nir_instr_as_intrinsic(instr);
-         if (!(nir_intrinsic_infos[intrin->intrinsic].index_map[NIR_INTRINSIC_ACCESS]))
+         if (!nir_intrinsic_has_access(intrin))
             continue;
 
          nir_ssa_def *res = NULL;