program: Use u_bit_scan64 in prog_to_nir.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 1 Feb 2019 06:02:55 +0000 (22:02 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 5 Feb 2019 21:51:50 +0000 (13:51 -0800)
commitfa38ca25f6ab5ce55450442d01791dd68f0a90f4
tree1e7d7aae3511648afebaa1f0d61f18511e11e3d6
parenta01ad3110a92e88f815242b59ad1da6d2623decc
program: Use u_bit_scan64 in prog_to_nir.

We can simply iterate the bits rather than using util_last_bit and
checking each one up until that point.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/prog_to_nir.c