[Mesa-dev] [PATCH] vbo: remove MaxVertexAttribStride assert check.

Dave Airlie airlied at gmail.com
Tue May 15 05:44:44 UTC 2018


From: Dave Airlie <airlied at redhat.com>

Some drivers (virgl) don't support GL4.4 or GLES3.1 yet,
so never fill in this const.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/mesa/vbo/vbo_exec_draw.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/vbo/vbo_exec_draw.c b/src/mesa/vbo/vbo_exec_draw.c
index 31d77002257..9f40e954224 100644
--- a/src/mesa/vbo/vbo_exec_draw.c
+++ b/src/mesa/vbo/vbo_exec_draw.c
@@ -201,7 +201,6 @@ vbo_exec_bind_arrays(struct gl_context *ctx)
 
    /* Bind the buffer object */
    const GLuint stride = exec->vtx.vertex_size*sizeof(GLfloat);
-   assert(stride <= ctx->Const.MaxVertexAttribStride);
    _mesa_bind_vertex_buffer(ctx, vao, 0, exec->vtx.bufferobj, buffer_offset,
                             stride, false);
 
-- 
2.14.3



More information about the mesa-dev mailing list