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:
Karol Herbst 2025-08-07 13:12:15 +02:00 committed by Marge Bot
parent 4cb6094f2e
commit c5f57f6594

View file

@ -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);
}
}
}
}