Mesa (main): aco/ra: use adjust_max_used_regs() in compact_relocate_vars()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jun 14 16:06:20 UTC 2021
Module: Mesa
Branch: main
Commit: f8bf6b9e0a469c9fd1e0059cebe48b685340c7fe
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8bf6b9e0a469c9fd1e0059cebe48b685340c7fe
Author: Rhys Perry <pendingchaos02 at gmail.com>
Date: Mon Jun 14 14:45:22 2021 +0100
aco/ra: use adjust_max_used_regs() in compact_relocate_vars()
Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6489>
---
src/amd/compiler/aco_register_allocation.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp
index 441fcf8cc79..e52424044c4 100644
--- a/src/amd/compiler/aco_register_allocation.cpp
+++ b/src/amd/compiler/aco_register_allocation.cpp
@@ -1353,6 +1353,8 @@ PhysReg compact_relocate_vars(ra_ctx& ctx, const std::vector<IDAndRegClass>& var
space_reg = next_reg;
}
+ adjust_max_used_regs(ctx, var.info.rc, next_reg);
+
next_reg = next_reg.advance(var.info.rc.size() * 4);
}
More information about the mesa-commit
mailing list