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 <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8172>
This commit is contained in:
Icecream95 2020-12-19 16:23:16 +13:00 committed by Marge Bot
parent 05ad0f8871
commit ac265c0a96

View file

@ -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;