From: Kenneth Graunke Date: Sat, 16 Jul 2016 00:53:13 +0000 (-0700) Subject: nir: Use dest.ssa.num_components rather than intrin->num_components. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa6f60f844f3834fd89d35d8bfe6aa88a288d4fe;p=mesa.git nir: Use dest.ssa.num_components rather than intrin->num_components. I recently refactored this to share code between load and atomic lowering. loads used intrin->num_components, while atomics used intrin->dest.ssa.num_components. They should be equivalent, but Jason wanted me to use the latter. I missed applying his review. Signed-off-by: Kenneth Graunke --- diff --git a/src/compiler/nir/nir_lower_io.c b/src/compiler/nir/nir_lower_io.c index 0a4de6a2d01..71d2432bb4e 100644 --- a/src/compiler/nir/nir_lower_io.c +++ b/src/compiler/nir/nir_lower_io.c @@ -375,7 +375,7 @@ nir_lower_io_block(nir_block *block, if (nir_intrinsic_infos[intrin->intrinsic].has_dest) { if (intrin->dest.is_ssa) { nir_ssa_dest_init(&replacement->instr, &replacement->dest, - intrin->num_components, + intrin->dest.ssa.num_components, intrin->dest.ssa.bit_size, NULL); nir_ssa_def_rewrite_uses(&intrin->dest.ssa, nir_src_for_ssa(&replacement->dest.ssa));