turnip: fix assert for max xfb outputs

this is a counter, not an index, so use <=

cc: mesa-stable

Reviewed-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16620>
This commit is contained in:
Mike Blumenkrantz 2022-05-18 10:07:43 -04:00 committed by Marge Bot
parent 2a8e6a4d1a
commit aa32b96c51
1 changed files with 1 additions and 1 deletions

View File

@ -677,7 +677,7 @@ tu_gather_xfb_info(nir_shader *nir, struct ir3_stream_output_info *info)
output_map[var->data.location + i] = var->data.driver_location + i;
}
assert(xfb->output_count < IR3_MAX_SO_OUTPUTS);
assert(xfb->output_count <= IR3_MAX_SO_OUTPUTS);
info->num_outputs = xfb->output_count;
for (int i = 0; i < IR3_MAX_SO_BUFFERS; i++) {