anv: fix return of cmd_buffer_set_indirect_stride() function

Unless the tristate is unset, which is not, it will be true when casted
to bool, as the return of this function expects.

Fixes: 2741ddd75a ("anv: fix issues found with indirect data stride")
Signed-off-by: Iván Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41372>
This commit is contained in:
Iván Briano 2026-05-05 14:17:24 -07:00 committed by Marge Bot
parent 388665c442
commit 7b26ff692b

View file

@ -1997,7 +1997,7 @@ cmd_buffer_set_indirect_stride(struct anv_cmd_buffer *cmd_buffer,
}
#endif
return aligned;
return aligned == U_TRISTATE_YES;
}
static void