radv: fix assertion for the count of xfb output

It's an counter, not an index.

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16623>
This commit is contained in:
Hyunjun Ko 2022-05-20 01:29:31 +00:00 committed by Marge Bot
parent 04459c8287
commit 5b2756ec2c

View file

@ -405,7 +405,7 @@ gather_xfb_info(const nir_shader *nir, struct radv_shader_info *info)
if (!xfb)
return;
assert(xfb->output_count < MAX_SO_OUTPUTS);
assert(xfb->output_count <= MAX_SO_OUTPUTS);
so->num_outputs = xfb->output_count;
for (unsigned i = 0; i < xfb->output_count; i++) {