virgl: track level cleanliness rather than resource cleanliness
authorGurchetan Singh <gurchetansingh@chromium.org>
Sat, 12 Jan 2019 01:38:55 +0000 (17:38 -0800)
committerGert Wollny <gert.wollny@collabora.com>
Fri, 15 Feb 2019 10:19:04 +0000 (11:19 +0100)
commit7626e6e18956cac0de9077694c97a388c739bdd0
tree455944983dbb9f90e0b2917eed2193887ef36dbe
parentc19aedcf1a83c70a999b963dfbc0bce47a189600
virgl: track level cleanliness rather than resource cleanliness

This allows a minor optimization for texture upload.

Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/virgl/virgl_buffer.c
src/gallium/drivers/virgl/virgl_context.c
src/gallium/drivers/virgl/virgl_encode.c
src/gallium/drivers/virgl/virgl_resource.c
src/gallium/drivers/virgl/virgl_resource.h
src/gallium/drivers/virgl/virgl_texture.c