From: Rhys Perry Date: Thu, 20 Aug 2020 13:01:36 +0000 (+0100) Subject: aco: use nir_intrinsic_has_access X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2133e6420377f29052a60efd9471f4a946040515;p=mesa.git aco: use nir_intrinsic_has_access Signed-off-by: Rhys Perry Reviewed-by: Alyssa Rosenzweig Reviewed-by: Rob Clark Part-of: --- diff --git a/src/amd/compiler/aco_instruction_selection_setup.cpp b/src/amd/compiler/aco_instruction_selection_setup.cpp index 4f76289be45..874e015ca78 100644 --- a/src/amd/compiler/aco_instruction_selection_setup.cpp +++ b/src/amd/compiler/aco_instruction_selection_setup.cpp @@ -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;