Module: Mesa
Branch: main
Commit: 7f08036abc5dd361b2161660f2f7efce8df86056
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=7f08036abc5dd361b2161660f2f7efce8df86056

Author: Karol Herbst <kher...@redhat.com>
Date:   Wed Oct 25 23:17:22 2023 +0200

rusticl/mesa: pass PIPE_BIND_LINEAR in resource_create_texture_from_user

Host pointer allocations are all linear laid out, so just tell the drivers
in case they don't assume this implicitly.

Fixes: 71a9af49107 ("rusticl/mem: support read/write/copy ops for images")
Signed-off-by: Karol Herbst <kher...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25937>

---

 src/gallium/frontends/rusticl/mesa/pipe/screen.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/frontends/rusticl/mesa/pipe/screen.rs 
b/src/gallium/frontends/rusticl/mesa/pipe/screen.rs
index 9428bc0b98d..cb89345afb5 100644
--- a/src/gallium/frontends/rusticl/mesa/pipe/screen.rs
+++ b/src/gallium/frontends/rusticl/mesa/pipe/screen.rs
@@ -216,7 +216,7 @@ impl PipeScreen {
         tmpl.height0 = height;
         tmpl.depth0 = depth;
         tmpl.array_size = array_size;
-        tmpl.bind = PIPE_BIND_SAMPLER_VIEW;
+        tmpl.bind = PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_LINEAR;
 
         if support_image {
             tmpl.bind |= PIPE_BIND_SHADER_IMAGE;

Reply via email to