There are up to 4 instructions in the latter stage (if a branch is included),
not 3. Bump the limit to fix memory corruption.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reported-by: Icecream95 <ixn@disroot.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15147>
* avoid this situation.
*/
util_dynarray_foreach(&blk->bundles, midgard_bundle, bundle) {
- midgard_instruction *instrs[2][3];
+ midgard_instruction *instrs[2][4];
unsigned instr_count[2] = { 0, 0 };
for (unsigned i = 0; i < bundle->instruction_count; i++) {