panfrost: Document render_condition_check contract
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 13 Jan 2023 01:57:38 +0000 (20:57 -0500)
committerMarge Bot <emma+marge@anholt.net>
Mon, 16 Jan 2023 17:11:19 +0000 (17:11 +0000)
This was implicit before, leading to the bug fixed in the previous commit.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20689>

src/gallium/drivers/panfrost/pan_context.c

index db9b619..11dbd1b 100644 (file)
@@ -723,6 +723,11 @@ panfrost_get_query_result(struct pipe_context *pipe, struct pipe_query *q,
    return true;
 }
 
+/*
+ * Check the render condition for software condition rendering.
+ *
+ * Note: this may invalidate the batch!
+ */
 bool
 panfrost_render_condition_check(struct panfrost_context *ctx)
 {