panfrost: Clarify how fs_sidefx works with oq
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 4 Jun 2021 18:42:56 +0000 (14:42 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:10 +0000 (18:06 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>

src/gallium/drivers/panfrost/pan_cmdstream.c

index 68e1e9a..02861b6 100644 (file)
@@ -263,7 +263,8 @@ panfrost_fs_required(
                 struct panfrost_blend_state *blend,
                 struct pipe_framebuffer_state *state)
 {
-        /* If we generally have side effects */
+        /* If we generally have side effects. This inclues use of discard,
+         * which can affect the results of an occlusion query. */
         if (fs->info.fs.sidefx)
                 return true;