rusticl/compiler: Remove unnecessary functions

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898>
This commit is contained in:
Antonio Gomes
2023-07-09 16:38:23 -03:00
committed by Marge Bot
parent 218dce5e38
commit 7ec9b9cd07

View File

@@ -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<NirPrintfInfo> {
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()) };