rusticl: fixes for zink shader images
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24868>
This commit is contained in:
committed by
Marge Bot
parent
07272f6c35
commit
226aefccd3
@@ -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(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user