virgl: resolve to correct level during texture read
authorChia-I Wu <olvaffe@gmail.com>
Mon, 3 Jun 2019 18:39:34 +0000 (11:39 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 4 Jun 2019 21:37:03 +0000 (21:37 +0000)
commit65439291a02066f0e18090f8ce9645a8a1ba97a4
tree0b6e15ef9e3fcb41912dad5f225499b964e857bc
parent067018d4e745a9145627793c7f458ced4d4b4010
virgl: resolve to correct level during texture read

When PIPE_TRANSFER_READ requires a resolve, we blit from the host
storage to a temporary storage, and do a format conversion from the
temporary storage to the guest storage.  This change makes sure we
convert to the correct level of the guest storage.

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