aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2020-02-29 22:08:14 -0500
committerMarge Bot <eric+marge@anholt.net>2020-03-01 23:16:36 +0000
commit5306b662dd59ac8accccf25b81ee97742ce71849 (patch)
treea994d3e8cc45c79a6135de059dbf3c9a258da58c
parenta86662c44d7cb2541c3f613805533064219ad11f (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 <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>
-rw-r--r--src/mesa/main/arrayobj.h2
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;
}