r600g/sb: fix incorrect assert
authorVadim Girlin <vadimgirlin@gmail.com>
Fri, 24 May 2013 15:07:27 +0000 (19:07 +0400)
committerVadim Girlin <vadimgirlin@gmail.com>
Fri, 24 May 2013 17:00:54 +0000 (21:00 +0400)
Signed-off-by: Vadim Girlin <vadimgirlin@gmail.com>
src/gallium/drivers/r600/sb/sb_ra_init.cpp

index d5fe4f95e5a5f27f3a51c763fbb55742eeb0fa9c..bfe5ab9a1bc221ce0befb4894e2e62c75509e9f9 100644 (file)
@@ -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;
 }