mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
i965: Add a sanity check for register allocation sizes.
This commit is contained in:
parent
5ee0941316
commit
afb64311e3
1 changed files with 5 additions and 0 deletions
|
|
@ -2293,6 +2293,11 @@ fs_visitor::assign_regs()
|
|||
break;
|
||||
}
|
||||
if (i == class_count) {
|
||||
if (this->virtual_grf_sizes[r] >= base_reg_count) {
|
||||
fprintf(stderr, "Object too large to register allocate.\n");
|
||||
this->fail = true;
|
||||
}
|
||||
|
||||
class_sizes[class_count++] = this->virtual_grf_sizes[r];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue