From 5e690f4097615667a8f67c8efe645bb14958f30b 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: (cherry picked from commit 7f08036abc5dd361b2161660f2f7efce8df86056) --- .pick_status.json | 2 +- src/gallium/frontends/rusticl/mesa/pipe/screen.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 7e861568aaf..9540226d76b 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -304,7 +304,7 @@ "description": "rusticl/mesa: pass PIPE_BIND_LINEAR in resource_create_texture_from_user", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "71a9af49107289439f281ab59b5f67f59064f0aa", "notes": null 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;