diff options
author | Vadim Girlin <[email protected]> | 2013-05-24 19:07:27 +0400 |
---|---|---|
committer | Vadim Girlin <[email protected]> | 2013-05-24 21:00:54 +0400 |
commit | 8e41ced4b35aa5ef56c8e14bec8c722d46bb56eb (patch) | |
tree | 5b049715de1ee81e1f12df363c691da5bea2ed59 /src/gallium/drivers | |
parent | e9aa46e66502248c4b266cb6c4a88851832982d8 (diff) |
r600g/sb: fix incorrect assert
Signed-off-by: Vadim Girlin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/sb/sb_ra_init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |