panfrost: Precise occlusion query support
authorIcecream95 <ixn@keemail.me>
Fri, 9 Oct 2020 07:01:16 +0000 (20:01 +1300)
committerMarge Bot <eric+marge@anholt.net>
Wed, 21 Oct 2020 01:27:45 +0000 (01:27 +0000)
commit04e955f19bb760b88acad414425cd4708a58e58e
treec50ba2004397b3fc1d22f3fa8cb2cf66bd41da7f
parent584b1070372a0e010a0e9a221493e5042575abb1
panfrost: Precise occlusion query support

In the "counter" occlusion query mode, each shader core has a separate
counter.

When MSAA is disabled, counter values need to be divided by four.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7074>
src/gallium/drivers/panfrost/pan_context.c
src/gallium/drivers/panfrost/pan_context.h