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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user