diff options
author | Ilia Mirkin <[email protected]> | 2020-02-29 22:08:14 -0500 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-01 23:16:36 +0000 |
commit | 5306b662dd59ac8accccf25b81ee97742ce71849 (patch) | |
tree | a994d3e8cc45c79a6135de059dbf3c9a258da58c /src/mesa/main | |
parent | a86662c44d7cb2541c3f613805533064219ad11f (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4009>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4009>
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/arrayobj.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/arrayobj.h b/src/mesa/main/arrayobj.h index 19ab65b3242..3efcd577ae5 100644 --- a/src/mesa/main/arrayobj.h +++ b/src/mesa/main/arrayobj.h @@ -221,7 +221,7 @@ _mesa_draw_nonzero_divisor_bits(const struct gl_context *ctx) { const struct gl_vertex_array_object *const vao = ctx->Array._DrawVAO; assert(vao->NewArrays == 0); - return ~vao->_EffEnabledNonZeroDivisor & ctx->Array._DrawVAOEnabledAttribs; + return vao->_EffEnabledNonZeroDivisor & ctx->Array._DrawVAOEnabledAttribs; } |