nv50: Extract needed value bits without shifting them before calling bitcount
authorVlad Golovkin <vlad.golovkin.mail@gmail.com>
Mon, 16 Apr 2018 20:50:24 +0000 (23:50 +0300)
committerKarol Herbst <kherbst@redhat.com>
Wed, 2 May 2018 13:12:48 +0000 (15:12 +0200)
commit967aabca06fc48ee18e1f4fc534483d45bdcaa70
tree862492f42f31678edf20626b858f54632eb140ca
parent3a1df14a7b5c1652aa72eb6cf43e69ab447c6273
nv50: Extract needed value bits without shifting them before calling bitcount

This can save one instruction since bitcount doesn't care about specific
bits' positions.

Reviewed-by: Karol Herbst <kherbst@redhat.com>
src/gallium/drivers/nouveau/nv50/nv50_screen.c