The xfb_base is a base index, it makes no sense to multiply that with
the number of streamout targets. Use addition instead to fix a buffer
overflow.
Fixes:
557633b142e ("panfrost: Suppress Bifrost prefetching")
Reported-by: Luc Ma <onion0709@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17447>
#if PAN_ARCH >= 6
/* Suppress prefetch on Bifrost */
- memset(varyings + (xfb_base * ctx->streamout.num_targets), 0, sizeof(*varyings));
+ memset(varyings + xfb_base + ctx->streamout.num_targets, 0, sizeof(*varyings));
#else
/* Emit the stream out buffers. We need enough room for all the
* vertices we emit across all instances */