mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 18:28:35 +12:00
rsx: Fix upload block range optimization
- The 'max' index should take the first assigned ID; fixes problems with divisors
This commit is contained in:
parent
a245d9fb24
commit
8009e53642
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,7 @@ namespace rsx
|
||||||
}
|
}
|
||||||
|
|
||||||
const u32 max_index = (first + count) - 1;
|
const u32 max_index = (first + count) - 1;
|
||||||
u32 _max_index = first;
|
u32 _max_index = 0;
|
||||||
u32 _min_index = first;
|
u32 _min_index = first;
|
||||||
|
|
||||||
for (const auto &attrib : locations)
|
for (const auto &attrib : locations)
|
||||||
|
@ -242,6 +242,7 @@ namespace rsx
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
verify(HERE), _max_index >= _min_index;
|
||||||
return { _min_index, (_max_index - _min_index) + 1 };
|
return { _min_index, (_max_index - _min_index) + 1 };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue