From: Vadim Girlin Date: Fri, 24 May 2013 15:07:27 +0000 (+0400) Subject: r600g/sb: fix incorrect assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e41ced4b35aa5ef56c8e14bec8c722d46bb56eb;p=mesa.git r600g/sb: fix incorrect assert Signed-off-by: Vadim Girlin --- diff --git a/src/gallium/drivers/r600/sb/sb_ra_init.cpp b/src/gallium/drivers/r600/sb/sb_ra_init.cpp index d5fe4f95e5a..bfe5ab9a1bc 100644 --- a/src/gallium/drivers/r600/sb/sb_ra_init.cpp +++ b/src/gallium/drivers/r600/sb/sb_ra_init.cpp @@ -157,7 +157,7 @@ sel_chan regbits::find_free_bit() { bit = __builtin_ctz(dta[elt]) + (elt << bt_index_shift); - assert(bit < MAX_GPR - num_temps); + assert(bit < ((MAX_GPR - num_temps) << 2)); return bit + 1; }