Skip to content

Commit

Permalink
benches: Fix alignment issue for cfl_rdo
Browse files Browse the repository at this point in the history
Fixes #3175. Integrated ipred_cfl_ac assembly uses aligned loads.
  • Loading branch information
barrbrain committed Mar 27, 2023
1 parent 6dfdef9 commit 92c05bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,9 @@ fn cfl_rdo_bench(b: &mut Bencher, bsize: BlockSize) {
let fi = FrameInvariants::<u16>::new(config, sequence);
let mut fs = FrameState::new(&fi);
fs.apply_tile_state_mut(|ts| {
let offset = TileBlockOffset(BlockOffset { x: 1, y: 1 });
let first_chroma = if bsize == BlockSize::BLOCK_4X4 { 1 } else { 0 };
let offset =
TileBlockOffset(BlockOffset { x: first_chroma, y: first_chroma });
b.iter(|| rdo_cfl_alpha(ts, offset, bsize, bsize.tx_size(), &fi))
});
}
Expand Down

0 comments on commit 92c05bd

Please sign in to comment.