From 06bfe07212920bf5c2c3889fc53efc76cedb91b5 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 6 Apr 2023 16:12:46 -0400 Subject: [PATCH] zink: don't try copying multiple results for conditional render copy conditional render is only a single result, so multiple results need to first be aggregated fixes #8798 cc: mesa-stable Part-of: --- src/gallium/drivers/zink/zink_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_query.c b/src/gallium/drivers/zink/zink_query.c index 3392d61..3370b49 100644 --- a/src/gallium/drivers/zink/zink_query.c +++ b/src/gallium/drivers/zink/zink_query.c @@ -1320,7 +1320,8 @@ zink_render_condition(struct pipe_context *pctx, int num_results = get_num_starts(query); if (num_results) { if (!is_emulated_primgen(query) && - !is_so_overflow_query(query)) { + !is_so_overflow_query(query) && + num_results == 1) { copy_results_to_buffer(ctx, query, res, 0, num_results, flags); } else { /* these need special handling */ -- 2.7.4