From 7f08036abc5dd361b2161660f2f7efce8df86056 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 25 Oct 2023 23:17:22 +0200 Subject: [PATCH] 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 Part-of: --- 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;