diff options
author | Kenneth Graunke <[email protected]> | 2016-07-15 17:53:13 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2016-07-15 19:42:43 -0700 |
commit | aa6f60f844f3834fd89d35d8bfe6aa88a288d4fe (patch) | |
tree | 345ea37f0792785954910eab94228bc33adbc099 | |
parent | da3d4a4c564813487f6e31f6e90efb797a713152 (diff) |
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 <[email protected]>
-rw-r--r-- | src/compiler/nir/nir_lower_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |