mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
nvc0: kick out empty live ranges
They affect overlap tests even though they're actually empty.
This commit is contained in:
parent
cd47f10c90
commit
f017483553
1 changed files with 3 additions and 0 deletions
|
|
@ -87,6 +87,9 @@ add_range_ex(struct nv_value *val, int bgn, int end, struct nv_range *new_range)
|
|||
{
|
||||
struct nv_range *range, **nextp = &val->livei;
|
||||
|
||||
if (bgn == end) /* [a, a) is invalid / empty */
|
||||
return TRUE;
|
||||
|
||||
for (range = val->livei; range; range = range->next) {
|
||||
if (end < range->bgn)
|
||||
break; /* insert before */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue