From: Alyssa Rosenzweig Date: Sat, 26 Oct 2019 13:02:34 +0000 (-0400) Subject: pan/midgard: Disable precise occlusion queries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0c003007515e31c63e18f4a3c8abc86814143bf;p=mesa.git pan/midgard: Disable precise occlusion queries I thought there was hardware support for this, but it seems to broken, or at least more complex than I believed. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 37b3858242c..8cb34dc0581 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -930,7 +930,7 @@ panfrost_emit_for_draw(struct panfrost_context *ctx, bool with_vertex_data) panfrost_batch_set_requirements(batch); if (ctx->occlusion_query) { - ctx->payloads[PIPE_SHADER_FRAGMENT].gl_enables |= MALI_OCCLUSION_QUERY | MALI_OCCLUSION_PRECISE; + ctx->payloads[PIPE_SHADER_FRAGMENT].gl_enables |= MALI_OCCLUSION_QUERY; ctx->payloads[PIPE_SHADER_FRAGMENT].postfix.occlusion_counter = ctx->occlusion_query->bo->gpu; }