nv50/ir/util: fix BitSet issues
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Fri, 5 Sep 2014 21:52:45 +0000 (23:52 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 6 Sep 2014 03:05:42 +0000 (23:05 -0400)
commitb9f9e3ce03dbd8d044a72a00e1e8856a500b5f72
treef9349414c1b8144faf622c60d82116ae8e9e8496
parenta71380040c6bce92dfbe934e3b7dc8332bf22142
nv50/ir/util: fix BitSet issues

BitSet::allocate() is being used with the expectation that it would
leave the bitfield untouched if its size hasn't changed, however,
the function always zeroed the last word, which led to obscure bugs
with live set computation.

This also fixes BitSet::resize(), which was broken, but luckily not
being used.

Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_ra.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_util.cpp
src/gallium/drivers/nouveau/codegen/nv50_ir_util.h