Module: Mesa Branch: master Commit: 4c89bfc4ec0ea29ab757b0391bf646673e483668 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c89bfc4ec0ea29ab757b0391bf646673e483668
Author: Daniel Schürmann <[email protected]> Date: Thu Jul 23 09:41:07 2020 +0200 aco: prevent infinite recursion in RA for subdword variables Cc: 20.1 <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6024> --- src/amd/compiler/aco_register_allocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index a59a9af7add..2fd8d3d66d5 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -591,7 +591,7 @@ std::pair<PhysReg, bool> get_reg_simple(ra_ctx& ctx, RegClass rc = info.rc; if (stride == 1) { - + info.rc = RegClass(rc.type(), size); for (unsigned stride = 8; stride > 1; stride /= 2) { if (size % stride) continue; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
