rusticl/compiler: Remove unnecessary functions
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23898>
This commit is contained in:
@@ -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()) };
|
||||
|
Reference in New Issue
Block a user