mesa: fix _mesa_draw_nonzero_divisor_bits to return nonzero divisors
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 1 Mar 2020 03:08:14 +0000 (22:08 -0500)
committerMarge Bot <eric+marge@anholt.net>
Sun, 1 Mar 2020 23:16:36 +0000 (23:16 +0000)
commit5306b662dd59ac8accccf25b81ee97742ce71849
treea994d3e8cc45c79a6135de059dbf3c9a258da58c
parenta86662c44d7cb2541c3f613805533064219ad11f
mesa: fix _mesa_draw_nonzero_divisor_bits to return nonzero divisors

The bitmask is _EffEnabledNonZeroDivisor, so no need to invert it before
returning.

Fixes: fd6636ebc06d (st/mesa: simplify determination whether a draw needs min/max index)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <maraeo@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4009>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4009>
src/mesa/main/arrayobj.h