virgl: Add support for passing GL_ANY_SAMPLES_PASSED_CONSERVATIVE
authorGert Wollny <gert.wollny@collabora.com>
Wed, 9 May 2018 14:51:49 +0000 (16:51 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 10 May 2018 02:26:57 +0000 (12:26 +1000)
This is needed for fixing CTS:
   dEQP-GLES3.functional.occlusion_query.conservative*

Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
src/gallium/drivers/virgl/virgl_query.c

index 3a930d296661ff4f21c42ab4ec48863f07357339..e4d955442bf055fc54f4791bb35c34b021e59d30 100644 (file)
@@ -48,12 +48,13 @@ struct virgl_query {
 #define VIRGL_QUERY_SO_OVERFLOW_PREDICATE 8
 #define VIRGL_QUERY_GPU_FINISHED          9
 #define VIRGL_QUERY_PIPELINE_STATISTICS  10
+#define VIRGL_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE 11
 
 static const int pquery_map[] =
 {
    VIRGL_QUERY_OCCLUSION_COUNTER,
    VIRGL_QUERY_OCCLUSION_PREDICATE,
-   -1,
+   VIRGL_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE,
    VIRGL_QUERY_TIMESTAMP,
    VIRGL_QUERY_TIMESTAMP_DISJOINT,
    VIRGL_QUERY_TIME_ELAPSED,