From 0a0c35dd24633322c3561912c53d28f2c20452ab Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sun, 16 Oct 2022 22:59:47 +0200 Subject: [PATCH] rusticl: force BIND_LINEAR on staging resources Part-of: --- src/gallium/frontends/rusticl/mesa/pipe/screen.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/frontends/rusticl/mesa/pipe/screen.rs b/src/gallium/frontends/rusticl/mesa/pipe/screen.rs index 0e825ab..37bd1b8 100644 --- a/src/gallium/frontends/rusticl/mesa/pipe/screen.rs +++ b/src/gallium/frontends/rusticl/mesa/pipe/screen.rs @@ -71,6 +71,7 @@ impl ResourceType { Self::Staging => { tmpl.set_usage(pipe_resource_usage::PIPE_USAGE_STAGING.0); tmpl.flags |= PIPE_RESOURCE_FLAG_MAP_PERSISTENT | PIPE_RESOURCE_FLAG_MAP_COHERENT; + tmpl.bind |= PIPE_BIND_LINEAR; } Self::Normal => {} } -- 2.7.4