rusticl/kernel: add KernelExecBuilder::input

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
This commit is contained in:
Karol Herbst 2025-08-21 15:24:11 +02:00 committed by Marge Bot
parent 183cbb0862
commit cfbe6020dc

View file

@ -1307,6 +1307,10 @@ impl<'a> KernelExecBuilder<'a> {
(resources, globals)
}
fn input(&self) -> &[u8] {
&self.input
}
/// Marks the current position in the kernel input buffer as the location of the workgroup id
/// offsets for use with `set_workgroup_id_offset`.
fn mark_workgroup_id_offset(&mut self) {
@ -1722,7 +1726,7 @@ impl Kernel {
cmp::min(hw_max_grid[2], grid[2] - hw_max_grid[2] * z) as u32,
];
ctx.update_cb0(&exec_builder.input)?;
ctx.update_cb0(exec_builder.input())?;
ctx.launch_grid(
work_dim,
block,