projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9aa46e
)
r600g/sb: fix incorrect assert
author
Vadim Girlin
<vadimgirlin@gmail.com>
Fri, 24 May 2013 15:07:27 +0000
(19:07 +0400)
committer
Vadim 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
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/r600/sb/sb_ra_init.cpp
b/src/gallium/drivers/r600/sb/sb_ra_init.cpp
index d5fe4f95e5a5f27f3a51c763fbb55742eeb0fa9c..bfe5ab9a1bc221ce0befb4894e2e62c75509e9f9 100644
(file)
--- 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;
}