浏览代码

etnaviv: fill in layer_stride for imported resources

The layer stride information is used in various parts of the driver,
so it needs to be present regardless if the driver allocated the
buffer itself or merely imported it from an external source.

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>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
tags/17.2-branchpoint
Lucas Stach 8 年前
父节点
当前提交
b2a87ce34f
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/gallium/drivers/etnaviv/etnaviv_resource.c

+ 2
- 0
src/gallium/drivers/etnaviv/etnaviv_resource.c 查看文件

@@ -352,6 +352,8 @@ etna_resource_from_handle(struct pipe_screen *pscreen,

level->padded_width = align(level->width, paddingX);
level->padded_height = align(level->height, paddingY);
level->layer_stride = level->stride * util_format_get_nblocksy(prsc->format,
level->padded_height);

/* The DDX must give us a BO which conforms to our padding size.
* The stride of the BO must be greater or equal to our padded

正在加载...
取消
保存