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>
This commit is contained in:
parent
398fadf1cf
commit
7f08036abc
1 changed files with 1 additions and 1 deletions
|
|
@ -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