Commit ac265c0a authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

panfrost: Fix precise occlusion queries on Bifrost



Bifrost doesn't need the sample count to be divided by four for
non-MSAA framebuffers.

Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <!8172>
parent 05ad0f88
Pipeline #246638 waiting for manual action with stages
......@@ -1446,7 +1446,7 @@ panfrost_get_query_result(struct pipe_context *pipe,
for (int i = 0; i < dev->core_count; ++i)
passed += result[i];
if (!query->msaa)
if (!(dev->quirks & IS_BIFROST) && !query->msaa)
passed /= 4;
vresult->u64 = passed;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment