rusticl: remove blit code
authorKarol Herbst <kherbst@redhat.com>
Thu, 20 Oct 2022 03:10:21 +0000 (05:10 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 18:05:54 +0000 (18:05 +0000)
I never ended up using it

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19184>

src/gallium/frontends/rusticl/mesa/pipe/context.rs

index 9fed610..234874f 100644 (file)
@@ -265,16 +265,6 @@ impl PipeContext {
         unsafe { self.pipe.as_ref().texture_unmap.unwrap()(self.pipe.as_ptr(), tx) };
     }
 
-    pub fn blit(&self, src: &PipeResource, dst: &PipeResource) {
-        let mut blit_info = pipe_blit_info::default();
-        blit_info.src.resource = src.pipe();
-        blit_info.dst.resource = dst.pipe();
-
-        println!("blit not implemented!");
-
-        unsafe { self.pipe.as_ref().blit.unwrap()(self.pipe.as_ptr(), &blit_info) }
-    }
-
     pub fn create_compute_state(
         &self,
         nir: &NirShader,
@@ -473,7 +463,6 @@ fn has_required_cbs(c: &pipe_context) -> bool {
     c.destroy.is_some()
         && c.bind_compute_state.is_some()
         && c.bind_sampler_states.is_some()
-        && c.blit.is_some()
         && c.buffer_map.is_some()
         && c.buffer_subdata.is_some()
         && c.buffer_unmap.is_some()