virgl: clean up virgl_res_needs_readback
authorChia-I Wu <olvaffe@gmail.com>
Fri, 10 May 2019 03:40:41 +0000 (20:40 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 15 May 2019 20:51:28 +0000 (20:51 +0000)
commita62ab178cecadae8ead16c0910707c2218e856e7
treeb1c29ceb225cf12016fa4379e2013f7cdbc4afd0
parent391a836e8fb1c84170f3aa7550f0b347d31528f3
virgl: clean up virgl_res_needs_readback

Add comments and follow the coding style of virgl_res_needs_flush.

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