From 7dbbe4124bb56af4debe747cad38146d77a83c79 Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Sun, 14 Jul 2013 06:27:59 +0400 Subject: [PATCH 1/2] r600g/sb: fix register allocation Mark values that are members of 'same register' constraint as preallocated, this will prevent some cases of incorrect reallocation in scheduler. Signed-off-by: Vadim Girlin --- src/gallium/drivers/r600/sb/sb_ra_coalesce.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/r600/sb/sb_ra_coalesce.cpp b/src/gallium/drivers/r600/sb/sb_ra_coalesce.cpp index 582f553..7f388af 100644 --- a/src/gallium/drivers/r600/sb/sb_ra_coalesce.cpp +++ b/src/gallium/drivers/r600/sb/sb_ra_coalesce.cpp @@ -593,6 +593,7 @@ int coalescer::color_reg_constraint(ra_constraint *c) { color_chunk(cc, color); cc->fix(); + cc->set_prealloc(); } return 0; -- 1.8.3.1