mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-08 06:20:19 +01:00
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 <l.stach@pengutronix.de> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
b8842bc312
commit
68c24b09c2
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue