virgl: skip empty cmdbufs
authorChia-I Wu <olvaffe@gmail.com>
Thu, 18 Apr 2019 22:34:46 +0000 (15:34 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 23 Apr 2019 19:07:48 +0000 (19:07 +0000)
commitcc53815ae10dc39c7e56a3801568794a6ad8b539
tree101c9b44e073d24ab5efc58b1bb409f687074b75
parentec686a66dbf2180631564a3877884b1e4d0c8ea4
virgl: skip empty cmdbufs

Several empty cmdbufs are submitted by app/xserver per frame, from
glamor_block_handler for example.  Let's skip them.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
src/gallium/drivers/virgl/virgl_context.c
src/gallium/drivers/virgl/virgl_context.h