mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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:
parent
05ad0f8871
commit
ac265c0a96
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue