summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-18 15:13:44 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commiteb6b2997203906c90faf8b471dec7bf2bc24ec1d (patch)
tree96c8d767c33ff79dc96fd82a8fb8f32ec348a048 /src
parent0e69fc92e2bc9cf5e9083378ba536fc87de88221 (diff)
mesa: add KHR_no_error support to glMultiDrawElementsBaseVertex()
Just skip validation when no_error is enabled. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/vbo/vbo_exec_array.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index 4f86d196dbc..dfb8402014a 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -1408,9 +1408,16 @@ vbo_exec_MultiDrawElementsBaseVertex(GLenum mode,
{
GET_CURRENT_CONTEXT(ctx);
- if (!_mesa_validate_MultiDrawElements(ctx, mode, count, type, indices,
- primcount))
- return;
+ if (_mesa_is_no_error_enabled(ctx)) {
+ FLUSH_CURRENT(ctx, 0);
+
+ if (ctx->NewState)
+ _mesa_update_state(ctx);
+ } else {
+ if (!_mesa_validate_MultiDrawElements(ctx, mode, count, type, indices,
+ primcount))
+ return;
+ }
if (skip_validated_draw(ctx))
return;