From 44ebe7291ccd100f9e2ad8d5b7f86e9844ad6f3c Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Wed, 17 Jul 2013 12:05:32 +0400 Subject: [PATCH] r600g/sb: fix initial register allocation Mark values that are members of the 'same register' constraint as preallocated in ra_init pass, this will prevent incorrect reallocation in scheduler in some cases. Should fix https://bugs.freedesktop.org/show_bug.cgi?id=66713 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 582f553db0e..7f388af6e81 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; -- 2.30.2