Commit df00597c authored by Romain Vimont's avatar Romain Vimont Committed by Thomas Daede

Expose tiled view of frame state

Add a convenience method to access the whole FrameState as a TileState.
parent 6dc45909
......@@ -459,6 +459,13 @@ impl<T: Pixel> FrameState<T> {
t: RDOTracker::new()
}
}
#[inline(always)]
pub fn as_tile_state_mut(&mut self) -> TileStateMut<'_, T> {
let PlaneConfig { width, height, .. } = self.rec.planes[0].cfg;
let sbo_0 = SuperBlockOffset { x: 0, y: 0 };
TileStateMut::new(self, sbo_0, self.sb_size_log2, width, height)
}
}
#[derive(Copy, Clone, Debug)]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment