aco: fix neighboring register check in get_reg_simple()

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4772>
This commit is contained in:
Rhys Perry 2020-04-27 18:15:23 +01:00 committed by Marge Bot
parent fb59ed6bb9
commit be4a34966c
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ std::pair<PhysReg, bool> get_reg_simple(ra_ctx& ctx,
reg_found &= entry.second[i + j] == 0;
/* check neighboring reg if needed */
reg_found &= (i <= 4 - rc.bytes() || reg_file[entry.first + 1] == 0);
reg_found &= ((int)i <= 4 - (int)rc.bytes() || reg_file[entry.first + 1] == 0);
if (reg_found) {
PhysReg res{entry.first};
res.reg_b += i;