mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 21:08:11 +02:00
freedreno: fix slice size for imported buffers
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
f4ffe2786b
commit
8cb965b112
1 changed files with 1 additions and 0 deletions
|
|
@ -909,6 +909,7 @@ fd_resource_from_handle(struct pipe_screen *pscreen,
|
|||
rsc->cpp = util_format_get_blocksize(tmpl->format);
|
||||
slice->pitch = handle->stride / rsc->cpp;
|
||||
slice->offset = handle->offset;
|
||||
slice->size0 = handle->stride * prsc->height0;
|
||||
|
||||
if ((slice->pitch < align(prsc->width0, 32)) || (slice->pitch % 32))
|
||||
goto fail;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue