From 8e41ced4b35aa5ef56c8e14bec8c722d46bb56eb Mon Sep 17 00:00:00 2001 From: Vadim Girlin Date: Fri, 24 May 2013 19:07:27 +0400 Subject: [PATCH] r600g/sb: fix incorrect assert Signed-off-by: Vadim Girlin --- src/gallium/drivers/r600/sb/sb_ra_init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2