From: Karol Herbst Date: Sun, 16 Oct 2022 20:59:47 +0000 (+0200) Subject: rusticl: force BIND_LINEAR on staging resources X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a0c35dd24633322c3561912c53d28f2c20452ab;p=platform%2Fupstream%2Fmesa.git rusticl: force BIND_LINEAR on staging resources Part-of: --- 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 => {} }