Mesa (main): zink: require occlusionQueryPrecise for occlusion queries

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Aug 27 02:38:36 UTC 2021


Module: Mesa
Branch: main
Commit: 9d9e197d742edc448eba78dd8f4eaaa1a4630b17
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9d9e197d742edc448eba78dd8f4eaaa1a4630b17

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue Aug 10 10:16:15 2021 -0400

zink: require occlusionQueryPrecise for occlusion queries

ensure this is present to avoid driver explosions

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12583>

---

 src/gallium/drivers/zink/zink_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_screen.c b/src/gallium/drivers/zink/zink_screen.c
index 855e28271fe..a4327178f18 100644
--- a/src/gallium/drivers/zink/zink_screen.c
+++ b/src/gallium/drivers/zink/zink_screen.c
@@ -389,7 +389,7 @@ zink_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
       return screen->info.props.limits.maxColorAttachments;
 
    case PIPE_CAP_OCCLUSION_QUERY:
-      return 1;
+      return screen->info.feats.features.occlusionQueryPrecise;
 
    case PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS:
       return screen->info.have_EXT_sample_locations && screen->info.have_EXT_extended_dynamic_state;



More information about the mesa-commit mailing list