Add support for GL_ANY_SAMPLES_PASSED_CONSERVATIVE query method

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>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent bab29c2243
commit 704c619785
  1. 3
      src/gallium/include/pipe/p_defines.h
  2. 3
      src/vrend_renderer.c

@ -446,7 +446,8 @@ enum pipe_flush_flags {
#define PIPE_QUERY_SO_OVERFLOW_PREDICATE 8
#define PIPE_QUERY_GPU_FINISHED 9
#define PIPE_QUERY_PIPELINE_STATISTICS 10
#define PIPE_QUERY_TYPES 11
#define PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE 11
#define PIPE_QUERY_TYPES 12
/* start of driver queries,
* see pipe_screen::get_driver_query_info */

@ -6343,6 +6343,9 @@ int vrend_create_query(struct vrend_context *ctx, uint32_t handle,
case PIPE_QUERY_PRIMITIVES_EMITTED:
q->gltype = GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN;
break;
case PIPE_QUERY_OCCLUSION_PREDICATE_CONSERVATIVE:
q->gltype = GL_ANY_SAMPLES_PASSED_CONSERVATIVE;
break;
default:
fprintf(stderr,"unknown query object received %d\n", q->type);
break;

Loading…
Cancel
Save