diff --git a/src/gallium/frontends/rusticl/core/kernel.rs b/src/gallium/frontends/rusticl/core/kernel.rs index 400bcfeef0a..76ac0985d39 100644 --- a/src/gallium/frontends/rusticl/core/kernel.rs +++ b/src/gallium/frontends/rusticl/core/kernel.rs @@ -122,14 +122,6 @@ pub struct KernelArg { pub dead: bool, } -#[derive(Hash, PartialEq, Eq, Clone)] -struct CompiledKernelArg { - kind: CompiledKernelArgType, - /// The binding for image/sampler args, the offset into the input buffer - /// for anything else. - offset: u32, -} - impl KernelArg { fn from_spirv_nir(spirv: &[spirv::SPIRVKernelArg], nir: &mut NirShader) -> Vec { let nir_arg_map: HashMap<_, _> = nir @@ -242,6 +234,14 @@ impl KernelArg { } } +#[derive(Hash, PartialEq, Eq, Clone)] +struct CompiledKernelArg { + kind: CompiledKernelArgType, + /// The binding for image/sampler args, the offset into the input buffer + /// for anything else. + offset: u32, +} + impl CompiledKernelArg { fn serialize(args: &[Self], blob: &mut blob) { unsafe {