mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 13:50:09 +01:00
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: c44d65a467 ("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>
This commit is contained in:
parent
7db16e7cdd
commit
521dc42e6c
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue