diff options
author | Lucas Stach <[email protected]> | 2017-06-04 21:06:29 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2017-06-16 15:26:23 +0200 |
commit | ff490eb8fd3a1edee1b3aec3f8122f7d6f90a80f (patch) | |
tree | 246de0ddb07f58908b2884490ee633b2fb44fe54 /src | |
parent | 2a6183d416395ca4659e4b6fed9d0918c74cb469 (diff) |
etnaviv: use padded width/height for resource copies
When copying a resource fully we can just blit the whole level. This allows
to use the RS even for level sizes not aligned to the RS min alignment. This
is especially useful, as etna_copy_resource is part of the software fallback
paths (used in etna_transfer), that are used for doing unaligned copies.
Fixes: c9e8b49b ("etnaviv: gallium driver for Vivante GPUs")
Cc: [email protected]
Signed-off-by: Lucas Stach <[email protected]>
Reviewed-by: Christian Gmeiner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_clear_blit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c index 333d19f5bfa..e350b96244c 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c +++ b/src/gallium/drivers/etnaviv/etnaviv_clear_blit.c @@ -627,9 +627,9 @@ etna_copy_resource(struct pipe_context *pctx, struct pipe_resource *dst, for (int level = first_level; level <= last_level; level++) { blit.src.level = blit.dst.level = level; blit.src.box.width = blit.dst.box.width = - MIN2(src_priv->levels[level].width, dst_priv->levels[level].width); + MIN2(src_priv->levels[level].padded_width, dst_priv->levels[level].padded_width); blit.src.box.height = blit.dst.box.height = - MIN2(src_priv->levels[level].height, dst_priv->levels[level].height); + MIN2(src_priv->levels[level].padded_height, dst_priv->levels[level].padded_height); for (int layer = 0; layer < dst->array_size; layer++) { blit.src.box.z = blit.dst.box.z = layer; |