From 2af0c02ffa0e3e6f03bc631fcc1a1260b84a9547 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 4 Jun 2021 14:42:56 -0400 Subject: [PATCH] panfrost: Clarify how fs_sidefx works with oq Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index 68e1e9a..02861b6 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -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; -- 2.7.4