summaryrefslogtreecommitdiffstats
path: root/src/mesa/vbo
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-05-17 22:24:59 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-05-23 19:12:34 -0700
commitdf6ec2aba52be66423c90c3f00c599cb2eba4558 (patch)
treea0fd048d131a5d6e4559b073298ba0501c791b5a /src/mesa/vbo
parent21f3df08208ec29abe508bf435bec427f48d50de (diff)
vbo: Declare the index range invalid for DrawIndirect
Right now, we're just setting the range to [0, MAX_UINT32] which, while correct isn't helpful. With DrawIndirect, you can't really know what the actual range is so we may as well flag it as being an invalid range. This is what we do for draws with index buffer which is similar (the indices aren't statically known) if a bit simpler. Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/vbo')
-rw-r--r--src/mesa/vbo/vbo_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/vbo/vbo_context.c b/src/mesa/vbo/vbo_context.c
index 9f807a17512..ae5d2653087 100644
--- a/src/mesa/vbo/vbo_context.c
+++ b/src/mesa/vbo/vbo_context.c
@@ -170,7 +170,7 @@ vbo_draw_indirect_prims(struct gl_context *ctx,
}
vbo->draw_prims(ctx, prim, draw_count,
- ib, GL_TRUE, 0, ~0,
+ ib, false, ~0, ~0,
NULL, 0,
ctx->DrawIndirectBuffer);