virgl: clean up virgl_res_needs_flush
authorChia-I Wu <olvaffe@gmail.com>
Fri, 10 May 2019 03:40:28 +0000 (20:40 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 14 May 2019 17:00:22 +0000 (17:00 +0000)
commit34810f42373639ee811885d251b97e56e8695e72
treea266e98b1f57dd19f05c3761e9a0c5e2408cbae5
parent08241624ad669be1ef846c32c08d48c7965795a6
virgl: clean up virgl_res_needs_flush

Add comments and some minor cleanups.

v2: document the function

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com> (v1)
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/virgl/virgl_resource.c