From dfd6157d6c7d22715dcfb576403232e750f2c5b6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 12 Jan 2023 20:57:38 -0500 Subject: [PATCH] panfrost: Document render_condition_check contract This was implicit before, leading to the bug fixed in the previous commit. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_context.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index db9b619..11dbd1b 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -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) { -- 2.7.4