From 25a61cce7dc6f5ab965577ebe589ccabf58945fa Mon Sep 17 00:00:00 2001 From: Qiang Yu Date: Tue, 31 Mar 2020 13:51:59 +0800 Subject: [PATCH] lima: set offset when export resource We missed set reource offset. Reviewed-by: Vasily Khoruzhick Signed-off-by: Qiang Yu Part-of: --- src/gallium/drivers/lima/lima_resource.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2