diff options
author | Lucas Stach <[email protected]> | 2018-05-23 17:19:52 +0200 |
---|---|---|
committer | Lucas Stach <[email protected]> | 2019-08-08 16:11:34 +0200 |
commit | 68c24b09c22b600d1e54fe116ee74fbddf4f0fc5 (patch) | |
tree | 8f610cb7f888583bb2a5d7b1b707cc0fafa2d561 /src | |
parent | b8842bc3128a255677a1a8ea5207df46f8e54a04 (diff) |
etnaviv: remember data offset into BO
Imported resources might not start at offset 0 into the buffer object.
Make sure to remember the offset that is provided with the handle on
import.
Signed-off-by: Lucas Stach <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_resource.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c index 34d4d2449a9..b03681cc5c0 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -556,6 +556,7 @@ etna_resource_from_handle(struct pipe_screen *pscreen, level->width = tmpl->width0; level->height = tmpl->height0; level->depth = tmpl->depth0; + level->offset = handle->offset; /* Determine padding of the imported resource. */ unsigned paddingX = 0, paddingY = 0; |