virgl: remap query types to hw support.
authorDave Airlie <airlied@redhat.com>
Wed, 14 Feb 2018 02:52:27 +0000 (12:52 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 16 Feb 2018 02:42:06 +0000 (12:42 +1000)
commit60c14a0db25d3dd246744858179a52548325c25f
tree0a4bf052d5ba3243c4c63ea2fb9cee1a20a73366
parent8a05b06146c005c0381b4784b4731e7dee8484aa
virgl: remap query types to hw support.

The gallium query types changed, so we need to remap from the
gallium ones to the virgl ones.

Fixes:
dEQP-GLES3.functional.transform_feedback.basic_types*

"This also fixes:

dEQP-GLES3.functional.transform_feedback.array.separate*
dEQP-GLES3.functional.transform_feedback.array_element*
dEQP-GLES3.functional.transform_feedback.interpolation.*

Gallium's p_defines.h and virglrenderer's p_defines.h have diverged
quite a bit, so not including
PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE there makes sense for now."
 - Gurchetan Singh

Fixes: 3f6b3d9db (gallium: add PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE)
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_query.c