mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
rusticl/mesa: add ResourceType::Immutable
Reviewed-by: Seán de Búrca <leftmostcat@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36630>
This commit is contained in:
parent
4cb6094f2e
commit
c5f57f6594
1 changed files with 4 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ const LUID_SIZE: usize = PIPE_LUID_SIZE as usize;
|
|||
|
||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
||||
pub enum ResourceType {
|
||||
Immutable,
|
||||
Normal,
|
||||
Staging,
|
||||
}
|
||||
|
|
@ -41,6 +42,9 @@ impl ResourceType {
|
|||
tmpl.bind |= PIPE_BIND_LINEAR;
|
||||
}
|
||||
Self::Normal => {}
|
||||
Self::Immutable => {
|
||||
tmpl.set_usage(pipe_resource_usage::PIPE_USAGE_IMMUTABLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue