From c5f57f6594b14dbe2dc265008f5bffd172007414 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Thu, 7 Aug 2025 13:12:15 +0200 Subject: [PATCH] rusticl/mesa: add ResourceType::Immutable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Seán de Búrca Part-of: --- src/gallium/frontends/rusticl/mesa/pipe/screen.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/frontends/rusticl/mesa/pipe/screen.rs b/src/gallium/frontends/rusticl/mesa/pipe/screen.rs index 7139bcf7582..478b2ceac08 100644 --- a/src/gallium/frontends/rusticl/mesa/pipe/screen.rs +++ b/src/gallium/frontends/rusticl/mesa/pipe/screen.rs @@ -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); + } } } }