mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
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:
parent
2a8e6a4d1a
commit
aa32b96c51
1 changed files with 1 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue