pan/mdg: Fix overflow in intra-bundle interference
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>
This commit is contained in:
committed by
Marge Bot
parent
0fffaa9fca
commit
31b7ebcbc7
@@ -357,7 +357,7 @@ mir_compute_interference(
|
||||
* 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++) {
|
||||
|
||||
Reference in New Issue
Block a user