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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22345>
This commit is contained in:
Mike Blumenkrantz 2023-04-06 16:12:46 -04:00 committed by Marge Bot
parent 72a9d12c96
commit 06bfe07212

View file

@ -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 */