mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 10:40:11 +01:00
rusticl/kernel: add KernelExecBuilder::input
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36917>
This commit is contained in:
parent
183cbb0862
commit
cfbe6020dc
1 changed files with 5 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue