rusticl: fixes for zink shader images

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24868>
This commit is contained in:
Mike Blumenkrantz 2022-10-17 09:34:01 -04:00 committed by Marge Bot
parent 07272f6c35
commit 226aefccd3

View file

@ -360,13 +360,14 @@ impl PipeContext {
}
pub fn clear_sampler_states(&self, count: u32) {
let mut samplers = vec![ptr::null_mut(); count as usize];
unsafe {
self.pipe.as_ref().bind_sampler_states.unwrap()(
self.pipe.as_ptr(),
pipe_shader_type::PIPE_SHADER_COMPUTE,
0,
count,
ptr::null_mut(),
samplers.as_mut_ptr(),
)
}
}