mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
rusticl: fixes for zink shader images
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24868>
This commit is contained in:
parent
07272f6c35
commit
226aefccd3
1 changed files with 2 additions and 1 deletions
|
|
@ -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(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue