rusticl/mesa: add bx() method to PipeTransfer

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18793>
This commit is contained in:
Karol Herbst
2022-09-23 19:44:37 +02:00
committed by Marge Bot
parent 557f4dd89a
commit 6b235361f7

View File

@@ -62,6 +62,10 @@ impl PipeTransfer {
unsafe { (*self.pipe).layer_stride }
}
pub fn bx(&self) -> &pipe_box {
unsafe { &(*self.pipe).box_ }
}
pub fn with_ctx(self, ctx: &PipeContext) -> GuardedPipeTransfer {
GuardedPipeTransfer {
inner: self,