mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 10:20:22 +01:00
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:71a9af4910("rusticl/mem: support read/write/copy ops for images") Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25937> (cherry picked from commit7f08036abc)
This commit is contained in:
parent
62c4a2273e
commit
5e690f4097
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue