rusticl: force BIND_LINEAR on staging resources
authorKarol Herbst <kherbst@redhat.com>
Sun, 16 Oct 2022 20:59:47 +0000 (22:59 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Oct 2022 10:09:35 +0000 (10:09 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19213>

src/gallium/frontends/rusticl/mesa/pipe/screen.rs

index 0e825ab..37bd1b8 100644 (file)
@@ -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 => {}
         }