Commit bbb0c8bf authored by Gert Wollny's avatar Gert Wollny
Browse files

vrend: don't check vertex attributes in draw_vbo

This reverts 374dd5ba

    Fix i965 crash with bin/gl-3.1-vao-broken-attrib

The crash with i965 can't be reproduced anymore, and the Gallium
drivers do the correct checks to not crash there, so it is
not necessary to do the extra checking.

Signed-off-by: Gert Wollny <>-ne
Reviewed-by: Chia-I Wu's avatarReviewed-by: Chia-I Wu <>
parent 5232f149
......@@ -4630,16 +4630,6 @@ int vrend_draw_vbo(struct vrend_context *ctx,
vrend_draw_bind_vertex_legacy(ctx, sub_ctx->ve);
for (i = 0 ; i < sub_ctx->prog->ss[PIPE_SHADER_VERTEX]->sel->sinfo.num_inputs; i++) {
struct vrend_vertex_element_array *va = sub_ctx->ve;
struct vrend_vertex_element *ve = &va->elements[i];
int vbo_index = ve->base.vertex_buffer_index;
if (!sub_ctx->vbo[vbo_index].base.buffer) {
vrend_printf( "VBO missing vertex buffer\n");
return 0;
if (info->indexed) {
struct vrend_resource *res = (struct vrend_resource *)sub_ctx->ib.buffer;
if (!res) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment