From: Qiang Yu Date: Tue, 31 Mar 2020 05:51:59 +0000 (+0800) Subject: lima: set offset when export resource X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25a61cce7dc6f5ab965577ebe589ccabf58945fa;p=mesa.git lima: set offset when export resource We missed set reource offset. Reviewed-by: Vasily Khoruzhick Signed-off-by: Qiang Yu Part-of: --- diff --git a/src/gallium/drivers/lima/lima_resource.c b/src/gallium/drivers/lima/lima_resource.c index 5dd2a472114..4644ea402c9 100644 --- a/src/gallium/drivers/lima/lima_resource.c +++ b/src/gallium/drivers/lima/lima_resource.c @@ -389,6 +389,7 @@ lima_resource_get_handle(struct pipe_screen *pscreen, if (!lima_bo_export(res->bo, handle)) return false; + handle->offset = res->levels[0].offset; handle->stride = res->levels[0].stride; return true; }