virgl: fix texture resolving with compressed formats
authorChia-I Wu <olvaffe@gmail.com>
Mon, 3 Jun 2019 22:19:18 +0000 (15:19 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 4 Jun 2019 21:37:03 +0000 (21:37 +0000)
commit067018d4e745a9145627793c7f458ced4d4b4010
treed74fe5359f9c46856019232f744fd4dc707707f8
parenta6a5a6f67f8d1dfe3d230deccf9e1dc6cfb7c71e
virgl: fix texture resolving with compressed formats

util_format_translate_3d expects the source box to be aligned to the
block size.  When resolving, make sure the size of the staging
buffer is aligned to the block size.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
src/gallium/drivers/virgl/virgl_texture.c