svga: fix assert with PIPE_QUERY_OCCLUSION_PREDICATE for non-vgpu10
authorCharmaine Lee <charmainel@vmware.com>
Wed, 20 Apr 2016 01:12:17 +0000 (18:12 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 25 Apr 2016 18:59:29 +0000 (12:59 -0600)
commit676931640fe6c97f6a5702196c39f8de36b22a64
tree3e99cae951f1cddd942aab6f24ae25decc01210a
parentd7a6c1a4769774a0a86cc75090d5d3089f248a7d
svga: fix assert with PIPE_QUERY_OCCLUSION_PREDICATE for non-vgpu10

With this patch, when running in hardware version 11, we'll use
SVGA3D_QUERYTYPE_OCCLUSION query type for PIPE_QUERY_OCCLUSION_PREDICATE
and return TRUE if samples-passed count is greater than 0.

Fixes glretrace/solidworks2012_viewport running in hardware version 11.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/svga/svga_pipe_query.c