svga: skip query flush if we already have the query result
authorBrian Paul <brianp@vmware.com>
Thu, 15 Sep 2016 18:07:18 +0000 (12:07 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 17 Sep 2016 16:24:13 +0000 (10:24 -0600)
commit15dee0fc1ddfc02ca5e073f67323907c87136263
tree795551585942029989c566036967d082a0353212
parentc71e82b8e98a16ac77ee53659b709deb5204d30b
svga: skip query flush if we already have the query result

This reduces the number of times we flush in some situations (the
arbocclude demo is one trivial example).

Tested with Piglit, ETQW, Sauerbraten, arbocclude.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_pipe_query.c