diff options
author | Dave Airlie <airlied@redhat.com> | 2024-08-26 13:21:29 +1000 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2024-08-27 09:08:27 +0200 |
commit | 6cd669911e4ef16c15797b13e476ae82f4c30eb6 (patch) | |
tree | 5c949c1d1e699f82423937467c55a644a1966d7c /src/gallium | |
parent | 631732e3dfa0a79dbfa79cd188996b0224c024ee (diff) |
llvmpipe: handle stride properly on lvp udmabuf imports
The import data comes in via the fd import, but we need to make
sure to store the row stride value here.
Fixes: c44d65a46764 ("lp: only map dt buffer on import from dmabuf")
Reviewed-by: Lucas Fryzek <lfryzek@igalia.com>
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30839>
(cherry picked from commit 521dc42e6c35730c10bf175622bbb6aa2e2cd76e)
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_texture.c b/src/gallium/drivers/llvmpipe/lp_texture.c index f8797bb394c..eb553d93b2b 100644 --- a/src/gallium/drivers/llvmpipe/lp_texture.c +++ b/src/gallium/drivers/llvmpipe/lp_texture.c @@ -765,6 +765,7 @@ llvmpipe_resource_from_handle(struct pipe_screen *_screen, assert(llvmpipe_resource_is_texture(&lpr->base)); } else { whandle->size = lpr->size_required; + lpr->row_stride[0] = whandle->stride; lpr->backable = true; } |