From aa6f60f844f3834fd89d35d8bfe6aa88a288d4fe Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 15 Jul 2016 17:53:13 -0700 Subject: 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 --- src/compiler/nir/nir_lower_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compiler/nir') 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)); -- cgit v1.2.3