From: Vadim Girlin Date: Wed, 17 Jul 2013 08:05:32 +0000 (+0400) Subject: r600g/sb: fix initial register allocation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44ebe7291ccd100f9e2ad8d5b7f86e9844ad6f3c;p=mesa.git 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 --- 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;