From: Philipp Zabel Date: Fri, 3 May 2019 09:39:45 +0000 (+0200) Subject: etnaviv: fill missing offset in etna_resource_get_handle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1ccb8a071b5793852cf4e7a44ae31ba1eee07a19;p=mesa.git etnaviv: fill missing offset in etna_resource_get_handle Without this gbm_bo_get_offset() can return 0 where it shouldn't. Reviewed-by: Lucas Stach Reviewed-by: Christian Gmeiner Reviewed-by: Emil Velikov Cc: --- diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c index 83179d3cd08..ab77a80c72b 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -622,6 +622,7 @@ etna_resource_get_handle(struct pipe_screen *pscreen, rsc = etna_resource(rsc->external); handle->stride = rsc->levels[0].stride; + handle->offset = rsc->levels[0].offset; handle->modifier = layout_to_modifier(rsc->layout); if (handle->type == WINSYS_HANDLE_TYPE_SHARED) {