diff --git a/src/gallium/frontends/rusticl/mesa/compiler/nir.rs b/src/gallium/frontends/rusticl/mesa/compiler/nir.rs index 4ae0a7a6be3..5c342e88cfc 100644 --- a/src/gallium/frontends/rusticl/mesa/compiler/nir.rs +++ b/src/gallium/frontends/rusticl/mesa/compiler/nir.rs @@ -283,16 +283,6 @@ impl NirShader { } } - pub fn printf_format(&self) -> &[u_printf_info] { - if self.has_printf() { - unsafe { - let nir = self.nir.as_ref(); - slice::from_raw_parts(nir.printf_info, nir.printf_info_count as usize) - } - } else { - &[] - } - } pub fn take_printf_info(&mut self) -> Option { let nir = unsafe { self.nir.as_mut() }; @@ -357,14 +347,6 @@ impl NirShader { } } -impl Clone for NirShader { - fn clone(&self) -> Self { - Self { - nir: NonNull::new(self.dup_for_driver()).unwrap(), - } - } -} - impl Drop for NirShader { fn drop(&mut self) { unsafe { ralloc_free(self.nir.as_ptr().cast()) };