vrend: don't check vertex attributes in draw_vbo

This reverts 374dd5bae8
    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 <gert.wollny@collabora.com>
Reviewed-by: Reviewed-by: Chia-I Wu <olvaffe@gmail.com>
macos/master
Gert Wollny 4 years ago
parent c08c84197a
commit 4a5c238d53
  1. 10
      src/vrend_renderer.c

@ -4630,16 +4630,6 @@ int vrend_draw_vbo(struct vrend_context *ctx,
else
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) {

Loading…
Cancel
Save