From cfbe6020dcbc3ad7ce08343c99d81f0ca2d24a5d Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 21 Aug 2025 15:24:11 +0200 Subject: [PATCH] rusticl/kernel: add KernelExecBuilder::input Part-of: --- src/gallium/frontends/rusticl/core/kernel.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index 2bfce7b52fe..c10e1ef8e03 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -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,